Advertisement
Orleon

Untitled

Dec 23rd, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. from mcpi.minecraft import Minecraft
  2. import time
  3.  
  4. mc = Minecraft.create()
  5.  
  6. count = 1
  7. time = int(input("Время действия: "))
  8. block = int(input("ID блока: "))
  9. air = 0
  10. while True:
  11.     pos = mc.player.getTilePos()
  12.     x = pos.x
  13.     y = pos.y
  14.     z = pos.z
  15.     below = mc.getBlock(x, y - 1, z)
  16.     if below != air:
  17.         mc.setBlock(x, y, z, block)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement