Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command /buyspawner1:
- trigger:
- If Player's balance is between 0 and 1199999:
- Send "&6&lSPAWNER SHOP &8: &cDu har ikke penge nok!" to player
- if player's balance is greater than or equal to 1200000:
- Send "&6&lSPAWNER SHOP &8: &fTak for købet!" to player
- give 1 mob spawner named "&5Enderman Spawner" to player
- Remove 1200000 from player's balance
- on place of mob spawner:
- if name of player's tool is "&5Enderman Spawner":
- set {_location} to location of targeted block
- set {spawner.enderman::%{_location}%} to {_location}
- set {_x} to x coord of event-location
- set {_y} to y coord of event-location
- set {_z} to z coord of event-location
- wait 2 tick
- set mob type of spawner target block to "Enderman"
- on break of mob spawner:
- if {spawner.enderman::%location of targeted block%} is set:
- cancel event
- set block to air
- remove location of targeted block from {spawner.enderman::*}
- delete {spawner.enderman::%location of targeted block%}
- give 1 mob spawner named "&5Enderman Spawner" to player
- send "&cDu har fjernet en &5Enderman Spawner" to player
Add Comment
Please, Sign In to add comment