#------------------------------# #---------PowerRangers---------# #-------------v0.2-------------# #------------------------------# options: dp: skrypt.zabawa n: &6[&9PowerRangers&6] #------------------------------------------------------------------------------------------------------------------------# variables: {trans.%player%} = false {red.%player%} = false {blue.%player%} = false {green.%player%} = false {yellow.%player%} = false {pink.%player%} = false {shadow.%player%} = false {omega.%player%} = false #------------------------------------------------------------------------------------------------------------------------# command /powerrangers [] []: aliases: pr executable by: console and player trigger: if player has permission "{@dp}": #------------------------------------------------------------------------------------------------------------------------# argument 1 is "spawn": set {spawn} to location of player send "{@n} &3Ustawiles respawn zabawy!" stop #------------------------------------------------------------------------------------------------------------------------# argument 1 is not set: send "{@n} &3Dostepne opcje:" send "&cmorfer, potwor, zbroja, zly, spawn" stop #------------------------------------------------------------------------------------------------------------------------# argument 1 is "morfer": give a emerald named "&4Morfer" to the player give a emerald named "&1Morfer" to the player give a emerald named "&2Morfer" to the player give a emerald named "&eMorfer" to the player give a emerald named "&dMorfer" to the player give a emerald named "&8Morfer" to the player give a emerald named "&fMorfer" to the player stop #------------------------------------------------------------------------------------------------------------------------# argument 1 is "zbroja": give a diamond helmet of protection 5 and unbreaking 10 named "Prot" to the player give a diamond chestplate of protection 5 and unbreaking 10 named "Prot" to the player give a diamond leggings of protection 5 and unbreaking 10 named "Prot" to the player give a diamond boots of protection 5 and unbreaking 10 named "Prot" to the player give a diamond sword of sharpness 5 and unbreaking 10 named "Prot" to the player stop #------------------------------------------------------------------------------------------------------------------------# argument 1 is "potwor": send "Komenda nie zrobiona!" stop #------------------------------------------------------------------------------------------------------------------------# argument 1 is "zly": argument 2 is not set: send "{@n} &3Wybierz gracza!" stop else: if {zly.%arg-2%} is false: spawn 1000 of particle explode:1 offset by 0.5, 1, 0.5 at arg-2 execute console command "/playsound random.explode %arg-2% ~0 ~0 ~0 10 1" send "&3Jestes zlym!" to arg-2 send "&3Prawy na redstone wezwanie potworków!" send "&4Prawy na golda wezwanie silnego robota!" apply speed 3 to the arg-2 for 9999 days apply haste 10 to the arg-2 for 9999 days apply regeneration 3 to the arg-2 for 9999 days add gold helmet named "Zbroja" to the arg-2's helmet add gold chestplate named "Zbroja" to the arg-2's chestplate add gold leggings named "Zbroja" to the arg-2's leggings add gold boots named "Zbroja" to the arg-2's boots add redstone named "&4Potwory" to the arg-2's inventory give a gold axe of sharpness 5 and unbreaking 10 to the arg-2 set the maximum health of arg-2 to 1000 set {zly.%arg-2%} to true stop if {zly.%arg-2%} is true: execute console command "/playsound random.explode %arg-2% ~0 ~0 ~0 10 1" remove gold helmet from arg-2's inventory remove gold chestplate from arg-2's inventory remove gold leggings from arg-2's inventory remove gold boots from arg-2's inventory remove gold axe from arg-2's inventory remove redstone from arg-2's inventory execute console command "heal %arg-2%" set the maximum health of arg-2 to 10 send "&Nie jestes juz zlym!" to arg-2 set {zly.%arg-2%} to false stop #------------------------------------------------------------------------------------------------------------------------# on rightclick with emerald: if player has permission "{@dp}": if name of player's tool is "&4Morfer": if {trans.%player%} is false: spawn 1000 of particle explode:1 offset by 0.5, 1, 0.5 at player execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" add leather chestplate named "&4Zbroja" to the player's chestplate dye player's chestplate (255, 51, 51) add leather leggings named "&4Zbroja" to the player's leggings dye player's leggings (255, 51, 51) add leather boots named "&4Zbroja" to the player's boots dye player's boots (255, 51, 51) add leather helmet named "&4Zbroja" to the player's helmet dye player's helmet (255, 51, 51) set the maximum health of player to 15 apply regeneration 1000 to the player for 9999 days apply haste 10 to the player for 9999 days give player diamond sword of sharpness 10 and unbreaking 10 named "&0Delta ostrze" send "&4S.P.D Alarm!" set {trans.%player%} to true set {red.%player%} to true stop if {trans.%player%} is true: execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" remove leather helmet from player's inventory remove leather chestplate from player's inventory remove leather leggings from player's inventory remove leather boots from player's inventory remove diamond sword from player's inventory execute console command "heal %player%" set the maximum health of player to 10 send "&4Wygaszenie!" set {trans.%player%} to false set {omega.%player%} to false set {red.%player%} to false set {blue.%player%} to false set {green.%player%} to false set {yellow.%player%} to false set {pink.%player%} to false set {shadow.%player%} to false stop #------------------------------------------------------------------------------------------------------------------------# if name of player's tool is "&1Morfer": if {trans.%player%} is false: spawn 1000 of particle explode:1 offset by 0.5, 1, 0.5 at player execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" add leather helmet named "&1Zbroja" to the player's helmet add leather chestplate named "&1Zbroja" to the player's chestplate add leather leggings named "&1Zbroja" to the player's leggings add leather boots named "&1Zbroja" to the player's boots dye player's helmet (0, 128, 255) dye player's chestplate (0, 128, 255) dye player's leggings (0, 128, 255) dye player's boots (0, 128, 255) set the maximum health of player to 15 apply regeneration 1000 to the player for 9999 days apply haste 10 to the player for 9999 days give player diamond sword of sharpness 10 and unbreaking 10 named "&0Delta ostrze" send "&1S.P.D Alarm!" set {trans.%player%} to true set {blue.%player%} to true stop if {trans.%player%} is true: execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" remove leather helmet from player's inventory remove leather chestplate from player's inventory remove leather leggings from player's inventory remove leather boots from player's inventory remove diamond sword from player's inventory execute console command "heal %player%" set the maximum health of player to 10 send "&1Wygaszenie!" set {trans.%player%} to false set {omega.%player%} to false set {red.%player%} to false set {blue.%player%} to false set {green.%player%} to false set {yellow.%player%} to false set {pink.%player%} to false set {shadow.%player%} to false stop #------------------------------------------------------------------------------------------------------------------------# if name of player's tool is "&2Morfer": if {trans.%player%} is false: spawn 1000 of particle explode:1 offset by 0.5, 1, 0.5 at player execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" add leather helmet named "&2Zbroja" to the player's helmet add leather chestplate named "&2Zbroja" to the player's chestplate add leather leggings named "&2Zbroja" to the player's leggings add leather boots named "&2Zbroja" to the player's boots dye player's helmet (0, 204, 0) dye player's chestplate (0, 204, 0) dye player's leggings (0, 204, 0) dye player's boots (0, 204, 0) set the maximum health of player to 15 apply regeneration 1000 to the player for 9999 days apply haste 10 to the player for 9999 days give player diamond sword of sharpness 10 and unbreaking 10 named "&0Delta ostrze" send "&2S.P.D Alarm!" set {trans.%player%} to true set {green.%player%} to true stop if {trans.%player%} is true: execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" remove leather helmet from player's inventory remove leather chestplate from player's inventory remove leather leggings from player's inventory remove leather boots from player's inventory remove diamond sword from player's inventory execute console command "heal %player%" set the maximum health of player to 10 send "&2Wygaszenie!" set {trans.%player%} to false set {omega.%player%} to false set {red.%player%} to false set {blue.%player%} to false set {green.%player%} to false set {yellow.%player%} to false set {pink.%player%} to false set {shadow.%player%} to false stop #------------------------------------------------------------------------------------------------------------------------# if name of player's tool is "&eMorfer": if {trans.%player%} is false: spawn 1000 of particle explode:1 offset by 0.5, 1, 0.5 at player execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" add leather helmet named "&eZbroja" to the player's helmet add leather chestplate named "&eZbroja" to the player's chestplate add leather leggings named "&eZbroja" to the player's leggings add leather boots named "&eZbroja" to the player's boots dye player's helmet (255, 255, 51) dye player's chestplate (255, 255, 51) dye player's leggings (255, 255, 51) dye player's boots (255, 255, 51) set the maximum health of player to 15 apply regeneration 1000 to the player for 9999 days apply haste 10 to the player for 9999 days give player diamond sword of sharpness 10 and unbreaking 10 named "&0Delta ostrze" send "&eS.P.D Alarm!" set {trans.%player%} to true set {yellow.%player%} to true stop if {trans.%player%} is true: execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" remove leather helmet from player's inventory remove leather chestplate from player's inventory remove leather leggings from player's inventory remove leather boots from player's inventory remove diamond sword from player's inventory execute console command "heal %player%" set the maximum health of player to 10 send "&eWygaszenie!" set {trans.%player%} to false set {omega.%player%} to false set {red.%player%} to false set {blue.%player%} to false set {green.%player%} to false set {yellow.%player%} to false set {pink.%player%} to false set {shadow.%player%} to false stop #------------------------------------------------------------------------------------------------------------------------# if name of player's tool is "&dMorfer": if {trans.%player%} is false: spawn 1000 of particle explode:1 offset by 0.5, 1, 0.5 at player execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" add leather helmet named "&dZbroja" to the player's helmet add leather chestplate named "&dZbroja" to the player's chestplate add leather leggings named "&dZbroja" to the player's leggings add leather boots named "&dZbroja" to the player's boots dye player's helmet (204, 0, 204) dye player's chestplate (204, 0, 204) dye player's leggings (204, 0, 204) dye player's boots (204, 0, 204) set the maximum health of player to 15 apply regeneration 1000 to the player for 9999 days apply haste 10 to the player for 9999 days give player diamond sword of sharpness 10 and unbreaking 10 named "&0Delta ostrze" send "&dS.P.D Alarm!" set {trans.%player%} to true set {pink.%player%} to true stop if {trans.%player%} is true: execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" remove leather helmet from player's inventory remove leather chestplate from player's inventory remove leather leggings from player's inventory remove leather boots from player's inventory remove diamond sword from player's inventory execute console command "heal %player%" set the maximum health of player to 10 send "&dWygaszenie!" set {trans.%player%} to false set {omega.%player%} to false set {red.%player%} to false set {blue.%player%} to false set {green.%player%} to false set {yellow.%player%} to false set {pink.%player%} to false set {shadow.%player%} to false stop #------------------------------------------------------------------------------------------------------------------------# if name of player's tool is "&8Morfer": if {trans.%player%} is false: spawn 1000 of particle explode:1 offset by 0.5, 1, 0.5 at player execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" add leather helmet named "&8Zbroja" to the player's helmet add leather chestplate named "&8Zbroja" to the player's chestplate add leather leggings named "&8Zbroja" to the player's leggings add leather boots named "&8Zbroja" to the player's boots dye player's helmet (85, 85, 255) dye player's chestplate (85, 85, 85) dye player's leggings (85, 85, 255) dye player's boots (85, 85, 85) set the maximum health of player to 20 apply regeneration 1000 to the player for 9999 days apply haste 10 to the player for 9999 days give player diamond sword of sharpness 15 and unbreaking 10 named "&8Ostrze Cienia" send "&8S.P.D Alarm!" set {trans.%player%} to true set {shadow.%player%} to true stop if {trans.%player%} is true: execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" remove leather helmet from player's inventory remove leather chestplate from player's inventory remove leather leggings from player's inventory remove leather boots from player's inventory remove diamond sword from player's inventory execute console command "heal %player%" set the maximum health of player to 10 send "&8Wygaszenie!" set {trans.%player%} to false set {omega.%player%} to false set {red.%player%} to false set {blue.%player%} to false set {green.%player%} to false set {yellow.%player%} to false set {pink.%player%} to false set {shadow.%player%} to false stop #------------------------------------------------------------------------------------------------------------------------# if name of player's tool is "&fMorfer": if {trans.%player%} is false: spawn 1000 of particle explode:1 offset by 0.5, 1, 0.5 at player execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" add leather helmet named "&fZbroja" to the player's helmet add leather chestplate named "&fZbroja" to the player's chestplate add leather leggings named "&fZbroja" to the player's leggings add leather boots named "&fZbroja" to the player's boots dye player's helmet (255, 170, 0) dye player's chestplate (255, 255, 255) dye player's leggings (255, 170, 0) dye player's boots (255, 255, 255) set the maximum health of player to 20 apply regeneration 1000 to the player for 9999 days apply haste 10 to the player for 9999 days give player gold sword of sharpness 10 and unbreaking 10 named "&0Delta ostrze" send "&fS.P.D Alarm!" set {trans.%player%} to true set {omega.%player%} to true stop if {trans.%player%} is true: execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" remove leather helmet from player's inventory remove leather chestplate from player's inventory remove leather leggings from player's inventory remove leather boots from player's inventory remove gold sword from player's inventory remove diamond sword from player's inventory execute console command "heal %player%" set the maximum health of player to 10 send "&fWygaszenie!" set {trans.%player%} to false set {omega.%player%} to false set {red.%player%} to false set {blue.%player%} to false set {green.%player%} to false set {yellow.%player%} to false set {pink.%player%} to false set {shadow.%player%} to false stop #------------------------------------------------------------------------------------------------------------------------# on death: if victim is player: if {trans.%victim%} is true: delete drops execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" set the maximum health of player to 10 send "&0Wygaszenie!" set {trans.%player%} to false stop if {zly.%victim%} is true: delete drops execute console command "/playsound random.explode %arg-2% ~0 ~0 ~0 10 1" execute console command "heal %arg-2%" set the maximum health of arg-2 to 10 set {zly.%victim%} to false stop #------------------------------------------------------------------------------------------------------------------------# on respawn: if {red.%player%} is true: give a emerald named "&4Morfer" to the player teleport player to {spawn} set {red.%player%} to false stop if {blue.%player%} is true: give a emerald named "&4Morfer" to the player teleport player to {spawn} set {blue.%player%} to false stop if {green.%player%} is true: give a emerald named "&4Morfer" to the player teleport player to {spawn} set {green.%player%} to false stop if {yellow.%player%} is true: give a emerald named "&4Morfer" to the player teleport player to {spawn} set {yellow.%player%} to false stop if {pink.%player%} is true: give a emerald named "&4Morfer" to the player teleport player to {spawn} set {pink.%player%} to false stop if {shadow.%player%} is true: give a emerald named "&4Morfer" to the player teleport player to {spawn} set {shadow.%player%} to false stop if {omega.%player%} is true: give a emerald named "&fMorfer" to the player teleport player to {spawn} set {omega.%player%} to false stop #------------------------------------------------------------------------------------------------------------------------# on jump: if {trans.%player%} is true: push player upwards with speed 0.2 wait 1 ticks push player forward with speed 0.3 stop #------------------------------------------------------------------------------------------------------------------------# on damage: damage was caused by fall: if victim is player: if {trans.%victim%} is true: cancel event #------------------------------------------------------------------------------------------------------------------------# on damage: if victim is player: if attacker is player: if {trans.%victim%} is true: if {trans.%attacker%} is true: cancel event #------------------------------------------------------------------------------------------------------------------------# on damage of player: if {trans.%victim%} is true: repair helmet of victim repair chestplate of victim repair leggings of victim repair boots of victim stop if {zly.%victim%} is true: repair helmet of victim repair chestplate of victim repair leggings of victim repair boots of victim stop #------------------------------------------------------------------------------------------------------------------------# on quit: if {trans.%player%} is true: execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1" remove leather helmet from player's inventory remove leather chestplate from player's inventory remove leather leggings from player's inventory remove leather boots from player's inventory remove gold sword from player's inventory remove diamond sword from player's inventory execute console command "heal %player%" set the maximum health of player to 10 send "&fWygaszenie!" set {trans.%player%} to false set {omega.%player%} to false set {red.%player%} to false set {blue.%player%} to false set {green.%player%} to false set {yellow.%player%} to false set {pink.%player%} to false set {shadow.%player%} to false stop #------------------------------------------------------------------------------------------------------------------------# on drop: if {trans.%player%} is true: cancel event