1 / 9

HACKING MINECRAFT 1

HACKING MINECRAFT 1. LET’S OVERCLOCK. Type sudo raspi-config Change 7: Over clock 900Mhz at max Change 8: Select memory share = 128MB. HACKING MINECRAFT.  In the LX Terminal: sudo idle Open a ‘new’ window Type the code and click save Save into the PI/Home folder

nhorton
Download Presentation

HACKING MINECRAFT 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HACKING MINECRAFT 1

  2. LET’S OVERCLOCK • Type sudoraspi-config • Change 7: Over clock 900Mhz at max • Change 8: Select memory share = 128MB

  3. HACKING MINECRAFT In the LX Terminal: • sudo idle • Open a ‘new’ window • Type the code and click save • Save into the PI/Home folder • Pess F5 to save and run the code

  4. SENDINGA MESSAGE  from mcpi import minecraft​ ​mc = minecraft.Minecraft.create() mc.postToChat("Hello world")

  5. WHERE AM I? from mcpi import minecraft​ ​mc = minecraft.Minecraft.create() import time while True: time.sleep(1.0) pos = mc.player.getPos() print pos.x, pos.y, pos.z

  6. TELEPORTATION from mcpi import minecraft​ ​mc = minecraft.Minecraft.create() x, y, z = mc.player.getPos() mc.player.setPos(x, y+100, z) • try teleporting somewhere else

  7. PLANTING A FLOWER from mcpi import minecraft​ ​mc = minecraft.Minecraft.create() import time flower = 38 while True: x, y, z = mc.player.getPos() mc.setBlock(x, y, z, flower) time.sleep(0.1)

  8. WALKING ON WATER from mcpi import minecraft​ ​mc = minecraft.Minecraft.create() import time Water = 9 Ice = 79 while True: x, y, z = mc.player.getPos() blockBelow = mc.getBlock(x, y – 1, z) if blockBelow== Water: mc.setBlock(x, y – 1, z, ice)

  9. 10 x 10 x10 BLOCK from mcpi import minecraft​ ​mc = minecraft.Minecraft.create() import time stone = 1 x, y, z = mc.player.getPos() mc.setBlocks(x+1, y+1, z+1, x+11, y+11, z+11, stone) • Can you remove the middle so it is hollow? • Add a door? • Add a roof?

More Related