on script load: register new shaped recipe for stick named "&b&LSnowStole" using snow, diamond, snow, diamond, stick, diamond, snow, diamond, snow register new shaped recipe for blaze rod named "&b&LBlazeStole" using block of gold, diamond, block of gold, diamond, blaze rod, diamond, block of gold, diamond, block of gold register new shaped recipe for bone named "&b&LBone ShotGun" using block of iron, diamond, block of iron, diamond, bone, diamond, block of iron, diamond, block of iron register new shaped recipe for arrow named "&b&LPistolet Cold 45" using arrow, diamond, arrow, diamond, arrow, diamond, arrow, diamond, arrow register new shaped recipe for wood hoe named "&b&LBazooka" using fish, diamond, fish, diamond, diamond hoe, diamond, fish, diamond, fish register new shaped recipe for shears named "&b&LNóz Zwykly" using none, none, none, none, shears, diamond, none, none, none register new shaped recipe for egg named "&b&LGranad Ogluszajacy" using none, diamond, none, diamond, egg, diamond, none, diamond, none register new shaped recipe for snowball named "&aAmunicja do SnowStole" using none, none, none, diamond, snowball, diamond, none, none, none register new shaped recipe for glowstone dust named "&aAmunicja do BlazeStole" using none, none, none, diamond, glowstone dust, diamond, none, none, none register new shaped recipe for bone meal named "&aAmunicja do Bone ShotGun" using none, none, none, diamond, bone meal, diamond, none, none, none register new shaped recipe for redstone named "&aAmunicja do pistoletu Cold 45" using none, none, none, diamond, redstone, diamond, none, none, none register new shaped recipe for fish named "&aAmunicja do Bazooka" using none, none, none, diamond, fish, diamond, none, none, none register new shaped recipe for block of emerald named "&aApteczka" using none, none, none, water bottle, block of emerald, water bottle, none, none, none register new shaped recipe for wooden pressure plate named "&aMina" using none, none, none, tnt, wooden pressure plate, tnt, none, none, none register new shaped recipe for paper named "&4Bandaz" using none, none, none, redstone, paper, redstone, none, none, none options: tag: &5Bronie on right click using stick: player have permission "IWeaponWar.snowstole" if player has snowball named "&aAmunicja do SnowStole": set {czas} to difference between {opoznieniesnow.%player%} and now if {czas} is less than 0.6 seconds: set name of the player's tool to "&ePrzeladowywanie..." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop else: shoot snowball with speed 15 damage targeted entity by 2 hearts remove 1 snowball from the player set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]" execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10" wait 3 tick shoot snowball with speed 15 execute command "/playsound mob.chicken.plop %name of player% ~0 ~0 ~0 10 5" damage targeted entity by 2 hearts remove 1 snowball from the player set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]" wait 3 tick shoot snowball with speed 15 execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10" damage targeted entity by 2 hearts remove 1 snowball from the player set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]" push the player backwards at speed 0.09 player is sprinting set {_a} to a random integer between 1 and 3 if {_a} is 1: damage targeted entity by 1 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10" if {_a} is 2: damage targeted entity by 2 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10" player is sneaking set {_b} to a random integer between 1 and 3 if {_b} is 1: damage targeted entity by 5 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10" if {_b} is 2: damage targeted entity by 6 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10" if {_b} is 3: damage targeted entity by 7 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10" if {_b} is 4: damage targeted entity by 8 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10" set {opoznieniesnow.%player%} to now stop else: send "&c&LBrak amunicji! Musisz ja kupic w sklepie." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop on right click using blaze rod: player have permission "IWeaponWar.blazestole" if player has 1 glowstone dust named "&aAmunicja do BlazeStole": set {czasblaze} to difference between {opoznienieblaze.%player%} and now if {czasblaze} is less than 0.4 seconds: set name of the player's tool to "&ePrzeladowywanie..." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop else: push the player backwards at speed 1.5 execute command "/playsound mob.wither.shoot %name of player% ~0 ~0 ~0 0.3" shoot an snowball at speed 16 damage targeted entity by 3 hearts remove 1 glowstone dust from the player set name of the player's tool to "&6[ &b%number of glowstone dust in the player's inventory% &6]" player is sprinting set {_c} to a random integer between 1 and 3 if {_c} is 1: damage targeted entity by 1 hearts execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10" if {_c} is 2: damage targeted entity by 2 hearts execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10" if {_c} is 3: damage targeted entity by 3 hearts execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10" player is sneaking set {_d} to a random integer between 1 and 2 if {_d} is 1: damage targeted entity by 7 hearts execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10" if {_d} is 2: damage targeted entity by 8 hearts execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10" set {opoznienieblaze.%player%} to now stop else: send "&c&LBrak amunicji! Musisz ja kupic w sklepie." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop on right click using bone: player have permission "IWeaponWar.boneshotgun" if player has 5 bone meal named "&aAmunicja do Bone ShotGun": set {czasbone} to difference between {opoznieniebone.%player%} and now if {czasbone} is less than 1.6 seconds: set name of the player's tool to "&ePrzeladowywanie..." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop else: shoot an snowball at speed 15 remove 5 bone meal from the player damage targeted entity by 4 hearts execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01" set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]" wait 1.5 tick shoot snowball with speed 1.5 execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01" set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]" wait 1.5 tick shoot snowball with speed 1.5 execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01" set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]" wait 1.5 tick shoot snowball with speed 1.5 execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01" set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]" wait 1.5 tick shoot snowball with speed 1.5 execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01" set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]" push the player backwards at speed 0.5 player is sprinting set {_d} to a random integer between 1 and 3 if {_d} is 1: damage targeted entity by 1 hearts execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10" if {_d} is 2: damage targeted entity by 2 hearts execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10" if {_d} is 3: damage targeted entity by 3 hearts execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10" player is sneaking set {_e} to a random integer between 1 and 3 if {_e} is 1: damage targeted entity by 6 hearts execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10" if {_e} is 2: damage targeted entity by 7 hearts execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10" if {_e} is 3: damage targeted entity by 8 hearts execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10" set {opoznieniebone.%player%} to now stop else: send "&c&LBrak amunicji! Musisz ja kupic w sklepie." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop on right click using arrow: player have permission "IWeaponWar.Cold45" if player has 2 redstone named "&aAmunicja do Pistoletu Cold 45": set {czasarrow} to difference between {opoznieniearrow.%player%} and now if {czasarrow} is less than 1 seconds: set name of the player's tool to "&ePrzeladowywanie..." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop else: shoot an snowball at speed 15 damage targeted entity by 4 hearts remove 1 redstone from the player set name of the player's tool to "&6[ &b%number of redstone in the player's inventory% &6]" execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12" push the player backwards at speed 0.4 set {_f} to a random integer between 1 and 2 if {_f} is 1: damage targeted entity by 1 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12" if {_f} is 2: damage targeted entity by 2 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12" player is sneaking set {_g} to a random integer between 1 and 2 if {_g} is 1: damage targeted entity by 7 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12" if {_g} is 2: damage targeted entity by 8 hearts execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12" set {opoznieniearrow.%player%} to now stop else: send "&c&LBrak amunicji! Musisz ja kupic w sklepie." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop on right click using wooden hoe: player have permission "IWeaponWar.bazooka" cancel event if player has 1 fish named "&aAmunicja do Bazooki": set {czasabazuka} to difference between {opoznieniebazuka.%player%} and now if {czasabazuka} is less than 10 seconds: set name of the player's tool to "&ePrzeladowywanie..." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop else: shoot an small fireball at speed 2.5 damage targeted entity by 8 hearts remove 1 raw fish named "&aAmunicja do Bazooki" from the player execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" set name of the player's tool to "&6[ &b%number of fish in the player's inventory% &6]" push the player backwards at speed 0.1 set {opoznieniebazuka.%player%} to now stop else: send "&c&LBrak amunicji! Musisz ja kupic w sklepie." execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" stop on projectile hit: if projectile is small fireball: projectile is small fireball create a fake explosion at projectile loop all players in radius 7 around projectile: damage loop-player by 7 hearts apply confusion 200 to loop-player for 20 seconds apply blindness 200 to loop-player for 8 seconds send "{@tag} &2Otrzymales obrazenia od Bazooki." to the loop-player if chance of 10%: damage loop-player by 1 hearts apply confusion 200 to loop-player for 3 seconds apply blindness 200 to loop-player for 2 seconds send "{@tag} &2Oberwales!" to the loop-player stop if chance of 40%: damage loop-player by 5 hearts apply confusion 200 to loop-player for 18 seconds apply blindness 200 to loop-player for 6 seconds send "{@tag} &2Otrzymales obrazenia od Bazooki!" to the loop-player stop on rightclick with shears: player have permission "IWeaponWar.noz" if player is holding a shears named "&b&lNóz Zwykly": shoot an arrow remove 1 shears from the player set {_h} to a random integer between 1 and 3 if {_h} is 1: damage targeted entity by 1 hearts execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10" if {_h} is 2: damage targeted entity by 2 hearts execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10" if {_h} is 3: damage targeted entity by 3 hearts execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10" player is sneaking set {_i} to a random integer between 1 and 3 if {_i} is 1: damage targeted entity by 8 hearts execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10" if {_i} is 2: damage targeted entity by 9 hearts execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10" if {_i} is 3: damage targeted entity by 10 hearts execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10" player is sprinting set {_j} to a random integer between 1 and 3 if {_j} is 1: damage targeted entity by 1 hearts execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10" if {_j} is 2: damage targeted entity by 2 hearts execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10" if {_j} is 3: damage targeted entity by 3 hearts execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10" stop on rightclick with egg: player have permission "IWeaponWar.granatogluszajacy" if player is holding a egg named "&b&lGranat Ogluszajacy": cancel event remove 1 egg named "&b&lGranat Ogluszajacy" from the player shoot an egg at speed 0.7 stop on projectile hit: projectile is egg named "&b&LGranat Ogluszajacy" create a fake explosion at projectile loop all players in radius 6 around projectile: damage loop-player by 4 hearts apply confusion 200 to loop-player for 20 seconds apply blindness 200 to loop-player for 8 seconds send "{@tag} &2Zostales ogluszony granatem." to the loop-player if chance of 40%: damage loop-player by 1 hearts apply confusion 200 to loop-player for 4 seconds apply blindness 200 to loop-player for 3 seconds send "{@tag} &2Dostales odlamkiem!" to the loop-player if chance of 10%: damage loop-player by 10 hearts if chance of 20%: damage loop-player by 5 hearts apply confusion 200 to loop-player for 15 seconds apply blindness 200 to loop-player for 6 seconds send "{@tag} &2Oberwales!" to the loop-player stop On Pressure Plate: create a fake explosion at event-block loop all players in radius 4 around event-block: if chance of 50%: damage loop-player by 7 hearts if chance of 20%: damage loop-player by 3 hearts if chance of 30%: damage loop-player by 5 hearts delete event-block every 1 seconds: loop all players: set {_a} to location of loop-player loop blocks in radius 4 around {_a}: if loop-block is emerald block: if loop-player's health is 10: stop else: heal the loop-player by 1 heart send "&8Uleczenie &a+1" to loop-player stop on place of emerald block: wait 30 seconds set event-block to air on leftclick: player have permission "IWeaponWar.zoom.snowstole" player is holding stick: {zoom.%player%} is 1: set {zoom.%player%} to 2 apply slowness 5 to player for 300 seconds set {zoomowanie.%player%} to true stop {zoom.%player%} is 2: set {zoom.%player%} to 1 remove slowness from player set {zoomowanie.%player%} to false stop {zoom.%player%} is not set: set {zoom.%player%} to 2 apply slowness 5 to player for 300 seconds set {zoomowanie.%player%} to true stop on leftclick: player have permission "IWeaponWar.zoom.balzestole" player is holding blaze rod: {zoom.%player%.blaze} is 1: set {zoom.%player%.blaze} to 2 apply slowness 5 to player for 300 seconds set {zoomowanie.%player%.blaze} to true stop {zoom.%player%.blaze} is 2: set {zoom.%player%.blaze} to 1 remove slowness from player set {zoomowanie.%player%.blaze} to false stop {zoom.%player%.blaze} is not set: set {zoom.%player%.blaze} to 2 apply slowness 5 to player for 300 seconds set {zoomowanie.%player%.blaze} to true stop on leftclick: player have permission "IWeaponWar.zoom.shotgun" player is holding bone: {zoom.%player%.bone} is 1: set {zoom.%player%.bone} to 2 apply slowness 5 to player for 300 seconds set {zoomowanie.%player%.bone} to true stop {zoom.%player%.blaze} is 2: set {zoom.%player%.bone} to 1 remove slowness from player set {zoomowanie.%player%.bone} to false stop {zoom.%player%.bone} is not set: set {zoom.%player%.bone} to 2 apply slowness 5 to player for 300 seconds set {zoomowanie.%player%.bone} to true stop every 0.01 tick: loop players: if {zoomowanie.%loop-player%} is true: loop-player is holding stick: set {zoomowanie.%loop-player%} to true else: set {zoomowanie.%loop-player%} to false remove slowness from loop-player on rightclick with paper: player have permission "IWeaponWar.bandaz" if player is holding a paper named "&b&lBandaz": if player's health is 10: send "&7Masz full &4HP" stop else: heal the player by 4 heart send "&8Uleczenie &a+4 " remove 1 paper from the player stop command /daj: trigger: give 1 egg named "&b&LGranat Ogluszajacy" to the player give 1 emerald block named "&aApteczka" to the player give 1 shears named "&b&lNóz Zwykly" to the player give 1 stick named "&b&lStickStole" to the player give 1 blaze rod named "&b&lBlazeStole" to the player give 1 bone named "&b&lBone ShotGun" to the player give 1 arrow named "&b&lPistolet Cold 45" to the player give 1 wooden pressure plate named "Mina" to the player give 1 wooden hoe named "&b&lBazooka" to the player give 64 fish named "&aAmunicja do Bazooki" to the player give 64 snowball named "&aAmunicja do SnowStole" to the player give 64 glowstone dust named "&aAmunicja do BlazeStole" to the player give 64 bone meal named "&aAmunicja do Bone ShotGun" to the player give 54 redstone named "&aAmunicja do Pistoletu Cold 45" to the player give 1 paper named "&b&lBandaz" to the player