Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. from mcpi.minecraft import Minecraft
  2. mc = Minecraft.create()
  3. import time
  4.  
  5. x = -20
  6. y = 52
  7. z = -7
  8.  
  9.  
  10. while True:
  11. gift = mc.getBlock(x, y, z)
  12. if gift == 57:
  13. mc.setBlock(-3, 50, 4, 152)
  14. elif gift != 0:
  15. mc.postToChat("Access Denied!")
  16. time.sleep(1.5)
  17. else:
  18. mc.setBlock(-3, 50, 4, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement