Zeldaboy111

Skript #187

Jun 13th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1.  
  2. options:
  3. prefix: &f[&2Tycoon&f] &8>>
  4. version: 1.0
  5.  
  6. command /tycoon [<text>] [<text>]:
  7. trigger:
  8. if player has permission "Tycoon.*":
  9. if arg 1 is "help":
  10. send "&f--------------[&2Tycoon&f]--------------"
  11. send "&a/Tycoon help &8>> &2Krijg de help pagina"
  12. send "&a/Tycoon shop create &8>> &2Maak een shop"
  13. send "&a/Tycoon shop &8>> &2Ga naar het shop gui"
  14. send "&f--------------[&2Tycoon&f]--------------"
  15.  
  16. if arg 1 is "shop":
  17. if arg 2 is "create":
  18. send "{@prefix} &2Succesvol een shop item gegeven."
  19. give player a book named "&6Create Shop" with lore "&5Klik om een shop te maken - Tycoon"
  20. #send "{@prefix} &aSuccesvol de shop gemaakt!"
  21. #spawn Llama at player
  22. #set {_Llama} to last spawned Llama
  23. #set name of last spawned Llama to "&6Tycoon shop"
  24. #add "{Age:1,NoAI:1,Silent:1b,Invulnerable:1}" to nbt tag of {_Llama}
  25.  
  26.  
  27. else if arg 2 is set:
  28. send "{@prefix} &4Dit command is niet goed uitgevoerd, doe &c/tycoon stop create&4."
  29.  
  30.  
  31. else:
  32. send "{@prefix} &4Doe &c/tycoon help &4voor meer info."
  33.  
  34. else if arg 1 is "help":
  35. send "&f--------------[&2Tycoon&f]--------------"
  36. send "&a/Tycoon help &8>> &2Krijg de help pagina"
  37. send "&a/Tycoon shop &8>> &2Ga naar het shop gui"
  38. send "&f--------------[&2Tycoon&f]--------------"
  39.  
  40. else if arg 1 is "shop":
  41. send "{@prefix} &aShop geoopent."
  42.  
  43.  
  44. on rightclick:
  45. if player is holding a book named "&6Create Shop" with lore "&5Klik om een shop te maken - Tycoon":
  46.  
  47. send "{@prefix} &aSuccesvol de shop gemaakt!"
  48. spawn Llama at location of "%x-coordinate of targeted block%%y-coordinate of targeted block+1%%z-coordinate of targeted block%"
  49. set {_Llama} to last spawned Llama
  50. set name of last spawned Llama to "&6Tycoon shop"
  51. add "{Age:1,NoAI:1,Silent:1b,Invulnerable:1}" to nbt tag of {_Llama}
  52. add "%world% - %x-coordinate of targeted block%%y-coordinate of targeted block+1%%z-coordinate of targeted block%" to {Tycoon::shopLocations::*}
  53. send "%{Tycoon::shopLocations::*}%"
Add Comment
Please, Sign In to add comment