Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- przycisk: stone_button
- behind_block: sponge
- radius: 3
- swiat: world
- min-x: 350
- max-x: 1500
- min-y: 70
- max-y: 100
- min-z: 350
- max-z: 1500
- on rightclick on {@przycisk}:
- block behind target block is {@behind_block}::
- loop all players in radius {@radius} of event-block:
- add loop-player to {_lista::*}
- add player to {_lista::*}
- set {_targetx} to a random integer between {@min-x} and {@max-x}
- set {_targety} to a random integer between {@min-y} and {@max-y}
- set {_targetz} to a random integer between {@min-z} and {@max-z}
- set {_loc} to location at (%{_targetx}%, %{_targety}%, %{_targetz}%) of world "{@swiat}"
- loop {_list::*}:
- teleport loop-value at {_loc}
- on place:
- if player is holding a sponge:
- if player doesn't have permission "stawianie.sponge":
- cancel event
- send "&7Nie mozesz stawiac gabki!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement