Files
pythonmc/BookCraigRichardson/math/randomJump.py
BarsTigerMeowcat 8bed7171c2 Initial commit
2020-01-26 12:49:01 +02:00

13 lines
264 B
Python

from mcpi.minecraft import Minecraft
mc = Minecraft.create()
import random
pos = mc.player.getTilePos()
x = pos.x
y = pos.y
z = pos.z
x = x + random.randint(-100, 100)
y = y + random.randint(0, 100)
z = z + random.randint(-100, 100)
mc.player.setTilePos(x, y, z)