ShooterowyPL

BoyFarmer

Apr 4th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. on load:
  2. register new shaped recipe for end portal frame named "&9Automatyczny BoyFarmer" using obsidian, obsidian, obsidian, obsidian, enchanted golden apple, obsidian, obsidian, obsidian, obsidian
  3.  
  4. command /boyfarmer:
  5. trigger:
  6. if player has permissions "boyfarmer.give":
  7. add end portal frame named "&9Automatyczny BoyFarmer" to player
  8. send "&aOtrzymales &9Automatycznego BoyFarmera&a."
  9. stop
  10. else:
  11. send "&cNie masz uprawnien do tej komendy."
  12. stop
  13.  
  14. on place:
  15. if player's tool is end portal frame named "&9Automatyczny BoyFarmer":
  16. send "&aPostawiles Automatycznego BoyFarmera na koordach: x: %x-coordinate of event-block%, y: %y-coordinate of event-block%, z: %z-coordinate of event-block%"
  17. set event-block to air
  18. loop blocks below event-block:
  19. if loop-block is air:
  20. set loop-block to obsidian
  21. set {_block} to block below loop-block
  22. wait 5 ticks
  23. if {_block} is not air:
  24. send "&aAutomatyczny BoyFarmer zakonczyl prace!"
  25. stop
Add Comment
Please, Sign In to add comment