Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #author=mcwnuq
- #ver=2.1
- variables:
- {rainbow} = false
- {rainbow.%player%} = false
- on enable:
- send "&7&l[&c&lT&e&lE&a&lC&9&lZ&d&lA&7&l]&f&lWlaczanie..." to console
- wait 20 ticks
- set {rainbow} to true
- set {red} to 255
- set {blue} to 0
- set {green} to 0
- wait 20 ticks
- send "&7&l[&c&lT&e&lE&a&lC&9&lZ&d&lA&7&l]&2&lWlaczony pomyslnie!" to console
- while {rainbow} is true:
- if {rainbow} is true:
- loop 255 times:
- if {rainbow} is true:
- add 1 to {green}
- wait a tick
- else:
- stop
- else:
- stop
- if {rainbow} is true:
- loop 255 times:
- if {rainbow} is true:
- remove 1 from {red}
- wait a tick
- else:
- stop
- else:
- stop
- if {rainbow} is true:
- loop 255 times:
- if {rainbow} is true:
- add 1 to {blue}
- wait a tick
- else:
- stop
- else:
- stop
- if {rainbow} is true:
- loop 255 times:
- if {rainbow} is true:
- remove 1 from {green}
- wait a tick
- else:
- stop
- else:
- stop
- if {rainbow} is true:
- loop 255 times:
- if {rainbow} is true:
- add 1 to {red}
- wait a tick
- else:
- stop
- else:
- stop
- if {rainbow} is true:
- loop 255 times:
- if {rainbow} is true:
- remove 1 from {blue}
- wait a tick
- else:
- stop
- else:
- stop
- stop
- on disable:
- send "&7&l[&c&lT&e&lE&a&lC&9&lZ&d&lA&7&l]&f&lWylaczanie..." to console
- set {rainbow} to false
- set {red} to 255
- set {blue} to 0
- set {green} to 0
- send "&7&l[&c&lT&e&lE&a&lC&9&lZ&d&lA&7&l]&2&lWlaczony pomyslnie!" to console
- stop
- command /rainbow [<text>]:
- permission: rainbow.use
- permission message: Nieznane polecenie. Wpisz "/pomoc" aby uzyskac pomoc.
- executable by: players
- trigger:
- if arg 1 is not set:
- send ""
- send "&3/rainbow on &7- &3wlacza efekt teczy"
- send "&3/rainbow off &7- &3wylacza efekt teczy"
- send "&3/rainbow set &7- &3daje darmowego, skorzanego seta"
- send ""
- if arg 1 is "set":
- if player has permission "rainbow.set":
- if {cooldown.%player%} is set:
- set {_roznica.tecza.set} to difference between {cooldown.%player%} and now
- if {_roznica.tecza.set} is greater than 86400 seconds:
- if player can hold 1 leather helmet:
- give 1 leather helmet of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
- else:
- drop 1 leather helmet of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
- if player can hold 1 leather chestplate:
- give 1 leather chestplate of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
- else:
- drop 1 leather chestplate of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
- if player can hold 1 leather leggings:
- give 1 leather leggings of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
- else:
- drop 1 leather leggings of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
- if player can hold 1 leather boots:
- give 1 leather boots of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
- else:
- drop 1 leather boots of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
- set {cooldown.%player%} to now
- else:
- send "&4Musisz odczekac jeszcze %difference between 86400 seconds and {_roznica.tecza.set}%"
- else:
- if player can hold 1 leather helmet:
- give 1 leather helmet of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
- else:
- drop 1 leather helmet of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
- if player can hold 1 leather chestplate:
- give 1 leather chestplate of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
- else:
- drop 1 leather chestplate of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
- if player can hold 1 leather leggings:
- give 1 leather leggings of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
- else:
- drop 1 leather leggings of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
- if player can hold 1 leather boots:
- give 1 leather boots of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||" to the player
- else:
- drop 1 leather boots of protection 4, unbreaking 3 named "&f&k|| &aDISCO SET %player% &f&k||"
- set {cooldown.%player%} to now
- else:
- send "Nieznane polecenie. Wpisz ""/pomoc"" aby uzyskac pomoc."
- if arg 1 is "on":
- if {rainbow.%player%} is false:
- if player is wearing leather armour:
- send "&a&lWlaczyles efekt teczy..."
- set {rainbow.%player%} to true
- while player is wearing leather armour:
- dye player's helmet ({red}, {green}, {blue})
- dye player's chestplate ({red}, {green}, {blue})
- dye player's legs ({red}, {green}, {blue})
- dye player's boots ({red}, {green}, {blue})
- wait a tick
- else:
- send "&4Musisz miec na sobie skorzany set!"
- else:
- send "&4Masz juz wlaczony efekt teczy!"
- if arg 1 is "off":
- if {rainbow.%player%} is true:
- set {rainbow.%player%} to false
- send "&c&lWylaczyles efekt teczy..."
- else:
- send "&4Nie masz wlaczonego efektu teczy! Aby go wlaczyc wpisz &a&l/rainbow on"
- on quit:
- if {rainbow.%player%} is true:
- set {rainbow.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment