Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Bijus
- command /Bijuu [<text>] [<text>]:
- permission: Bijuu
- cooldown: 300 seconds
- cooldown message: &6Disponible dentro de 300 segundos.
- trigger:
- if arg 1 contains "Reparar":
- set {Invocacion.Esperando.Bijuu.%player%} to false
- send "&aReparar Aplicado!"
- if arg 1 contains "Invocar":
- if {Invocacion.Esperando.Bijuu.%player%} is true:
- send "&c[Error] &fNo puedes invocar otra Bijuu de este tipo mientras tengas una ya Invocada"
- else:
- set {Invocacion.Prefijo.%player%} to arg-2
- set {Invocacion.Acciones.Bijuu} to enchanted book named "&8&o(S+D) &3Ataque Rapido &f/ &8&o(D) &dSeguir &f/ &8&o(I) &cAtacar &f/ &8&o(S+I) &5Bijudama"
- set {Invocacion.Eliminar.Bijuu} to paper named "&cEliminar Bijuu"
- give {Invocacion.Eliminar.Bijuu} to player
- give {Invocacion.Acciones.Bijuu} to player
- set {Invocacion.Activacion.Bijuu.%player%} to true
- set {Invocacion.Esperando.Bijuu.%player%} to true
- set {_npcsombra} to a citizen with name "&c%arg-2% %player%" and entity type "ZOMBIE"
- spawn citizen {_npcsombra} at location of player
- set {_npcid} to id of npc {_npcsombra}
- wait 1 tick
- set {Invocacion.Residual.Bijuu.%player%} to {_npcsombra}
- apply invisibility to citizen {_npcid} for 99999 seconds
- make console execute command "/npc sel %{_npcid}%"
- make console execute command "/npc vulnerable"
- set citizen {_npcid}'s helmet slot to soul sand named "%arg-2%"
- set citizen {_npcid} max health to 400
- heal citizen {_npcid}
- apply speed 8 to citizen {_npcid} for 99999 seconds
- apply strength 9 to citizen {_npcid} for 99999 seconds
- apply resistance 4 to citizen {_npcid} for 99999 seconds
- apply regeneration 3 to citizen {_npcid} for 99999 seconds
- on right click:
- if player's tool is {Invocacion.Acciones.Bijuu}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&c%{Invocacion.Prefijo.%player%}% %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.AtaqueRapido.%player%} is not set:
- set {Invocacion.AtaqueRapido.%player%} to 0
- if {Invocacion.AtaqueRapido.%player%} is less than 1:
- set {Invocacion.AtaqueRapido.%player%} to 10
- force the npc {Invocacion.Residual.Bijuu.%player%} to attack targeted entity with aggressive state true
- teleport npc {Invocacion.Residual.Bijuu.%player%} to location of target
- make player damage target by 2
- send "&6[Invocacion] &f¡Ataque Rapido!" to player
- send "&6[Invocacion] &f¡Ataque Rapido!" to target
- while {Invocacion.AtaqueRapido.%player%} is more than 0:
- subtract 1 from {Invocacion.AtaqueRapido.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.AtaqueRapido.%player%}%&7&os )" to player
- stop
- else:
- force the npc {Invocacion.Residual.Bijuu.%player%} to follow player with aggressive state false
- on left click:
- if player's tool is {Invocacion.Eliminar.Bijuu}:
- delete npc {Invocacion.Residual.Bijuu.%player%}
- delete {Invocacion.AtaqueRapido.%player%}
- delete {Invocacion.Residual.Bijuu.%player%}
- delete {Invocacion.Bijudama.%player%}
- remove {Invocacion.Eliminar.Bijuu} from player's inventory
- remove {Invocacion.Acciones.Bijuu} from player's inventory
- set {Invocacion.Esperando.Bijuu.%player%} to false
- set {Invocacion.Activacion.Bijuu.%player%} to true
- if player's tool is {Invocacion.Acciones.Bijuu}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&c%{Invocacion.Prefijo.%player%}% %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.Bijudama.%player%} is not set:
- set {Invocacion.Bijudama.%player%} to 0
- if {Invocacion.Bijudama.%player%} is less than 1:
- set {Invocacion.Bijudama.%player%} to 150
- force the npc {Invocacion.Residual.Bijuu.%player%} to attack targeted entity with aggressive state true
- make player damage target by 35
- send "&6[Invocacion] &f¡Bijudama!" to player
- send "&6[Invocacion] &f¡Bijudama!" to target
- while {Invocacion.Bijudama.%player%} is more than 0:
- subtract 1 from {Invocacion.Bijudama.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.Bijudama.%player%}%&7&os )" to player
- stop
- else:
- if targeted entity is set:
- if name of targeted entity is "&c%{Invocacion.Prefijo.%player%}% %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- force the npc {Invocacion.Residual.Bijuu.%player%} to attack targeted entity with aggressive state true
- on death:
- loop all players:
- if name of victim contains "&c%{Invocacion.Prefijo.%loop-player%}% %loop-player%":
- if {Invocacion.Activacion.Bijuu.%loop-player%} is true:
- delete npc {Invocacion.Residual.Bijuu.%loop-player%}
- delete {Invocacion.AtaqueRapido.%loop-player%}
- delete {Invocacion.Residual.Bijuu.%loop-player%}
- delete {Invocacion.Bijudama.%loop-player%}
- remove {Invocacion.Eliminar.Bijuu} from loop-player's inventory
- remove {Invocacion.Acciones.Bijuu} from loop-player's inventory
- set {Invocacion.Esperando.Bijuu.%loop-player%} to false
- set {Invocacion.Activacion.Bijuu.%loop-player%} to true
- send "&6[Invocacion]&f Tu &cBijuu&f acaba de despawnear a manos de &6%attacker%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement