Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from mcpi.minecraft import Minecraft
- mc = Minecraft.create()
- import time
- import minecraftstuff
- import threading
- brick = 45
- def moveWall():
- pos = mc.player.getTilePos()
- wallPos = pos.clone()
- wallShape = minecraftstuff.MinecraftShape(mc, wallPos)
- wallShape.setBlocks(0, 0, 0, 0, 0, 9, brick)
- while True:
- wallShape.moveBy(0, 1, 0) # Движение вверх
- time.sleep(1)
- wallShape.moveBy(0, -1, 0) # Движение вверх
- time.sleep(1)
- wall_t = threading.Thread(target=moveWall)
- wall_t.start()
- mc.postToChat('Эта команда запустилась')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement