Untitled
unknown
plain_text
a year ago
552 B
14
Indexable
import random
import time
import mcpi.block as block
from mcpi.minecraft import Minecraft
mc = Minecraft.create()
def tp(d1,d2):
x = random.randint(d1, d2)
y = random.randint(40, 127)
z = random.randint(d1, d2)
mc.player.setTilePos(x, y, z)
time.sleep(1)
while True:
pos = mc.player.getTilePos()
if mc.getBlock(pos) == block.Block(133).id:
tp(1000,1000)
if mc.getBlock(pos) == block.DIAMOND_BLOCK.id:
tp(100,100)
if mc.getBlock(pos) == block.GOLD_BLOCK.id:
tp(10,10)Editor is loading...
Leave a Comment