Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- PREFIX: &9[VillagerCMD]
- command /villager [<text>] [<text>]:
- permission: tearpvp.villager
- permission message: &cVoce nao tem a permissao &4'tearpvp.villager'&c.
- trigger:
- if arg 2 is not set:
- send "{@PREFIX} &cUso: /villager [nomedovillager] [comando]."
- stop
- else:
- spawn a villager at location of player
- apply slowness 100 to spawned villager for 999 days
- set name of spawned villager to colored arg 1
- set {villager::%name of spawned villager%} to arg 2
- set {villagerlocal::%name of spawned villager%} to location of player
- send "{@PREFIX} &eVoce criou um aldeao com o comando &6%arg 2%&e."
- while {villager::%name of spawned villager%} is set:
- teleport spawned villager to {villagerlocal::%name of spawned villager%}
- wait 8 seconds
- command /delvillager:
- permission: deltearpvp.villager
- permission message: &cVoce nao tem a permissao &4'tearpvp.delvillager'&c.
- trigger:
- loop all entities in radius 2 around player:
- if loop-entity is a villager:
- clear loop-entity
- clear {villager::%loop-entity%}
- clear {villagerlocal::%loop-entity%}
- send "{@PREFIX} &eVoce deletou o aldeao &6%loop-entity%&e."
- on damage:
- if {villager::%victim%} is set:
- cancel event
- teleport victim to {villagerlocal::%victim%}
- on rightclick on a villager:
- make player execute command "%{villager::%name of clicked entity%}%"
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment