mundo_gameplay

RANKUPnpc

Mar 27th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. command /setrankup:
  2. permission: *
  3. trigger:
  4. spawn 1 Villager at location of player
  5. set name of last spawned entity to "&5&lRankup"
  6. apply slowness 255 to last spawned entity for 999 days
  7. set {rankupnpc} to location of player
  8.  
  9.  
  10. command /matartankup:
  11. permission: op
  12. trigger:
  13. loop all entities:
  14. name of loop-entity contains "&5&lRankup"
  15. kill loop-entity
  16.  
  17.  
  18. every 5 minutes:
  19. loop all entities:
  20. name of loop-entity contains "&5&lRankup"
  21. teleport loop-entity to {rankupnpc}
  22.  
  23. on damage:
  24. if name of victim contains "Rankup":
  25. cancel event
  26. else:
  27. stop
  28.  
  29. on right click on entity:
  30. name of clicked entity contains "&5&lRankup"
  31. set {usando.rankup.%player%} to player
  32. open chest with 2 row named "&5&lRankup" to player
  33. format slot 0 of player with a Red Wool named "&aConfirmar" with lore "&aClique aqui para &2CONFIRMAR" to run [make player execute command "rankup"]
  34. format slot 1 of player with a 35:5 named "&4Cancelar" with lore "&cClique aqui para &4CANCELAR" to close then run "asfasdg %player%"
  35.  
  36. command /asfasdg [<player>]:
  37. trigger:
  38. delete {usando.rankup.%player%}
  39.  
  40. on command "/rankup":
  41. if {usando.rankup.%player%} is set:
  42. delete {usando.rankup.%player%}
  43. stop
  44. else:
  45. cancel event
  46. make console execute command "/warp rankup %player%"
Advertisement
Add Comment
Please, Sign In to add comment