Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==================================================[ NPC ]==================================================#
- on rightclick on zombie:
- if name of zombie is "&6&lBard":
- cancel event
- execute player command "/Bard"
- else if name of zombie is "&6&lDiamond":
- cancel event
- execute player command "/Diamond"
- else if name of zombie is "&6&lArcher":
- cancel event
- execute player command "/Archer"
- else if name of zombie is "&6&lRogue":
- cancel event
- execute player command "/Rogue"
- on damage:
- if victim is a zombie:
- if name of victim is "&6&lBard" or "&6&lDiamond" or "&6&lArcher" or "&6&lRogue":
- cancel event
- #==================================================[ Creathe ]==================================================#
- command /KitMap [<text=help>] [<text>] [<text>]:
- permission: KitMap.ez
- permission message: &cYou do not have permission.
- trigger:
- if player is op:
- if arg 1 is "help":
- message "&9&m-------[ &6KitMap&8 ]&9&m-------"
- message " &7➜ &c/KitMap setnpc <Class.>"
- message " &7➜ &c/KitMap delnpc"
- message "&9&m-------[ &6KitMap&8 ]&9&m-------"
- stop
- if arg 1 is "setnpc":
- if arg 2 is set:
- if arg 2 is "bard" or "Bard":
- set {npc.bard} to location of player
- wait 1 second
- spawn a Zombie at {npc.bard}
- apply slowness 1000 to last spawned entity for 9999 days
- set name of spawned entity to "&6&lBard"
- message "&7It has been created called &eBard&7."
- wait 1 second
- delete {npc.bard}
- else if arg 2 is "diamond" or "Diamond":
- set {npc.diamond} to location of player
- wait 1 second
- spawn a Zombie at {npc.diamond}
- apply slowness 1000 to last spawned entity for 9999 days
- set name of spawned entity to "&6&lDiamond"
- message "&7It has been created called &eDiamond&7."
- wait 1 second
- delete {npc.diamond}
- else if arg 2 is "archer" or "Archer":
- set {npc.archer} to location of player
- wait 1 second
- spawn a zombie at {npc.archer}
- apply slowness 1000 to last spawned entity for 9999 days
- set name of spawned entity to "&6&lArcher"
- message "&7It has been created called &eArcher&7."
- wait 1 second
- delete {npc.archer}
- else if arg 2 is "rogue" or "Rogue":
- set {npc.rogue} to location of player
- wait 1 second
- spawn a zombie at {npc.rogue}
- apply slowness 1000 to last spawned entity for 9999 days
- set name of spawned entity to "&6&lRogue"
- message "&7It has been created called &eRogue&7."
- wait 1 second
- delete {npc.rogue}
- if arg 1 is "delnpc":
- loop villagers in player's world:
- kill loop-entity
- message "&7 El NPC se ha eliminado."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement