Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- attacker is a player
- damage was caused by attack
- event is not cancelled
- attacker's tool is iron sword
- name of attacker's tool is "&9Squid Sword"
- chance of 15%:
- execute console command "execute %UUID of victim% ~ ~ ~ effect @s 15 5 0"
- execute console command "execute %UUID of victim% ~ ~ ~ effect @s 2 5 1"
- on rightclick:
- id of player's tool is 351
- durability of player's tool is 0
- name of player's tool is "&8Squid Ink"
- {kitpvp.timers.%player%::squidink} is not set
- play sound "entity.squid.death" to all players at player with volume 1.2 pitch 1
- execute console command "execute %player% ~ ~ ~ particle fallingdust ~ ~1 ~ 1 1 1 0 1000 force"
- execute console command "execute %player% ~ ~ ~ particle largesmoke ~ ~1 ~ 1 1 1 0 1000 force"
- loop entities in radius 5 around player:
- loop-entity is a living entity
- loop-entity is not player
- execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 15 10 0"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 2 10 2"
- set {kitpvp.timers.%player%::squidink} to 600
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::squidink} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::squidink}
- if id of loop-player's tool is 351:
- durability of loop-player's tool is 0
- name of loop-player's tool is "&8Squid Ink"
- send action bar from "&8Squid Ink&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::squidink}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::squidink} is 0
- delete {kitpvp.timers.%loop-player%::squidink}
- send action bar from "&8Squid Ink&aが使用可能になりました" to loop-player
- on damage:
- attacker is a player
- damage was caused by attack
- event is not cancelled
- attacker's tool is iron axe
- name of attacker's tool is "&5Minotaur's Axe"
- damage is 5
- set damage to 3
- chance of 10%:
- set damage to damage*1.5
- wait 1 tick
- play sound "entity.generic.explode" to all players at victim with volume 3 pitch 0.7
- execute console command "execute %UUID of victim% ~ ~ ~ particle hugeexplosion ~ ~1 ~ 0 0 0 0 1 force"
- push victim upwards with speed 1
- add "{FallDistance:10f}" to nbt of victim
- on rightclick with gunpowder:
- name of player's tool is "&5Rush"
- {kitpvp.timers.%player%::rush} is not set
- set {kitpvp.timers.%player%::rush} to 900
- play sound "entity.cow.ambient" to all players at player with volume 2 pitch 1
- wait 5 tick
- execute console command "execute %player% ~ ~ ~ effect @s 8 3 128 true"
- set {_nohitblockids::*} to 0, 6, 8, 9, 10, 11, 30, 31, 32, 36, 37, 38, 39, 40, 50, 51, 55, 63, 65, 68, 69, 70, 72, 76, 77, 78, 90, 93, 94, 119, 131, 143, 147, 148, 149, 150, 175, 209 and 425
- loop 60 times:
- if player is dead:
- stop loop
- if y of velocity of player > 0:
- set {_v} to new vector from x of velocity of player, -1, z of velocity of player
- set velocity of player to {_v}
- if player is on ground:
- push player horizontal forwards with speed 0.3
- execute console command "execute %player% ~ ~ ~ particle explode ~ ~ ~ 0 0 0 0.2 30"
- play sound "entity.cow.step" to all players at player with volume 1 pitch 1
- {_nohitblockids::*} do not contain id of block at location 1 meter horizontal forwards location of player
- {_nohitblockids::*} contain id of block at location 1 meter horizontal forwards location 1 meter above location of player
- teleport player to location 1 meter above location of player
- loop entities in radius 2 around player:
- loop-entity is a living entity
- loop-entity is not player
- make player damage loop-entity by 15
- add "{FallDistance:10f}" to nbt of loop-entity
- push loop-entity direction from player to loop-entity with speed 0.2
- push loop-entity upwards with speed 0.1
- if player is dead:
- stop loop
- wait 1 tick
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::rush} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::rush}
- if loop-player's tool is gunpowder:
- name of loop-player's tool is "&5Rush"
- send action bar from "&5Rush&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::rush}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::rush} is 0
- delete {kitpvp.timers.%loop-player%::rush}
- send action bar from "&5Rush&aが使用可能になりました" to loop-player
- on damage of player:
- attacker is a player
- damage was caused by attack
- event is not cancelled
- attacker's tool is iron sword
- name of attacker's tool is "&bIce Sword"
- chance of 10%:
- set {kitpvp.timers.%victim%::frozen} to 100
- execute console command "execute %UUID of victim% ~ ~ ~ particle blockdust ~ ~1 ~ 0.3 0.5 0.3 0.05 100 normal @a 79"
- play sound "block.glass.break" to all players at victim with volume 1.2 pitch 1
- on rightclick with prismarine shard:
- name of player's tool is "&bFrost Breath"
- {kitpvp.timers.%player%::frostbreath} is not set
- set {kitpvp.timers.%player%::frostbreath} to 600
- set {_loc} to location 0.5 meter forwards player's head
- loop 10 times:
- if player is dead:
- stop loop
- execute console command "execute %player% ~ ~ ~ particle instantSpell %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.3 0.3 0.3 1 50 force"
- loop entities in radius 2 around {_loc}:
- loop-entity is a living entity
- loop-entity is not player
- make player damage loop-entity by 5
- loop-entity is a player
- set {kitpvp.timers.%loop-entity%::frozen} to 200
- set {_loc} to location 1 meter forwards {_loc}
- wait 1 tick
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::frostbreath} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::frostbreath}
- if loop-player's tool is prismarine shard:
- name of loop-player's tool is "&bFrost Breath"
- send action bar from "&bFrost Breath&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::frostbreath}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::frostbreath} is 0
- delete {kitpvp.timers.%loop-player%::frostbreath}
- send action bar from "&bFrost Breath&aが使用可能になりました" to loop-player
- every tick:
- loop all players:
- if {kitpvp.timers.%loop-player%::frozen} >= 1:
- remove 1 from {kitpvp.timers.%loop-player%::frozen}
- execute console command "execute %loop-player% ~ ~ ~ particle mobSpell ~%random number between -0.3 and 0.3% ~%random number between 0 and 2% ~%random number between -0.3 and 0.3% 0.6 1 1 1 0"
- set loop-player's walk speed to 0.15
- damage loop-player by 0.25
- {kitpvp.timers.%loop-player%::frozen} is 0
- set loop-player's walk speed to 0.2
- delete {kitpvp.timers.%loop-player%::frozen}
- on rightclick with stick:
- name of player's tool is "&5Necromancer's Wand"
- {kitpvp.timers.%player%::necromancerwand} is not set
- set {kitpvp.timers.%player%::necromancerwand} to 600
- set {_monsterpattern} to random integer between 0 and 1
- play sound "ENTITY_ZOMBIE_VILLAGER_CONVERTED" to player with volume 1 and pitch 5
- execute console command "execute %player% ~ ~ ~ particle witchMagic ~ ~1 ~ 0.3 0.5 0.3 0.1 500 force"
- if {_monsterpattern} is 0:
- spawn a skeleton at player
- set name of last spawned entity to "&5%player%'s Skeleton"
- else if {_monsterpattern} is 1:
- spawn an adult zombie at player
- set name of last spawned entity to "&5%player%'s Zombie"
- add "{Tags:[""necromancermonster"",""owner:%player%""],Health:50.0f,Attributes:[{Name:""generic.maxHealth"",Base:50.0d},{Name:""generic.movementSpeed"",Base:0.3d},{Name:""generic.attackDamage"",Base:6.0d},{Name:""generic.followRange"",Base:50.0d}]}" to nbt of last spawned entity
- set {kitpvp.mobage::%UUID of last spawned entity%} to 3600
- wait 1 tick
- ignite last spawned entity for 0 tick
- add "{ArmorItems:[{},{},{},{id:""minecraft:leather_helmet"",Count:1b,Damage:0s,tag:{Unbreakable:1b}}],HandItems:[{},{}]}" to nbt of last spawned entity
- every tick:
- loop {kitpvp.mobage::*}:
- if getEntityFromUUID(loop-index) is not set:
- delete {kitpvp.mobage::%loop-index%}
- {kitpvp.mobage::%loop-index%} >= 1
- remove 1 from {kitpvp.mobage::%loop-index%}
- {kitpvp.mobage::%loop-index%} is 0
- delete {kitpvp.mobage::%loop-index%}
- set {_mob} to getEntityFromUUID(loop-index)
- execute console command "execute %UUID of {_mob}% ~ ~ ~ particle explode ~ ~1 ~ 0.3 0.5 0.3 0 100"
- teleport {_mob} to location at x-coordinate of {_mob}, -64, z-coordinate of {_mob} in world "%{_mob}'s world%"
- delayKill({_mob}, 10)
- on death:
- victim is not a player
- set {_tags::*} to getTagValues(victim)
- {_tags::*} contain "necromancermonster"
- clear drops
- on damage:
- victim is not a player
- attacker is a player
- set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of victim%")
- {_owner} is set
- {_owner} is attacker
- attacker's gamemode is survival or adventure
- cancel event
- on damage of player:
- attacker is a living entity
- loop all entities:
- loop-entity is not a player
- loop-entity is not armor stand
- loop-entity is a living entity
- set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of loop-entity%")
- {_owner} is victim
- target of loop-entity is not a player
- attacker is not loop-entity
- set target of loop-entity to attacker
- on damage:
- attacker is a player
- victim is a living entity
- victim is not armor stand
- event is not cancelled
- loop all entities:
- loop-entity is not a player
- loop-entity is not armor stand
- loop-entity is a living entity
- set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of loop-entity%")
- {_owner} is attacker
- victim is not loop-entity
- set target of loop-entity to victim
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::necromancerwand} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::necromancerwand}
- if loop-player's tool is stick:
- name of loop-player's tool is "&5Necromancer's Wand"
- send action bar from "&5Necromancer's Wand&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::necromancerwand}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::necromancerwand} is 0
- delete {kitpvp.timers.%loop-player%::necromancerwand}
- send action bar from "&5Necromancer's Wand&aが使用可能になりました" to loop-player
- on rightclick with flint:
- name of player's tool is "&5Fang Attack"
- {kitpvp.timers.%player%::fangattack} is not set
- set {kitpvp.timers.%player%::fangattack} to 600
- set {_loc} to location 1 meter horizontal forwards player
- loop 15 times:
- if player is dead:
- stop loop
- set {_spawnloc} to {_loc}
- add 90 to yaw of {_spawnloc}
- spawn an evoker fangs at {_spawnloc}
- add "{Tags:[""owner:%player%""]}" to nbt of last spawned evoker fangs
- set {_loc} to location 1 meter horizontal forwards {_loc}
- wait 1 tick
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::fangattack} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::fangattack}
- if loop-player's tool is flint:
- name of loop-player's tool is "&5Fang Attack"
- send action bar from "&5Fang Attack&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::fangattack}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::fangattack} is 0
- delete {kitpvp.timers.%loop-player%::fangattack}
- send action bar from "&5Fang Attack&aが使用可能になりました" to loop-player
- on damage:
- attacker is evoker fangs
- set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
- {_owner} is set
- cancel event
- set {_victimowner} to getOwnerTag("%tag ""Tags"" of nbt of victim%")
- if {_victimowner} is set:
- {_victimowner} is not {_owner}
- make {_owner} damage victim by 12
- else:
- victim is not {_owner}
- make {_owner} damage victim by 12
- on damage:
- attacker is a player
- attacker's tool is popped chorus fruit
- name of attacker's tool is "&cUppercut"
- event is not cancelled
- damage was caused by attack
- {kitpvp.timers.%attacker%::uppercut} is not set
- set {kitpvp.timers.%attacker%::uppercut} to 900
- set damage to 6
- loop 5 times:
- play sound "entity.player.attack.knockback" to all players at victim with volume 2 pitch 1
- wait 1 tick
- push victim upwards with speed 1
- push victim in horizontal direction of attacker with speed 0.5
- add "{FallDistance:5f}" to nbt of victim
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::uppercut} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::uppercut}
- if loop-player's tool is popped chorus fruit:
- name of loop-player's tool is "&cUppercut"
- send action bar from "&cUppercut&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::uppercut}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::uppercut} is 0
- delete {kitpvp.timers.%loop-player%::uppercut}
- send action bar from "&cUppercut&aが使用可能になりました" to loop-player
- on rightclick with fire charge:
- name of player's tool is "&cPunch Rush"
- cancel event
- {kitpvp.timers.%player%::punchrush} is not set
- set {kitpvp.timers.%player%::punchrush} to 1200
- loop 60 times:
- if player is dead:
- stop loop
- set {_loc} to location random number between -2 and 2 meter east location random number between -2 and 2 meter above location random number between -2 and 2 meter south location 5 meter forwards player's head
- execute console command "execute %player% ~ ~ ~ particle largeexplode %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 0 1"
- execute console command "execute %player% ~ ~ ~ particle crit %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 1 10"
- play sound "entity.player.attack.crit" to all players at {_loc} with volume 1 pitch 1
- if distance between location 0.5 meter horizontal to the right location 0.2 meter below player's head and {_loc} < distance between location 0.5 meter horizontal to the left location 0.2 meter below player's head and {_loc}:
- set {_vector} to vector between location 0.4 meter horizontal to the right location 0.2 meter below player's head and {_loc}
- set {_ploc} to location 0.5 meter horizontal to the right location 0.2 meter below player's head
- else if distance between location 0.5 meter horizontal to the right location 0.2 meter below player's head and {_loc} > distance between location 0.5 meter horizontal to the left location 0.2 meter below player's head and {_loc}:
- set {_vector} to vector between location 0.4 meter horizontal to the left location 0.2 meter below player's head and {_loc}
- set {_ploc} to location 0.5 meter horizontal to the left location 0.2 meter below player's head
- set yaw of {_ploc} to vector yaw of {_vector}
- set pitch of {_ploc} to vector pitch of {_vector}
- loop round(sqrt(x of {_vector}^2+y of {_vector}^2+z of {_vector}^2))*2 times:
- execute console command "execute %player% ~ ~ ~ particle crit %x-coordinate of {_ploc}% %y-coordinate of {_ploc}% %z-coordinate of {_ploc}% 0 0 0 0 1"
- loop entities in radius 0.5 around {_ploc}:
- {_victims::*} do not contain loop-entity
- loop-entity is not player
- loop-entity is not armor stand
- loop-entity is a living entity
- resetDamageDelay(loop-entity)
- make player damage loop-entity by 3
- set {_victims::%UUID of loop-entity%} to loop-entity
- set {_ploc} to location 0.5 meter forwards {_ploc}
- wait 1 tick
- loop {_victims::*}:
- add "{Motion:[0.0d,0.0d,0.0d]}" to nbt of loop-value-2
- delete {_victims::*}
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::punchrush} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::punchrush}
- if loop-player's tool is fire charge:
- name of loop-player's tool is "&cPunch Rush"
- send action bar from "&cPunch Rush&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::punchrush}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::punchrush} is 0
- delete {kitpvp.timers.%loop-player%::punchrush}
- send action bar from "&cPunch Rush&aが使用可能になりました" to loop-player
- on damage:
- attacker is a player
- damage was caused by attack
- attacker's tool is iron sword
- name of attacker's tool is "&bGolem Sword"
- event is not cancelled
- chance of 10%:
- loop 5 times:
- play sound "entity.irongolem.attack" to all players at attacker with volume 1.2 pitch 1
- set damage to damage*1.2
- wait 1 tick
- push victim upwards with speed 0.5
- push victim in horizontal direction of attacker with speed 0.3
- add "{FallDistance:5f}" to nbt of victim
- function breakEffect(id: number, data: number, loc: location):
- set {_packet} to new play_server_world_event packet
- set location pinfo 0 of {_packet} to {_loc}
- set int pnum 0 of {_packet} to 2001
- set int pnum 1 of {_packet} to {_data}*4096+{_id}
- loop all players:
- loop-player's world is {_loc}'s world
- send loop-player packet {_packet}
- on rightclick with firework star:
- name of player's tool is "&bShock Wave"
- player is on ground
- {kitpvp.timers.%player%::shockwave} is not set
- set {kitpvp.timers.%player%::shockwave} to 900
- play sound "entity.zombie.attack_door_wood" to all players at player with volume 2 pitch 1
- set {_loc} to location at x-coordinate of player, y-coordinate of block at player-0.5, z-coordinate of player in world "%player's world%"
- set {_yaw} to yaw of player
- set {_nohitblockids::*} to 0, 6, 8, 9, 10, 11, 30, 31, 32, 36, 37, 38, 39, 40, 50, 51, 55, 63, 65, 68, 69, 70, 72, 76, 77, 90, 93, 94, 119, 131, 143, 147, 148, 149, 150, 175, 209 and 425
- loop 40 times:
- if player is dead:
- stop loop
- set yaw of {_loc} to {_yaw}
- set {_block} to location below location of block at {_loc}
- breakEffect(id of block at {_block}, data of block at {_block}, location of block at {_loc})
- breakEffect(id of block east {_block}, data of block east {_block}, location east location of block at {_loc})
- breakEffect(id of block south {_block}, data of block south {_block}, location south location of block at {_loc})
- breakEffect(id of block west {_block}, data of block west {_block}, location west location of block at {_loc})
- breakEffect(id of block north {_block}, data of block north {_block}, location north location of block at {_loc})
- loop entities in radius 1.5 around {_loc}:
- loop-entity is not player
- push loop-entity direction from {_loc} to loop-entity with speed 0.3
- set velocity of loop-entity to new vector from x of velocity of loop-entity, 1.2, z of velocity of loop-entity
- loop-entity is a living entity
- loop-entity is not armor stand
- make player damage loop-entity by 20
- if {_nohitblockids::*} do not contain id of block at location 0.5 meter horizontal forwards {_loc}:
- if {_nohitblockids::*} contain id of block at location 1 meter above location 0.5 meter horizontal forwards {_loc}:
- set {_loc} to location at x-coordinate of location 0.5 meter horizontal forwards {_loc}, y-coordinate of {_loc}+1, z-coordinate of location 0.5 meter horizontal forwards {_loc} in world "%player's world%"
- else:
- stop loop
- else if {_nohitblockids::*} contain id of block at location 0.5 meter horizontal forwards {_loc}:
- if {_nohitblockids::*} do not contain id of block at location 1 meter below location 0.5 meter horizontal forwards {_loc}:
- set {_loc} to location 0.5 meter horizontal forwards {_loc}
- else if {_nohitblockids::*} contain id of block at location 1 meter below location 0.5 meter horizontal forwards {_loc}:
- if {_nohitblockids::*} do not contain id of block at location 2 meter below location 0.5 meter horizontal forwards {_loc}:
- set {_loc} to location at x-coordinate of location 0.5 meter horizontal forwards {_loc}, y-coordinate of {_loc}-1, z-coordinate of location 0.5 meter horizontal forwards {_loc} in world "%player's world%"
- else:
- stop loop
- wait 1 tick
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::shockwave} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::shockwave}
- if loop-player's tool is firework star:
- name of loop-player's tool is "&bShock Wave"
- send action bar from "&bShock Wave&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::shockwave}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::shockwave} is 0
- delete {kitpvp.timers.%loop-player%::shockwave}
- send action bar from "&bShock Wave&aが使用可能になりました" to loop-player
- on damage:
- attacker is a player
- event is not cancelled
- damage was caused by attack
- attacker's tool is stone sword
- name of attacker's tool is "&8Wither Sword"
- chance of 15%:
- execute console command "execute %UUID of victim% ~ ~ ~ effect @s 20 10 1"
- heal attacker by 2
- on rightclick with stick:
- name of player's tool is "&8Wither Wand"
- {kitpvp.timers.%player%::witherwand} is not set
- set {kitpvp.timers.%player%::witherwand} to 1200
- play sound "entity.wither.shoot" to all players at player with volume 2 pitch 1
- shoot a wither skull from player with speed 1
- add "{Tags:[""witherkitwitherskull""]}" to nbt of shot projectile
- on projectile hit:
- projectile is fireball
- set {_tags::*} to getTagValues(projectile)
- {_tags::*} contain "witherkitwitherskull"
- spawn a tnt at projectile
- add "{Tags:[""owner:%shooter%""],Fuse:0s}" to nbt of last spawned tnt
- loop entities in radius 5 around projectile:
- loop-entity is not shooter
- loop-entity is a living entity
- loop-entity is not armor stand
- execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 20 15 2"
- on damage:
- projectile is fireball
- set {_tags::*} to getTagValues(projectile)
- {_tags::*} contain "witherkitwitherskull"
- set damage to 0.5
- shooter is set
- heal shooter by 5
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::witherwand} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::witherwand}
- if loop-player's tool is stick:
- name of loop-player's tool is "&8Wither Wand"
- send action bar from "&8Wither Wand&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::witherwand}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::witherwand} is 0
- delete {kitpvp.timers.%loop-player%::witherwand}
- send action bar from "&8Wither Wand&aが使用可能になりました" to loop-player
- on rightclick with prismarine crystal:
- name of player's tool is "&8Shuriken"
- play sound "entity.arrow.shoot" to all players at player with volume 1 pitch 1
- shoot a snowball from player with speed 1.5
- add "{Tags:[""shuriken""]}" to nbt of shot projectile
- set {_packet} to new play_server_entity_destroy packet
- set int pnum 0 of {_packet} to 1
- set int array pnum 0 of {_packet} to id of shot projectile
- send all players packet {_packet}
- player's gamemode is survival or adventure
- remove prismarine crystal from player's tool
- on damage:
- projectile is a snowball
- set {_tags::*} to getTagValues(projectile)
- {_tags::*} contain "shuriken"
- set damage to 1
- on rightclick with firework star:
- name of player's tool is "&8Smoke Bomb"
- {kitpvp.timers.%player%::smokebomb} is not set
- set {kitpvp.timers.%player%::smokebomb} to 600
- execute console command "execute %player% ~ ~ ~ effect @s 14 15 0"
- execute console command "execute %player% ~ ~ ~ particle smoke ~ ~1 ~ 1 1 1 0 3000 force"
- loop entities in radius 5 around player:
- loop-entity is a living entity
- loop-entity is not player
- execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 15 5 0"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 2 5 0"
- every tick:
- loop all projectiles:
- loop-entity is a snowball
- set {_tags::*} to getTagValues(loop-entity)
- {_tags::*} contain "shuriken"
- delete {_tags::*}
- set {_loc} to location of loop-entity
- set {_v} to velocity of loop-entity
- set yaw of {_loc} to vector yaw of {_v}
- set pitch of {_loc} to vector pitch of {_v}
- loop ceil(sqrt(x of {_v}^2+y of {_v}^2+z of {_v}^2)*4) times:
- show 1 crit particles at {_loc} offset by 0, 0, 0 with speed 0
- set {_loc} to location 0.25 meter backwards {_loc}
- loop all players:
- if boots of loop-player is leather boots:
- name of boots of loop-player is "&8Ninja Shoes"
- execute console command "execute %loop-player% ~ ~ ~ effect @s 1 1 0 true"
- amount of prismarine crystal named "&8Shuriken" with lore "&d&oUndroppable" in loop-player's inventory < 16
- chance of 1%:
- give loop-player prismarine crystal named "&8Shuriken" with lore "&d&oUndroppable"
- if {kitpvp.timers.%loop-player%::smokebomb} >= 1:
- remove 1 from {kitpvp.timers.%loop-player%::smokebomb}
- if loop-player's tool is firework star:
- name of loop-player's tool is "&8Smoke Bomb"
- send action bar from "&8Smoke Bomb&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::smokebomb}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::smokebomb} is 0
- delete {kitpvp.timers.%loop-player%::smokebomb}
- send action bar from "&8Smoke Bomb&aが使用可能になりました" to loop-player
- if loop-player has invisibility:
- set {_packet1} to new play_server_entity_equipment packet
- set int pnum 0 of {_packet1} to id of loop-player
- set "ItemSlots" penum 0 of {_packet1} to "HEAD"
- set {_packet2} to new play_server_entity_equipment packet
- set int pnum 0 of {_packet2} to id of loop-player
- set "ItemSlots" penum 0 of {_packet2} to "CHEST"
- set {_packet3} to new play_server_entity_equipment packet
- set int pnum 0 of {_packet3} to id of loop-player
- set "ItemSlots" penum 0 of {_packet3} to "LEGS"
- set {_packet4} to new play_server_entity_equipment packet
- set int pnum 0 of {_packet4} to id of loop-player
- set "ItemSlots" penum 0 of {_packet4} to "FEET"
- loop all players:
- loop-player-2 is not loop-player-1
- send loop-player-2 packet {_packet1}
- send loop-player-2 packet {_packet2}
- send loop-player-2 packet {_packet3}
- send loop-player-2 packet {_packet4}
- else:
- set {_packet1} to new play_server_entity_equipment packet
- set int pnum 0 of {_packet1} to id of loop-player
- set "ItemSlots" penum 0 of {_packet1} to "HEAD"
- if helmet of loop-player is set:
- set {_head} to helmet of loop-player-1
- set "ItemModifier" pinfo 0 of {_packet1} to {_head}
- set {_packet2} to new play_server_entity_equipment packet
- set int pnum 0 of {_packet2} to id of loop-player
- set "ItemSlots" penum 0 of {_packet2} to "CHEST"
- if chestplate of loop-player is set:
- set {_chest} to chestplate of loop-player-1
- set "ItemModifier" pinfo 0 of {_packet2} to {_chest}
- set {_packet3} to new play_server_entity_equipment packet
- set int pnum 0 of {_packet3} to id of loop-player
- set "ItemSlots" penum 0 of {_packet3} to "LEGS"
- if leggings of loop-player is set:
- set {_legs} to leggings of loop-player-1
- set "ItemModifier" pinfo 0 of {_packet3} to {_legs}
- set {_packet4} to new play_server_entity_equipment packet
- set int pnum 0 of {_packet4} to id of loop-player
- set "ItemSlots" penum 0 of {_packet4} to "FEET"
- if boots of loop-player is set:
- set {_feet} to boots of loop-player-1
- set "ItemModifier" pinfo 0 of {_packet4} to {_feet}
- loop all players:
- loop-player-2 is not loop-player-1
- send loop-player-2 packet {_packet1}
- send loop-player-2 packet {_packet2}
- send loop-player-2 packet {_packet3}
- send loop-player-2 packet {_packet4}
- delete {_head}
- delete {_chest}
- delete {_legs}
- delete {_feet}
Advertisement
Add Comment
Please, Sign In to add comment