Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /setrankup:
- permission: *
- trigger:
- spawn 1 Villager at location of player
- set name of last spawned entity to "&5&lRankup"
- apply slowness 255 to last spawned entity for 999 days
- set {rankupnpc} to location of player
- command /matartankup:
- permission: op
- trigger:
- loop all entities:
- name of loop-entity contains "&5&lRankup"
- kill loop-entity
- every 5 minutes:
- loop all entities:
- name of loop-entity contains "&5&lRankup"
- teleport loop-entity to {rankupnpc}
- on damage:
- if name of victim contains "Rankup":
- cancel event
- else:
- stop
- on right click on entity:
- name of clicked entity contains "&5&lRankup"
- set {usando.rankup.%player%} to player
- open chest with 2 row named "&5&lRankup" to player
- format slot 0 of player with a Red Wool named "&aConfirmar" with lore "&aClique aqui para &2CONFIRMAR" to run [make player execute command "rankup"]
- format slot 1 of player with a 35:5 named "&4Cancelar" with lore "&cClique aqui para &4CANCELAR" to close then run "asfasdg %player%"
- command /asfasdg [<player>]:
- trigger:
- delete {usando.rankup.%player%}
- on command "/rankup":
- if {usando.rankup.%player%} is set:
- delete {usando.rankup.%player%}
- stop
- else:
- cancel event
- make console execute command "/warp rankup %player%"
Advertisement
Add Comment
Please, Sign In to add comment