Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- register new shaped recipe for end portal frame named "&9Automatyczny BoyFarmer" using obsidian, obsidian, obsidian, obsidian, enchanted golden apple, obsidian, obsidian, obsidian, obsidian
- command /boyfarmer:
- trigger:
- if player has permissions "boyfarmer.give":
- add end portal frame named "&9Automatyczny BoyFarmer" to player
- send "&aOtrzymales &9Automatycznego BoyFarmera&a."
- stop
- else:
- send "&cNie masz uprawnien do tej komendy."
- stop
- on place:
- if player's tool is end portal frame named "&9Automatyczny BoyFarmer":
- send "&aPostawiles Automatycznego BoyFarmera na koordach: x: %x-coordinate of event-block%, y: %y-coordinate of event-block%, z: %z-coordinate of event-block%"
- set event-block to air
- loop blocks below event-block:
- if loop-block is air:
- set loop-block to obsidian
- set {_block} to block below loop-block
- wait 5 ticks
- if {_block} is not air:
- send "&aAutomatyczny BoyFarmer zakonczyl prace!"
- stop
Add Comment
Please, Sign In to add comment