LETS OVERCLOCK sudo raspiconfig 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 ID: 301625
Download Presentation The PPT/PDF document "HACKING MINECRAFT" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
HACKING MINECRAFTSlide2
LET’S OVERCLOCK
sudo
raspi-config
Change 7: Over clock 900Mhz at maxChange 8: Select memory share = 128MBSlide3
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 codeSlide4
SENDING
A MESSAGE
import
syssys.path.append("./mcpi/api/python/mcpi")
import minecraft
mc = minecraft.
M
inecraft.create
()
mc.postToChat("Hello world")Slide5
WHERE AM I?
import
sys
import time
sys.path.append("./mcpi/api/python/mcpi")
import minecraft
mc = minecraft.Minecraft.create
()
while True:
time.sleep(1.0)
pos = mc.player.getPos()
print pos.x, pos.y, pos.zSlide6
TELEPORTATION
import
sys
sys.path.append("./mcpi/api/python/mcpi")
import minecraft
mc = minecraft.Minecraft.create
()
x, y, z = mc.player.getPos()
mc.player.setPos(x, y+100, z
)
TRY TELEPORTING SOMEWHERE ELSESlide7
PLANTING A FLOWER
import
sys
import timesys.path.append("./mcpi/api/python/mcpi")
import minecraft
mc = minecraft.Minecraft.create
()
flower = 38
while True:
x, y, z = mc.player.getPos()
mc.setBlock(x, y, z, flower)
time.sleep
(0.1)Slide8
10 x 10 x10 BLOCK
import
sys
import time
sys.path.append
("./mcpi/api/python/mcpi")
import minecraft
mc = minecraft.Minecraft.create
()
stone = 1
x
, y, z = mc.player.getPos()
mc.setBlocks
(x+1
, y+1, z+1, x+11, y+11, z+11, stone)Slide9
WALKING ON WATER
import
sys
import time
sys.path.append
("./mcpi/api/python/mcpi")
import minecraft
mc = minecraft.Minecraft.create
()
x
, y, z =
mc.player.getPos
()
blockBelow
=
mc.getBlock
(x, y – 1, z)
Water = 9
Ice = 79
If
blockBelow
== water:
mc.setBlock
(x, y – 1, z, ice)