mass0070

Skript MobSpawner

Jun 3rd, 2019 (edited)
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. Command /buyspawner1:
  2. trigger:
  3. If Player's balance is between 0 and 1199999:
  4. Send "&6&lSPAWNER SHOP &8: &cDu har ikke penge nok!" to player
  5. if player's balance is greater than or equal to 1200000:
  6. Send "&6&lSPAWNER SHOP &8: &fTak for købet!" to player
  7. give 1 mob spawner named "&5Enderman Spawner" to player
  8. Remove 1200000 from player's balance
  9.  
  10. on place of mob spawner:
  11. if name of player's tool is "&5Enderman Spawner":
  12. set {_location} to location of targeted block
  13. set {spawner.enderman::%{_location}%} to {_location}
  14. set {_x} to x coord of event-location
  15. set {_y} to y coord of event-location
  16. set {_z} to z coord of event-location
  17. wait 2 tick
  18. set mob type of spawner target block to "Enderman"
  19. on break of mob spawner:
  20. if {spawner.enderman::%location of targeted block%} is set:
  21. cancel event
  22. set block to air
  23. remove location of targeted block from {spawner.enderman::*}
  24. delete {spawner.enderman::%location of targeted block%}
  25. give 1 mob spawner named "&5Enderman Spawner" to player
  26. send "&cDu har fjernet en &5Enderman Spawner" to player
Add Comment
Please, Sign In to add comment