Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- attacker is a player
- damage was caused by attack
- attacker's tool is iron sword
- name of attacker's tool is "&5Ender Sword"
- chance of 10%:
- execute console command "execute %UUID of victim% ~ ~ ~ effect @s 15 5 0"
- on rightclick with ender pearl:
- player's gamemode is survival or adventure
- if {infenderpearl.%player%} is not set:
- name of player's tool is "&5Infinity Ender Pearl"
- item amount of player's tool is 1
- add player's tool to player's tool
- set {infenderpearl.%player%} to 400
- else if {infenderpearl.%player%} >= 1:
- cancel event
- send "&aCooldown: &c%ceil({infenderpearl.%player%}/20)% seconds"
- every tick:
- loop all players:
- {infenderpearl.%loop-player%} is set
- remove 1 from {infenderpearl.%loop-player%}
- {infenderpearl.%loop-player%} <= 0
- delete {infenderpearl.%loop-player%}
- on rightclick with eye of ender:
- name of player's tool is "&5Eye of Fear"
- cancel event
- {kitpvp.timers.%player%::eyeoffear} is not set
- play sound "entity.endermen.scream" to all players at player with volume 1 pitch 1
- set {_nohitblocks::*} to 8, 9, 20, 102, 79, 95, 160, 0, 166
- loop 200 times:
- set {_i} to loop-number
- set {_ploc} to location 1.5 meter above location {_i}/2 meter forwards location of player
- if {_nohitblocks::*} do not contain id of block at {_ploc}:
- stop loop
- execute console command "execute %player% ~ ~ ~ particle witchMagic %x-coordinate of {_ploc}% %y-coordinate of {_ploc}% %z-coordinate of {_ploc}% 0 0 0 0 1 force"
- loop entities in radius 0.5 around {_ploc}:
- loop-entity is not player
- loop-entity is a living entity
- loop-entity is not armor stand
- if loop-entity is a player:
- loop-entity's gamemode is survival or adventure
- remove slowness from loop-entity
- remove weakness from loop-entity
- apply potion slowness 2 to loop-entity for 10 second and ambient true
- apply potion weakness 1 to loop-entity for 10 second and ambient true
- play sound "ENTITY_ELDER_GUARDIAN_CURSE" to loop-entity with volume 1 and pitch 5
- set {_hitflag} to 1
- stop loop
- else if loop-entity is not a player:
- remove slowness from loop-entity
- remove weakness from loop-entity
- apply potion slowness 2 to loop-entity for 10 second and ambient true
- apply potion weakness 2 to loop-entity for 10 second and ambient true
- set {_hitflag} to 1
- stop loop
- if {_hitflag} is 1:
- stop loop
- set {kitpvp.timers.%player%::eyeoffear} to 600
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::eyeoffear} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::eyeoffear}
- if loop-player's tool is eye of ender:
- name of loop-player's tool is "&5Eye of Fear"
- send action bar from "&5Eye of Fear&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::eyeoffear}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::eyeoffear} is 0
- delete {kitpvp.timers.%loop-player%::eyeoffear}
- send action bar from "&5Eye of Fear&aが使用可能になりました" to loop-player
- on shoot:
- shooter is a player
- "%tag ""Potion"" of nbt of projectile%" is "{id:""minecraft:splash_potion"",Count:1b,tag:{CustomPotionColor:16777181,HideFlags:32,Potion:""minecraft:empty"",display:{Lore:[""§d§oUndroppable""],Name:""§4Fire Bomb""}},Damage:0s}" or "{id:""minecraft:splash_potion"",Count:1b,tag:{CustomPotionColor:16777181,HideFlags:32,display:{Lore:[""§d§oUndroppable""],Name:""§4Fire Bomb""}},Damage:0s}"
- if {kitpvp.timers.%shooter%::firebomb} is set:
- cancel event
- else if {kitpvp.timers.%shooter%::firebomb} is not set:
- push projectile in direction of shooter with speed 1
- play sound "entity.tnt.primed" to all players at shooter with volume 1 pitch 1
- add "{Tags:[""firebomb""]}" to nbt of projectile
- set {kitpvp.timers.%shooter%::firebomb} to 1200
- wait 1 tick
- set shooter's tool to splash potion with nbt "{display:{Name:""&4Fire Bomb"",Lore:[""&d&oUndroppable""]},CustomPotionColor:16777181,HideFlags:32}"
- on rightclick with splash potion:
- name of player's tool is "&4Fire Bomb"
- {kitpvp.timers.%player%::firebomb} is set
- cancel event
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::firebomb} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::firebomb}
- if loop-player's tool is splash potion:
- name of loop-player's tool is "&4Fire Bomb"
- send action bar from "&4Fire Bomb&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::firebomb}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::firebomb} is 0
- delete {kitpvp.timers.%loop-player%::firebomb}
- send action bar from "&4Fire Bomb&aが使用可能になりました" to loop-player
- on projectile hit:
- set {_tags::*} to getTagValues(projectile)
- {_tags::*} contain "firebomb"
- spawn a TNT at projectile
- add "{Tags:[""owner:%shooter of projectile%""],Fuse:0s}" to nbt of last spawned TNT
- loop blocks in radius 5 around projectile:
- loop-block is air
- set loop-block to fire
- loop entities in radius 5 around projectile:
- ignite loop-entity for 15 second
- every tick:
- loop all projectiles:
- set {_tags::*} to getTagValues(loop-entity)
- {_tags::*} contain "firebomb"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ particle flame ~ ~ ~ 0 0 0 0 1 force"
- on inventory click:
- clicked inventory is inventory of player
- if clicked slot is 39:
- clicked cursor is player head
- name of clicked cursor is "&4Grenade" or "&4Remote Control Bomb"
- "%click type%" is "right mouse button" or "left mouse button" or "double click using mouse"
- cancel event
- else:
- clicked item is player head
- name of clicked item is "&4Grenade" or "&4Remote Control Bomb"
- "%click type%" contain "mouse button with shift"
- slot 39 of player's inventory is air
- cancel event
- on rightclick:
- id of player's tool is 397
- durability of player's tool is 3
- name of player's tool is "&4Grenade"
- cancel event
- {kitpvp.timers.%player%::grenade} is not set
- play sound "ENTITY_ARROW_SHOOT" with volume 1 and pitch 0 at player
- shoot an armor stand from location 1.5 meter above location of player with speed 1.7
- add "{Invisible:1b,Marker:1b,Small:1b,NoBasePlate:1b}" to nbt of shot armor stand
- drop player head with nbt "{display:{Name:""&4Grenade"",Lore:[""&d&oUndroppable""]},SkullOwner:{Id:""34793014-7003-4317-86fa-8fac22247a90"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2U1NWM1YWJjZTdhNzkyNjRhNDg5MmQ2ODgwNmVhYWZlMzcwYTBlNGRkMjZmNTYxOTFmN2MxODhmMDFlZDcyNiJ9fX0=""}]}}}" at player
- add "{Invulnerable:1b,PickupDelay:32767s,Age:5920s}" to nbt of last dropped item
- make last dropped item ride shot armor stand
- set {kitpvp.timers.%player%::grenade} to 200
- set {_grenadeentity} to shot armor stand
- wait 4 second
- spawn a TNT at {_grenadeentity}
- add "{Tags:[""owner:%player%""],Fuse:0s}" to nbt of last spawned TNT
- kill {_grenadeentity}
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::grenade} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::grenade}
- if id of loop-player's tool is 397:
- durability of loop-player's tool is 3
- name of loop-player's tool is "&4Grenade"
- send action bar from "&4Grenade&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::grenade}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::grenade} is 0
- delete {kitpvp.timers.%loop-player%::grenade}
- send action bar from "&4Grenade&aが使用可能になりました" to loop-player
- on place:
- id of player's tool is 397
- durability of player's tool is 3
- name of player's tool is "&4Remote Control Bomb"
- if {kitpvp.timers.%player%::rcbomb} is set:
- cancel event
- else if {kitpvp.timers.%player%::rcbomb} is not set:
- set {_durability} to durability of event-block
- cancel event
- wait 1 tick
- block at event-location is air
- set {_yaw} to yawAtan2(event-location, player)-180
- if {_yaw} < 0:
- add 360 to {_yaw}
- remove 11.25 from {_yaw}
- execute console command "execute %player% ~ ~ ~ setblock %x-coordinate of event-location% %y-coordinate of event-location% %z-coordinate of event-location% skull %{_durability}% replace {Rot:%round({_yaw}/22.5)%b,SkullType:3,Owner:{Id:""8b8fcca0-6880-4108-a46a-5a21320e0d7c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGRhMzMyYWJkZTMzM2ExNWE2YzZmY2ZlY2E4M2YwMTU5ZWE5NGI2OGU4ZjI3NGJhZmMwNDg5MmI2ZGJmYyJ9fX0=""}]}}}"
- set durability of block at event-location to {_durability}
- set {rcbomb::%player%} to event-location
- set player's tool to lever named "&4Detonator" with lore "&d&oUndroppable"
- set {kitpvp.timers.%player%::bombtimer} to 1200
- on break:
- {rcbomb::*} contain event-location
- cancel event
- on join:
- set block at {rcbomb::%player%} to air
- delete {rcbomb::%player%}
- delete {kitpvp.timers.%player%::bombtimer}
- on quit:
- set block at {rcbomb::%player%} to air
- delete {kitpvp.timers.%player%::bombtimer}
- delete {rcbomb::%player%}
- on death:
- set block at {rcbomb::%player%} to air
- delete {rcbomb::%player%}
- delete {kitpvp.timers.%player%::bombtimer}
- on load:
- loop {rcbomb::*}:
- set block at {rcbomb::%loop-index%} to air
- delete {rcbomb::%loop-index%}
- delete {kitpvp.timers.%loop-index%::bombtimer}
- function getTimerFromSeconds(num: number) :: string:
- set {_minutes} to floor({_num}/60)
- set {_seconds} to {_num}-60*{_minutes}
- if {_seconds} < 10:
- set {_seconds} to "0%{_seconds}%"
- if {_minutes} < 10:
- set {_minutes} to "0%{_minutes}%"
- return "%{_minutes}%:%{_seconds}%"
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::bombtimer} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::bombtimer}
- if loop-player's tool is lever:
- name of loop-player's tool is "&4Detonator"
- send action bar from "&c%getTimerFromSeconds(ceil({kitpvp.timers.%loop-player%::bombtimer}/20))%" to loop-player
- {kitpvp.timers.%loop-player%::bombtimer} is 0
- loop items in loop-player's inventory:
- loop-item is lever
- name of loop-item is "&4Detonator"
- set loop-item to player head with nbt "{display:{Name:""§4Remote Control Bomb"",Lore:[""§d§oUndroppable""]},SkullOwner:{Id:""8b8fcca0-6880-4108-a46a-5a21320e0d7c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGRhMzMyYWJkZTMzM2ExNWE2YzZmY2ZlY2E4M2YwMTU5ZWE5NGI2OGU4ZjI3NGJhZmMwNDg5MmI2ZGJmYyJ9fX0=""}]}}}"
- set block at {rcbomb::%loop-player%} to air
- spawn a TNT at {rcbomb::%loop-player%}
- add "{Tags:[""owner:%loop-player%""],Fuse:0s}" to nbt of last spawned TNT
- delete {kitpvp.timers.%loop-player%::bombtimer}
- delete {rcbomb::%loop-player%}
- set {kitpvp.timers.%loop-player%::rcbomb} to 1200
- on rightclick with lever:
- name of player's tool is "&4Detonator"
- cancel event
- {rcbomb::%player%} is set
- {kitpvp.timers.%player%::bombtimer} <= 1100
- set player's tool to player head with nbt "{display:{Name:""§4Remote Control Bomb"",Lore:[""§d§oUndroppable""]},SkullOwner:{Id:""8b8fcca0-6880-4108-a46a-5a21320e0d7c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGRhMzMyYWJkZTMzM2ExNWE2YzZmY2ZlY2E4M2YwMTU5ZWE5NGI2OGU4ZjI3NGJhZmMwNDg5MmI2ZGJmYyJ9fX0=""}]}}}"
- set block at {rcbomb::%player%} to air
- spawn a TNT at {rcbomb::%player%}
- add "{Tags:[""owner:%player%""],Fuse:0s}" to nbt of last spawned TNT
- delete {kitpvp.timers.%player%::bombtimer}
- delete {rcbomb::%player%}
- set {kitpvp.timers.%player%::rcbomb} to 600
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::rcbomb} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::rcbomb}
- if id of loop-player's tool is 397:
- durability of loop-player's tool is 3
- name of loop-player's tool is "&4Remote Control Bomb"
- send action bar from "&4Remote Control Bomb&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::rcbomb}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::rcbomb} is 0
- delete {kitpvp.timers.%loop-player%::rcbomb}
- send action bar from "&4Remote Control Bomb&aが使用可能になりました" to loop-player
- on damage of player:
- attacker is a player
- attacker's tool is iron sword
- name of attacker's tool is "&9Shark Sword"
- set {_damage} to damage
- if block at location of attacker is water:
- set {_damage} to {_damage}*1.2
- chance of 20%:
- set {_damage} to {_damage}*1.5
- execute console command "execute %victim% ~ ~ ~ particle iconcrack ~ ~1 ~ 0.3 0.5 0.3 0.05 50 normal @a 367"
- execute console command "execute %victim% ~ ~ ~ particle blockcrack ~ ~1 ~ 0.3 0.5 0.3 0 50 normal @a 55"
- play sound "entity.generic.eat" to all players at victim with volume 1 pitch 1
- execute console command "execute %attacker% ~ ~ ~ effect @s 10 5 2"
- set damage to {_damage}
- stop
- if block at location 1 meter above location of attacker is water:
- set {_damage} to {_damage}*1.2
- chance of 20%:
- set {_damage} to {_damage}*1.5
- execute console command "execute %victim% ~ ~ ~ particle iconcrack ~ ~1 ~ 0.3 0.5 0.3 0.05 50 normal @a 367"
- execute console command "execute %victim% ~ ~ ~ particle blockcrack ~ ~1 ~ 0.3 0.5 0.3 0 50 normal @a 55"
- play sound "entity.generic.eat" to all players at victim with volume 1 pitch 1
- execute console command "execute %attacker% ~ ~ ~ effect @s 10 5 2"
- set damage to {_damage}
- stop
- else:
- chance of 10%:
- set {_damage} to {_damage}*1.5
- execute console command "execute %victim% ~ ~ ~ particle iconcrack ~ ~1 ~ 0.3 0.5 0.3 0.05 50 normal @a 367"
- execute console command "execute %victim% ~ ~ ~ particle blockcrack ~ ~1 ~ 0.3 0.5 0.3 0 50 normal @a 55"
- play sound "entity.generic.eat" to all players at victim with volume 1 pitch 1
- execute console command "execute %attacker% ~ ~ ~ effect @s 10 5 2"
- set damage to {_damage}
- every tick:
- loop all players:
- loop-player's boots is leather boots
- name of loop-player's boots is "&9Shark Boots"
- if block at loop-player is water:
- execute console command "execute %loop-player% ~ ~ ~ effect @s 1 1 1 true"
- execute console command "execute %loop-player% ~ ~ ~ effect @s 13 1 0 true"
- if block at location 1 meter above location of loop-player is water:
- execute console command "execute %loop-player% ~ ~ ~ effect @s 1 1 1 true"
- execute console command "execute %loop-player% ~ ~ ~ effect @s 13 1 0 true"
- on damage of player:
- victim's boots is leather boots
- name of victim's boots is "&9Shark Boots"
- damage was caused by attack
- chance of 10%:
- make victim damage attacker by damage/2
- block at location 1 meter above location of victim is not water
- block at victim is not water
- set damage to damage*1.2
- on rightclick:
- id of player's tool is 351
- durability of player's tool is 6
- name of player's tool is "&9Power of Ocean"
- {kitpvp.timers.%player%::powerofocean} is not set
- set {_dx} to 6
- set {_dz} to 6
- play sound "ENTITY_GENERIC_SPLASH" with volume 1 and pitch 1 at player
- loop 169 times:
- if block at location {_dx} meter east location {_dz} meter south location of block at player is air:
- set {_x} to x-coordinate of location {_dx} meter east location {_dz} meter south location of block at player
- set {_y} to y-coordinate of location {_dx} meter east location {_dz} meter south location of block at player
- set {_z} to z-coordinate of location {_dx} meter east location {_dz} meter south location of block at player
- set block at location {_dx} meter east location {_dz} meter south location of block at player to water
- set {waterloc::%loop-number%-%UUID of player%} to location {_dx} meter east location {_dz} meter south location of block at player
- remove 1 from {_dx}
- {_dx} is -7
- remove 1 from {_dz}
- set {_dx} to 6
- set {kitpvp.timers.%player%::powerofocean} to 600
- wait 8 second
- loop {waterloc::*}:
- set block at loop-value to air
- delete {waterloc::%loop-index%}
- on flow:
- event-block is water
- {waterloc::*} contain location of event-block
- cancel event
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::powerofocean} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::powerofocean}
- if id of loop-player's tool is 351:
- durability of loop-player's tool is 6
- name of loop-player's tool is "&9Power of Ocean"
- send action bar from "&9Power of Ocean&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::powerofocean}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::powerofocean} is 0
- delete {kitpvp.timers.%loop-player%::powerofocean}
- send action bar from "&9Power of Ocean&aが使用可能になりました" to loop-player
- on damage:
- attacker is a player
- attacker's tool is golden axe
- event is not cancelled
- damage was caused by attack
- name of attacker's tool is "&eLightning Axe"
- set damage to 3
- chance of 10%:
- set damage to damage*1.2
- strike lightning effect at victim
- victim is a player
- set {numbness.%victim%} to 1
- set {kitpvp.timers.%victim%::numbness} to 100
- on rightclick with tipped arrow:
- name of player's tool is "&eLightning Spear"
- {kitpvp.timers.%player%::lightningspear} is not set
- cancel event
- shoot a arrow from location 0.5 meter forwards player's head at speed 4
- set shooter of shot projectile to player
- play sound "entity.player.attack.sweep" to all players at location of player with volume 2 pitch 0
- add "{Tags:[""lightningspear""],Color:16777073,crit:1b,damage:2.0d}" to nbt of shot projectile
- set {kitpvp.timers.%player%::lightningspear} to 900
- on projectile hit:
- projectile is an arrow
- set {_tags::*} to getTagValues(projectile)
- {_tags::*} contain "lightningspear"
- strike lightning effect at projectile
- spawn a TNT at projectile
- add "{Tags:[""owner:%shooter of projectile%""],Fuse:0s}" to nbt of last spawned TNT
- loop players in radius 3 around projectile:
- loop-player is not shooter of projectile
- set {numbness.%loop-player%} to 1
- set {kitpvp.timers.%loop-player%::numbness} to 200
- kill projectile
- every tick:
- loop all players:
- if {kitpvp.timers.%loop-player%::numbness} >= 1:
- 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% 1 1 0.44 1 0"
- if loop-player's gamemode is survival or adventure:
- if loop-player's absorption hearts > 0:
- set loop-player's absorption hearts to loop-player's absorption hearts-1/40
- else if loop-player's health > 0:
- set loop-player's health to loop-player's health-1/40
- remove 1 from {kitpvp.timers.%loop-player%::numbness}
- {kitpvp.timers.%loop-player%::numbness} is 0
- delete {kitpvp.timers.%loop-player%::numbness}
- {kitpvp.timers.%loop-player%::numbness} is not set
- {numbness.%loop-player%} is set
- delete {numbness.%loop-player%}
- every tick:
- loop all players:
- {kitpvp.timers.%loop-player%::lightningspear} >= 1
- remove 1 from {kitpvp.timers.%loop-player%::lightningspear}
- if loop-player's tool is tipped arrow:
- name of loop-player's tool is "&eLightning Spear"
- send action bar from "&eLightning Spear&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::lightningspear}/20)%秒" to loop-player
- {kitpvp.timers.%loop-player%::lightningspear} is 0
- delete {kitpvp.timers.%loop-player%::lightningspear}
- send action bar from "&eLightning Spear&aが使用可能になりました" to loop-player
Add Comment
Please, Sign In to add comment