command /customitem:
trigger:
set {_gui} to chest inventory with 6 rows named "&8Custom Itemy z &f&lANARCHIA.&e&lGG"
set slot 0 of {_gui} to poppy named "&c&lRóża kupidyna" with lore "&8» &7Przedmiot zdobyty w &fwalentynki w 2024 roku!" and "&8» &7Trzymaj go w ręce aby otrzymywać:" and "&0-&8- &fEfekt odporności 1" and "&0-&8- &fEfekt regeneracji 1"
set slot 1 of {_gui} to allium named "&d&lLizak" with lore "&8» &7Przedmiot zdobyty w &fdzień dziecka&7!" and "&8» &7Trzymaj go w ręce aby otrzymywać:" and "&0-&8- &fEfekt SIŁY 1"
set slot 2 of {_gui} to brown dye named "&8&lKupa ANARCHII" with lore "&7" and "&7Nic nie daje ale stworzył ją" and "&7pan &fdexsi66" and "&7" and "&cTen przedmiot nie nadaje &4SIŁKI II" and "&6Ostateczna &6&l&nOFERTA&6!!!"
set slot 3 of {_gui} to snowball named "&fŚnieżka" with lore "&7" and "&8» &7Jest to przedmiot z:" and "&8» &feventu świątecznego (2023)" and "&7" and "&8» &7Po trafieniu &ezamieniasz się" and "&8» &7z przeciwnikiem miejscem!" and "&7"
set slot 4 of {_gui} to netherite sword of sharpness 6, looting 3, fire aspect 2, mending 1, unbreaking 3, named "&d&lSmoczy miecz" with lore "&7" and "&8» &7Posiada on możliwość strzelania" and "&8» &dperłami kresu" and "&7"
open {_gui} to player
set slot 5 of {_gui} to fire charge named "&5&lBombarda maxima" with lore "&8» &7Jest to przedmiot zdobyty z" and "&8» &fkarnetu wakacyjnego 2024&7!" and "&7" and "&8» &7Po wystrzeleniu wybucha w okolicy" and "&8» &7i niszczy każdy możliwy blok oprócz" and "&8» &fskały macierzystej&7!"
open {_gui} to player
set slot 6 of {_gui} to lime candle named "&a&lZatruty ołówek" with lore "" and "&8» &7Jest to przedmiot zdobyty z:" and "&8» &fwydarzenia szkolnego 2024&7!" and "" and "&8» &7Po uderzeniu przeciwnika" and "&8» &7otrzymuje on &ctrujący efekt&7!" and ""
open {_gui} to player
set slot 7 of {_gui} to poisonous potato named "&2&lSpleśniała kanpka" with lore "" and "&8» &7Jest to przedmiot zdobyty z:" and "&8» &fwydarzenia szkolnego 2024&7!" and "" and "&8» &7Po uderzeniu przeciwnika" and "&8» &7zarazisz go &achorobą&7!" and ""
set slot 8 of {_gui} to fishing rod named "&5&lWędka nielota" with lore "" and "&8» &7Wędka nielota była do zdobycia" and "&8» &7w &f2024 roku &7podczas &adnia dziecka" and "" and "&8» &7Po złapaniu gracza na haczyk" and "&8» &7nie może on odlecieć &delytrą!" and ""
open {_gui} to player
set slot 9 of {_gui} to fishing rod named "&b&lWędka Surfera" with lore "" and "&8» &7Jest to przedmiot z:" and "&8» &feventu wakacyjnego (2023)" and "" and "&8» &7Ta &aniezwykła &7wędkazapewnia ci" and "&8» &7zdumiewającą zdolność przyciągania się" and "&8» &7do &bbloków &7i &dgraczy&7, tworząc zupełnie" and "&8» &7nowe możliwości eksploracji i walki!" and ""
open {_gui} to player
set slot 10 of {_gui} to netherite sword named "&3&lZajęczy miecz" with lore "" and "&8» &7Jest to przedmiot z &fwydarzenia" and "&8» &fwielkanocnego &7z &f2024 roku" and "" and "&8» &7Po uderzeniu przeciwnika blokuje" and "&8» &7możliwość skakania na &f4 sekundy&7!" and ""
set slot 11 of {_gui} to enchanted golden apple named "&c&lWampirze jabłko" with lore "&8» &7Jest to przedmiot z:" and "&8» &feventu halloween (2024)" and "" and "&8» &7Po zjedzeniu otrzymujesz na" and "&8» &7Krótki czas &csiły II&7!"
set slot 12 of {_gui} to egg of unbreaking 1 named "&eLewe jajko" with lore "" and "&8» &7Jest to przedmiot z &fwydarzenia" and "&8» &fwielkanocnego &7z &f2024 roku" and "&7" and "&8» &7Dzięki niemu możesz wyrzucić przeciwnika" and "&8» &7w powietrze!" and ""
set slot 13 of {_gui} to stick of knockback 4 named "&6Rózga" with lore "" and "&8» &7Jest to przedmiot z:" and "&8» &feventu świątecznego (2023)" and "&7" and "&8» &cOdrzuca &7z potężną siłą" and "&8» &7niegrzecznych graczy!" and ""
set slot 14 of {_gui} to golden helmet of aqua affinity 1, mending 1, projectile protection 4, thorns 3, vanishing curse 1 named "&6Korona ANARCHII" with lore "" and "&8» &eTen przedmiot jest wyjątkowy!" and "&8» &7Na serwerze zanjduje się tylko jedna" and "&8» &7taka korona! Która nigdy nie zostanie" and "&8» &7zniszczona." and "" and "&8» &eZalety przedmiotu:" and " &fStałe efekty:" and " &8- &fSzybkość II" and " &8- &fOdporność na ogień I" and " &8- &fSiła II" and " &8- &fOdporność III" and " &8- &fSzczęście I" and ""
set slot 15 of {_gui} to beetroot soup named "&c&lKrew wampira" with lore "" and "&8» &7Jest to przedmiot z:" and "&8» &feventu halloween (2023)" and "" and "&8» &7Po kliknięciu uleczy Cię" and "&8» &7do &cpełnego HP&7!" and ""
set slot 16 of {_gui} to netherite hoe named "&8&lKosa" with lore "" and "&8» &7Jest to przedmiot z:" and "&8» &feventu halloween (2023)" and "" and "&8» &7Twoje uderzenie może &fco minute" and "&8» &7mu efekty utrudniające widoczność" and ""
set slot 17 of {_gui} to splash potion named "&3&lSzczęśliwa mikstura" with lore "" and "&8» &7Jest to przedmiot zdobyty z:" and "&8» &fwydarzenia szkolnego 2024&7!" and "" and "&8» &7Po wypiciu otrzymujesz &bx2" and "&8» &bwiększą szanse &7na drop" and "&8» &7stypendiów na okres &f5 minut&7!!" and ""
set slot 18 of {_gui} to carrot named "&6Marchewkowy miecz" with lore "" and "&8» &7Dzięki niemu możesz &bzaprozić &7przeciwnika" and "&8» &7po &cuderzeniu &7na &asekundę!" and ""
on inventory click:
if name of event-inventory is "&8Custom Itemy z &f&lANARCHIA.&e&lGG":
cancel event
if clicked slot is 0:
if player has permission "customcode.anarchiaitems":
execute player command "/roza_kupidyna"
send "&8» &7Otrzymałeś item &c&lRoża kupidyna" to player
else:
send "&cNie masz permisje do custom itemy!" to player
if clicked slot is 1:
if player has permission "customcode.anarchiaitems":
execute player command "/lizak"
send "&8» &7Otrzymałeś item &d&lLizak" to player
else:
send "&cNie masz permisje do custom itemy!" to player
if clicked slot is 2:
if player has permission "customcode.anarchiaitems":
execute player command "/kupaanarchii"
send "&8» &7Otrzymałeś item &8&lKupa Anarchii" to player
else:
send "&cNie masz permisje do custom itemy!" to player
if clicked slot is 3:
if player has permission "customcode.anarchiaitems":
execute player command "/sniezka"
send "&8» &7Otrzymałeś item &f&lŚnieżkę" to player
else:
send "&cNie masz permisje do custom itemy!" to player
if clicked slot is 4:
if player has permission "customcode.anarchiaitems":
execute player command "/smoczymiecz"
send "&8» &7Otrzymałeś item &d&lSmoczy miecz" to player
else:
send "&cNie masz permisje do custom itemy!" to player
if clicked slot is 6:
if player has permission "customcode.anarchiaitems":
execute player command "/olowek"
send "&8» &7Otrzymałeś item &a&lZatruty olowek" to player
else:
send "&cNie masz permisje do custom itemy!" to player
if clicked slot is 7:
if player has permission "customcode.anarchiaitems":
execute player command "/kanapka"
send "&8» &7Otrzymałeś item &2&lSpleśniała kanapka" to player
else:
send "&cNie masz permisje do custom itemy!" to player
if clicked slot is 8:
if player has permission "customcode.anarchiaitems":
execute player command "/nielota"
send "&8» &7Otrzymałeś item &5&lWędka nielota" to player
else:
send "&cNie masz permisje do custom itemy!" to player
if clicked slot is 9:
if player has permission "customcode.anarchiaitems":
execute player command "/wendkasurfera"
send "&8» &7Otrzymałeś item &b&lWędke surfera" to player
else:
send "&cNie masz permisje do custom itemy!" to player
if clicked slot is 10:
if player has permission "customcode.anarchiaitems":
execute player command "/zajeczymiecz"
send "&8» &7Już nie długo będzie &3&lZajęczy miecz&7!" to player
else:
send "&cNie masz permisje do custom itemy" to player
if clicked slot is 11:
if player has permission "customcode.anarchiaitems":
execute player command "/jabko"
send "&8» &7Otrzymałeś item &c&lWampirze jabłko&7!" to player
else:
send "&cNie masz permisje do custom itemy" to player
if clicked slot is 12:
if player has permission "customcode.anarchiaitems":
execute player command "/lewejajko"
send "&8» &7Otrzymałeś item &eLewe jajko&7!" to player
else:
send "&cNie masz permisje do custom itemy" to player
if clicked slot is 13:
if player has permission "customcode.anarchiaitems":
execute player command "/rozga"
send "&8» &7Otrzymałeś item &6Rózge&7!" to player
else:
send "&cNie masz permisje do custom itemy" to player
if clicked slot is 14:
if player has permission "customcode.anarchiaitems":
execute player command "/koronaanarchii"
send "&8» &7Otrzymałeś item &6Korone ANARCHII&7!" to player
else:
send "&cNie masz permisje do custom itemy" to player
if clicked slot is 15:
if player has permission "customcode.anarchiaitems":
execute player command "/krewwampira"
send "&8» &7Otrzymałeś item &c&lKrew Wampira&7!" to player
else:
send "&cNie masz permisje do custom itemy" to player
if clicked slot is 16:
if player has permission "customcode.anarchiaitems":
execute player command "/kosa"
send "&8» &7Otrzymałeś item &8&lKosa&7!" to player
else:
send "&cNie masz permisje do custom itemy" to player
if clicked slot is 17:
if player has permission "customcode.anarchiaitems":
execute player command "/miksture"
send "&8» &7Otrzymałeś item &3&lSzczęśliwa mikstura&7!" to player
else:
send "&cNie masz permisje do custom itemy" to player
command /olowek:
permission: CustomCode.items.olowek
permission message: &cNie posiadasz permisji!
trigger:
set {_axe} to lime candle
set display name of {_axe} to "&a&lZatruty ołówek"
set lore of {_axe} to "&8» &7Jest to przedmiot zdobyty z:"
add "&8» &fwydarzenia szkolnego 2024&7!" to lore of {_axe}
add "&8" to lore of {_axe}
add "&8» &7Po uderzeniu przeciwnika" to lore of {_axe}
add "&8» &7otrzymuje on &ctrujący efekt&7!" to lore of {_axe}
give {_axe} to player
send "&aOtrzymałeś &aZatruty ołówek!"
on damage of player by player:
attacker is holding lime candle named "&a&lZatruty ołówek"
set {_cooldown} to difference between {cooldown::lime candle::%attacker%} and now
if {_cooldown} is less than 60 seconds:
send "&cMusisz poczekać jeszcze %difference between 60 seconds and {_cooldown}% sekund, zanim ponownie użyjesz ołówka!" to attacker
stop
set {cooldown::lime candle::%attacker%} to now
apply poison 1 to victim for 30 seconds
apply weakness 1 to victim for 30 seconds
send "&aUderzyłeś przeciwnika zatrutym ołówkiem!" to attacker
command /resetolowek:
permission: CustomCode.items.olowek.cooldown
permission message: &cNie posiadasz permisji!
trigger:
delete {cooldown::lime candle::%player%}
send "&aWszystkie cooldowny zostały zresetowane!" to player
variables:
{cooldown::poisonous potato::%player%} = 0
command /kanapka:
permission: CustomCode.items.kanapka
permission message: &cNie posiadasz permisji!
trigger:
set {_axe} to poisonous potato
set display name of {_axe} to "&2&lSpleśniała kanapka"
set lore of {_axe} to "&8» &7Jest to przedmiot zdobyty z:"
add "&8» &fwydarzenia szkolnego 2024&7!" to lore of {_axe}
add "&8" to lore of {_axe}
add "&8» &7Po uderzeniu przeciwnika" to lore of {_axe}
add "&8» &7zarazisz go &achorobą&7!" to lore of {_axe}
give {_axe} to player
send "&aOtrzymałeś &2Spleśniałą kanapke"
on damage of player by player:
attacker is holding poisonous potato named "&2&lSpleśniała kanpka"
set {_cooldown} to difference between {cooldown::poisonous potato::%attacker%} and now
if {_cooldown} is less than 60 seconds:
send "&cMusisz poczekać jeszcze %difference between 60 seconds and {_cooldown}% sekund, zanim ponownie użyjesz kanapki!" to attacker
stop
set {cooldown::poisonous potato::%attacker%} to now
apply glowing 1 to victim for 30 seconds
send "&aUderzyłeś przeciwnika spleśniałą kanapką!" to attacker
command /resetkanapka:
permission: CustomCode.items.kanapka.cooldown
permission message: &cNie posiadasz permisji!
trigger:
delete {cooldown::poisonous potato::%player%}
send "&aWszystkie cooldowny zostały zresetowane!" to player
variables:
{cooldown::splash potion::%player%} = 0
command /miksture:
permission: CustomCode.items.mikstura
permission message: &cNie posiadasz permisji!
trigger:
set {_axe} to splash potion
set display name of {_axe} to "&3&lSzczęśliwa mikstura"
set lore of {_axe} to "&8» &7Jest to przedmiot zdobyty z:"
add "&8» &fwydarzenia szkolnego 2024&7!" to lore of {_axe}
add "&8" to lore of {_axe}
add "&8» &7Po wypiciu otrzymujesz &bx2" to lore of {_axe}
add "&8» &bwiększą szanse &7na drop" to lore of {_axe}
add "&8» &7stypendiów na okres &f5 minut&7!!" to lore of {_axe}
give {_axe} to player
send "&aOtrzymałeś &3miksture"
on damage of player by player:
attacker is holding splash potion named "&3&lSzczęśliwa mikstura"
set {_cooldown} to difference between {cooldown::splash potion::%attacker%} and now
if {_cooldown} is less than 5 seconds:
send "&cMusisz poczekać jeszcze %difference between 60 seconds and {_cooldown}% sekund, zanim ponownie użyjesz mikstury!" to attacker
stop
set {cooldown::splash potion::%attacker%} to now
apply glowing 1 to victim for 1 seconds
send "&8" to attacker
command /resetmikstura:
permission: CustomCode.items.mikstura.cooldown
permission message: &cNie posiadasz permisji!
trigger:
delete {cooldown::poppy::%player%}
send "&aWszystkie cooldowny zostały zresetowane!" to player
variables:
{cooldown::splash potion::%player%} = 0
command /kosa:
permission: CustomCode.items.kosa
permission message: &cNie posiadasz permisji!
trigger:
set {_axe} to netherite hoe
set display name of {_axe} to "&8&lKosa"
set lore of {_axe} to "&8» &7Jest to przedmiot z:"
add "&8» &feventu halloween (2023)" to lore of {_axe}
add "&8" to lore of {_axe}
add "&8» &7Twoje uderzenie może &fco minute" to lore of {_axe}
add "&8» &7przestraszyć przeciwnika nadając" to lore of {_axe}
add "&8» &7mu efekty utrudniające widoczność" to lore of {_axe}
give {_axe} to player
send "&fOtrzymałeś custom item &8&lKose&f!"
on damage of player by player:
attacker is holding netherite hoe named "&8&lKosa"
set {_cooldown} to difference between {cooldown::lime candle::%attacker%} and now
if {_cooldown} is less than 60 seconds:
send "&fKosa &8(a4a4a%difference between 60 seconds and {_cooldown}%&8)" to attacker
stop
set {cooldown::netherite hoe::%attacker%} to now
apply blindness 1 to victim for 30 seconds
apply slow 1 to victim for 30 seconds
send "&fKosa &8(&#ff7247{COOLDOWN-VAMPIRE_BLOOD}&8)" to attacker
on rightclick on player:
set {_victim} to event-entity
if {_victim} is a player:
if name of event-item is "&8&lKosa":
set {_attacker} to player
if {_attacker} is not {_victim}:
set {_attackerPos} to location of {_attacker}
set {_victimPos} to location of {_victim}
send title "&f&lŚnieżka" with subtitle "&fZmieniłeś się z &b%{_attacker}%" to {_victim}
send title "&f&lŚnieżka" with subtitle "&fZmieniłeś się z &b%{_victim}%" to {_attacker}
command /sniezka:
permission: customcode.anarchiaitems
permission message: &cNie posiadasz permisji do tej komendy!
trigger:
give 1 snowball named "&fŚnieżka" with lore "&7" and "&8» &7Jest to przedmiot z:" and "&8» &feventu świątecznego (2023)" and "&7" and "&8» &7Po trafieniu &ezamieniasz się" and "&8» &7z przeciwnikiem miejscem!" and "&7" to player
send "&7Otrzymałeś custom item &f&lŚnieżkę&7! to player
on rightclick on player:
set {_victim} to event-entity
if {_victim} is a player:
if name of event-item is "&fŚnieżka":
set {_attacker} to player
if {_attacker} is not {_victim}:
set {_attackerPos} to location of {_attacker}
set {_victimPos} to location of {_victim}
teleport {_attacker} to {_victimPos}
teleport {_victim} to {_attackerPos}
send title "&f&lŚnieżka" with subtitle "&fZmieniłeś się z &b%{_attacker}%" to {_victim}
send title "&f&lŚnieżka" with subtitle "&fZmieniłeś się z &b%{_victim}%" to {_attacker}
remove 1 of event-item from {_attacker}'s inventory
else:
send "&cNie możesz zamienić miejsc z samym sobą!" to {_attacker}
else:
send "&cMusisz kliknąć na gracza!" to player
on rightclick with snowball:
remove 1 snowball from player's inventory
command /lizak:
permission: customcode.anarchiaitems
permission message: &cNie posiadasz permisji do tej komendy!
trigger:
give 1 allium named "&d&lLizak" with lore "&8» &7Przedmiot zdobyty w &fdzień dziecka&7!" and "&8» &7Trzymaj go w ręce aby otrzymywać:" and "&0-&8- &fEfekt SIŁY 1" to player
send "&7Otrzymałeś custom item &f&lŚnieżkę&7! to player
command /roza_kupidyna:
permission: customcode.anarchiaitems
permission message: &cNie posiadasz permisji do tej komendy!
trigger:
give 1 poppy named "&c&lRóża kupidyna" with lore "&8» &7Przedmiot zdobyty w &fwalentynki w 2024 roku!" and "&8» &7Trzymaj go w ręce aby otrzymywać:" and "&0-&8- &fEfekt odporności 1" and "&0-&8- &fEfekt regeneracji 1" to player
send "&7Otrzymałeś custom item &f&lŚnieżkę&7! to player
command /bomba:
permission: customcode.anarchiaitems
permission message: &cNie posiadasz permisji do tej komendy!
trigger:
give 1 fire charge named "&5&lBombarda maxima" with lore "&8» &7Jest to przedmiot zdobyty z" and "&8» &fkarnetu wakacyjnego 2024&7!" and "&7" and "&8» &7Po wystrzeleniu wybucha w okolicy" and "&8» &7i niszczy każdy możliwy blok oprócz" and "&8» &fskały macierzystej&7!" and "&7" to player
send "&7Otrzymałeś custom item &f&lŚnieżkę&7! to player
command /kupaAnarchii:
permission: customcode.anarchiaitems
permission message: &cNie posiadasz permisji do tej komendy!
trigger:
give 1 brown dye named "&8&lKupa ANARCHII" with lore "&7" and "&7Nic nie daje ale stworzył ją" and "&7pan &fdexsi66" and "&7" and "&cTen przedmiot nie nadaje &4SIŁKI II" and "&6Ostateczna &6&l&nOFERTA&6!!!" to player
send "&7Otrzymałeś custom item &f&lŚnieżkę&7! to player
options:
smoczyMieczType: netherite sword
smoczyMieczName: &d&lSmoczy Miecz
smoczyMieczCooldown: 60 seconds
command /smoczymiecz:
executable by: players
permission: server.command.smoczymiecz
permission message: &6Nie posiadasz wystarczających uprawnień do wykonania tej komendy.
trigger:
give 1 netherite sword of sharpness 6, looting 3, fire aspect 2, mending 1, unbreaking 3, named "&d&lSmoczy miecz" with lore "&7" and "&8» &7Posiada on możliwość strzelania" and "&8» &dperłami kresu" and "&7" to player
on right click:
if type of player's tool is {@smoczyMieczType}:
if name of player's tool is "{@smoczyMieczName}":
if {smoczyMiecz::cooldown::%uuid of player%} is set:
if difference between {smoczyMiecz::cooldown::%uuid of player%} and now is smaller than {@smoczyMieczCooldown}:
apply nbt {_nbt} to player's tool
send "&cOdczekaj chwilę." to player
stop
set {smoczyMiecz::cooldown::%uuid of player%} to now
shoot ender pearl from player
command /bombarder:
trigger:
give player fire charge named "&5&lBombarda maxima" with lore "&8» &7Jest to przedmiot zdobyty z" and "&8» &fkarnetu wakacyjnego 2024&7!" and "&7" and "&8» &7Po wystrzeleniu wybucha w okolicy" and "&8» &7i niszczy każdy możliwy blok oprócz" and "&8» &fskały macierzystej&7!" to player
on right click with fire charge:
if name of player's tool is "&5&lBombarda maxima":
set {_loc} to location of clicked block
create explosion of force 4 at {_loc}
remove 1 fire charge named "&5&lBombarda maxima" from player's inventory
command /parawan:
trigger:
give player feather named "&e&lParawan" with lore "&7Blokuje ataki przez 5 sekund" and custom model data 1
on right click with shield:
if name of player's tool is "&e&lParawan":
apply resistance 5 to player for 5 seconds
apply absorption 5 to player for 5 seconds
send "&aParawan aktywowany!" to player
wait 5 seconds
send "&cParawan wygasł!" to player
on place of allium:
cancel event
send "&cNie możesz stawiać Lizaka!" to player
on place of poppy:
cancel event
send "&cNie możesz stawiać Róże!" to player
on place of sticky piston:
cancel event
send "&cNie możesz kopiować itemków!" to player
on place of redstone:
cancel event
send "&cNie możesz lagować serwer!" to player
on place of bedrock:
cancel event
send "&cNie możesz zrobić nie legal trap!" to player
on place of lime candle:
cancel event
send "&cNie możesz lstawić zatrutego ołówka!" to player
on place of piston:
cancel event
send "&cNie możesz lagować lub kopiować itemy!" to player
on place of dispenser:
cancle event
send "&cNie możesz lagować lub kopiować itemy!" to player
command /koronaANARCHII:
permission: customcode.anarchiaitems
permission message: &cNie posiadasz permisji do tej komendy!
trigger:
give 1 golden helmet of aqua affinity 1, mending 1, projectile protection 4, thorns 3, vanishing curse 1, unbreaking 255 named "&6Korona ANARCHII" with lore "" and "&8» &eTen przedmiot jest wyjątkowy!" and "&8» &7Na serwerze zanjduje się tylko jedna" and "&8» &7taka korona! Która nigdy nie zostanie" and "&8» &7zniszczona." and "" and "&8» &eZalety przedmiotu:" and " &fStałe efekty:" and " &8- &fSzybkość II" and " &8- &fOdporność na ogień I" and " &8- &fSiła II" and " &8- &fOdporność III" and " &8- &fSzczęście I" and "" to player
command /rozga:
permission: customcode.anarchiaitems
permission message: &cNie posiadasz permisji do tej komendy!
trigger:
give 1 stick of knockback 4 named "&6Rózga" with lore "" and "&8» &7Jest to przedmiot z:" and "&8» &feventu świątecznego (2023)" and "&7" and "&8» &cOdrzuca &7z potężną siłą" and "&8» &7niegrzecznych graczy!" and "" to player
on death of player:
if player is holding a totem of undying named "&cŚmierci":
set {saved_inventory::%player%} to all items in player's inventory
cancel drops
send "&cTotem Śmierci aktywowany! Nie tracisz swojego ekwipunku po śmierci." to player
remove 1 of totem of undying named "&cŚmierci" from player
on respawn of player:
if {saved_inventory::%player%} is set:
clear player's inventory
give {saved_inventory::%player%} to player
delete {saved_inventory::%player%}
send "&aTwoje przedmioty zostały przywrócone po śmierci!" to player
on anvil combine:
if item 1 is a book named "&2Otrucie" and item 2 is a sword:
cancel event
set {_newSword} to item 2
add 1 of unbreaking 1 to {_newSword}
add "Poison I" to {_newSword}'s lore
give {_newSword} to player
send "&aPołączyłeś miecz z książką 'Otrucie'! Miecz zyskał efekt zatrucia." to player
else if item 2 is a book named "&2Otrucie" and item 1 is a sword:
cancel event
set {_newSword} to item 1
add 1 of unbreaking 1 to {_newSword}
add "Poison I" to {_newSword}'s lore
give {_newSword} to player
send "&aPołączyłeś miecz z książką 'Otrucie'! Miecz zyskał efekt zatrucia." to player
variables:
{cooldown::%player%} = 0
on shoot:
if shooter is a player:
if shooter's tool is a crossbow named "&6Marchewkowa Kusza":
if {cooldown::%shooter%} > now:
send "&cMusisz poczekać zanim ponownie użyjesz Marchewkowej Kuszy!" to shooter
cancel event
else:
set {cooldown::%shooter%} to now + 60 seconds
send "&aWystrzeliłeś z Marchewkowej Kuszy! Trafienie przyciągnie przeciwnika do ciebie." to shooter
on projectile hit:
if projectile is an arrow:
if shooter of projectile is a player:
if shooter of projectile's tool is a crossbow named "&6Marchewkowa Kusza":
if victim is a player:
teleport victim to shooter of projectile
send "&aZostałeś przyciągnięty przez
command /zajenczy:
permission: permission: customcode.anarchiaitems
permission message: &cNie posiadasz permisji!
trigger:
set {_axe} to netherite sword
set display name of {_axe} to "&3&lZajęczy miecz"
set lore of {_axe} to "&8"
add "&8» &7Jest to przedmiot z &fwydarzenia" to lore of {_axe}
add "&8» &fwielkanocnego &7z &f2024 roku" to lore of {_axe}
add "&8" to lore of {_axe}
add "&8» &7Po uderzeniu przeciwnika blokuje" to lore of {_axe}
add "&8» &7możliwość skakania na &f4 sekundy&7!" to lore of {_axe}
add "" to lore of {_axe}
give {_axe} to player
send "&fOtrzymałeś custom item &8&lKose&f!"
on damage of player by player:
attacker is holding netherite sword named "&3&lZajęczy miecz"
set {_cooldown} to difference between {cooldown::netherite sword::%attacker%} and now
if {_cooldown} is less than 60 seconds:
send "&fKosa" to attacker
stop
set {cooldown::netherite sword::%attacker%} to now
apply jump boost 255 to victim for 5 seconds
send "" to attacker
on projectile launch:
if projectile is an egg:
if shooter is a player:
if shooter's tool is an egg named "&eLewe jajko":
remove 1 egg named "&eLewe jajko" from shooter
on projectile hit:
if projectile is an egg:
if shooter is a player:
if shooter's tool is an egg named "&eLewe jajko":
if victim is a player:
send title "&e&lLewe jajo" with subtitle "&fWystrzeliłeś gracza &6%_victim%" to shooter
send title "&e&lLewe jajo" with subtitle "&fGracz &6%_shooter% &fwystrzelił cię w powietrze!" to victim
apply levitation 50 to victim for 1 second
remove 1 egg named "&eLewe jajko" from shooter's inventory
command /lewejajko:
permission: customcode.anarchiaitems
permission message: &cNie posiadasz permisji do tej komendy!
trigger:
give 1 egg named "&eLewe jajko" with lore "" and "&8» &7Jest to przedmiot z &fwydarzenia" and "&8» &fwielkanocnego &7z &f2024 roku" and "&7" and "&8» &7Dzięki niemu możesz wyrzucić przeciwnika" and "&8» &7w powietrze!" and "" to player
variables:
{sakiewkaDropu::%uuid of victim%::*} = none
on death of player:
attacker is a player
set {_sakiewka} to paper named "&6Sakiewka Dropu" with lore "&7Kliknij, aby otworzyć"
drop {_sakiewka} at location of victim
loop victim's inventory:
if loop-item is not air:
add loop-item to {sakiewkaDropu::%uuid of victim%::*}
clear loop-item from victim's inventory
on right click with paper:
if player's tool is paper named "&6Sakiewka Dropu":
open virtual chest with size 3 named "&6Sakiewka Dropu" to player
wait 2 ticks
set {slot} to 0
loop {sakiewkaDropu::%uuid of player%::*}:
set slot {slot} of player's current inventory to loop-item
add 1 to {slot}
set slot 26 of player's current inventory to green dye named "&aWyrzuć wszystkie przedmioty"
on inventory click:
if inventory name of current inventory of player is "&6Sakiewka Dropu":
if clicked item is green dye named "&aWyrzuć wszystkie przedmioty":
cancel event
loop {sakiewkaDropu::%uuid of player%::*}:
drop loop-item at location of player
delete {sakiewkaDropu::%uuid of player%::*}
close player's inventory
send "&aWyrzuciłeś wszystkie przedmioty z Sakiewki Dropu!" to player
command /jabko:
permission: CustomCode.anarchiaitems
trigger:
give player enchanted golden apple named "&c&lWampirze jabłko" with lore "&8» &7Jest to przedmiot z:" and "&8» &feventu halloween (2024)" and "" and "&8» &7Po zjedzeniu otrzymujesz na" and "&8» &7Krótki czas &csiły II&7!"
on right click with enchanted golden apple:
if name of player's tool is "&c&lWampirze jabłko":
if {jabkocooldown::%player%} is not set:
apply strength 2 to player for 30 seconds
send title "&c&lWampirze jabłko" with subtitle "&fZjadłeś jabko &ajesteś silny!" to player for 4 seconds
set {jabkocooldown::%player%} to 30
remove 1 enchanted golden apple from player
wait 60 seconds
delete {jabkocooldown::%player%}
send title "&c&lWampirze jabłko" with subtitle "&fMożesz ponownie &azjeść jabko!" to player for 4 seconds
else:
send "&cWampirze jabłko jest jeszcze w trakcie cooldownu! Pozostało: %{jabkocooldown::%player%}% sekund." to playe
command /krewwampira:
permission: CustomCode.anarchiaitems
trigger:
give player beetroot soup named "&c&lKrew wampira" with lore "" and "&8» &7Jest to przedmiot z:" and "&8» &feventu halloween (2023)" and "" and "&8» &7Po kliknięciu uleczy Cię" and "&8» &7do &cpełnego HP&7!" and ""
on right click with beetroot soup:
if name of player's tool is "&c&lKrew wampira":
if {krewcooldown::%player%} is not set:
apply instant health 100 to player for 1 seconds
send title "&c&lKrew wampira" with subtitle "&fZostałeś &auleczony!" to player for 1 seconds
set {krewcooldown::%player%} to 1
remove 1 beetroot soup from player
wait 1 seconds
delete {krewcooldown::%player%}
send "" to player
else:
send "" to playe
on fishing state:
if fishing state is "hook":
if fisher's tool is a fishing rod named "&5&lWędka Nielota":
if hooked entity is a player:
set {nielot.%hooked entity%} to true
send "&cNie możesz latać z elytrą!" to hooked entity
send "&aZłapałeś &e%hooked entity% &aWędką Nielota!" to fisher
on toggle flight:
if {nielot.%player%} is true:
if player is gliding:
cancel event
send "&cNie możesz używać elytry, gdy jesteś pod wpływem Wędki Nielota!" to player
on fishing state:
if fishing state is "reel in":
if fisher's tool is a fishing rod named "&5&lWędka Nielota":
if hooked entity is a player:
delete {nielot.%hooked entity%}
send "&aMożesz teraz ponownie latać z elytrą!" to hooked entity
send "&e%hooked entity% &awyślizgnął się z Wędki Nielota!" to fisher
on fishing state change:
if fishing state is "fishing":
set {_player} to player
set {_hookLoc} to location of hook
wait 1 tick
while {_player}'s tool is a fishing rod:
set {_direction} to direction from {_player} to {_hookLoc}
push {_player} forward at speed 1.5 towards {_hookLoc}
if {_player} is not fishing:
stop
wait 1 tick
command /wendkasurfera:
permission: CustomCode.anarchiaitems
trigger:
give player fishing rod named "&b&lWędka surferka" with lore "" and "&8» &7Jest to przedmiot z:" and "&8» &feventu wakacyjnego (2023)" and "" and "&8» &7Ta &aniezwykła &7wędkazapewnia ci" and "&8» &7zdumiewającą zdolność przyciągania się" and "&8» &7do &bbloków &7i &dgraczy&7, tworząc zupełnie" and "&8» &7nowe możliwości eksploracji i walki!" and ""
on shoot:
if shooter is a player:
if shooter's tool is a bow named "&d&lŁuk Kupidyna":
set {_strzala} to last spawned arrow
set {_strzala} metadata value "kupidyn" to true
on damage of player:
attacker is a projectile
if attacker is an arrow:
if metadata value "kupidyn" of attacker is true:
apply levitation 1 to victim for 5 seconds
send "&d&lZostałeś trafiony przez Łuk Kupidyna i unoszony przez 5 sekund!" to victim
delete metadata value "kupidyn" of attacker
command /luk:
permission: CustomCode.anarchiaitems
trigger:
give player bow named "&d&lŁuk Kupidyna" with lore "" and "&8» &7Jest to przedmiot z:" and "&8» &feventu wakacyjnego (2023)" and "" and "&8» &7Ta &aniezwykła &7wędkazapewnia ci" and "&8» &7zdumiewającą zdolność przyciągania się" and "&8» &7do &bbloków &7i &dgraczy&7, tworząc zupełnie" and "&8» &7nowe możliwości eksploracji i walki!" and ""
on damage of player:
attacker is a player
if attacker's tool is a gold sword named "&bMiecz Zamrażający":
apply slowness 10 to victim for 1 second
apply jump boost -10 to victim for 1 second
send "&bZostałeś zamrożony na 1 sekundę!" to victim
send "&aZamroziłeś &e%victim% &ana 1 sekundę!" to attacker
every 1 second:
loop all players:
if loop-player's off hand item is a allium named "&d&lLizak":
apply strength 1 to loop-player for 1 seconds
every 1 second:
loop all players:
if loop-player's off hand item is a brown dye named "&8&lKupa ANARCHII":
apply strength 2 to loop-player for 1 seconds
every 1 second:
loop all players:
if loop-player's off hand item is a poppy named "&c&lRóża kupidyna":
apply regeneration 1 to loop-player for 1 seconds
every 1 second:
loop all players:
if loop-player's off hand item is a poppy named "&c&lRóża kupidyna":
apply resistance 1 to loop-player for 1 seconds
command /helm:
trigger:
give player a golden helmet named "&bHełm Ochrony" with lore "&7Ochrona III, Niezniszczalność IV" to player with protection 3 and unbreaking 4
send "&aOtrzymałeś Hełm z Ochroną III i Niezniszczalnością IV!"
on rightclick with fishing rod:
if name of player's tool is "&bWędka Surfera":
if {surfer::cooldown::%player%} is not set:
set {_loc} to location of player
set {_target} to location 10 meters in front of player
set {_vector} to vector from {_loc} to {_target}
push player in direction of {_vector}
set {surfer::cooldown::%player%} to true
wait 5 seconds
delete {surfer::cooldown::%player%}
on rightclick with fishing rod:
if name of player's tool is "&bWędka Nielota":
if {flyrod::cooldown::%player%} is not set:
set {_loc} to location of player
set {_target} to location 20 meters in direction player is looking
set {_vector} to vector from {_loc} to {_target}
push player in direction of {_vector}
set {flyrod::cooldown::%player%} to true
wait 10 seconds
delete {flyrod::cooldown::%player%}
on rightclick with diamond axe:
if name of player's tool is "&aSiekiera Grincha":
if {grinchaxe::cooldown::%player%} is not set:
apply potion of strength 2 to player for 10 seconds
apply potion of speed 2 to player for 10 seconds
send "&aUżyłeś mocy Grincha!" to player
set {grinchaxe::cooldown::%player%} to true
wait 30 seconds
delete {grinchaxe::cooldown::%player%}
on armor change:
if player's helmet is gold helmet named "&6Korona ANARCHII":
apply strength 2 to player
apply speed 1 to player
apply resistance 2 to player
else if old armor slot is helmet and old helmet is gold helmet named "&6Korona ANARCHII":
remove strength 2 from player
remove speed 1 from player
remove resistance 2 from player
on join:
if player's helmet is gold helmet named "&6Korona ANARCHII":
apply strength 2 to player
apply speed 1 to player
apply resistance 2 to player
on damage:
if name of tool is "Króliczy" and tool is netherite sword:
apply jump boost 100 to victim for 10 seconds
on armor change:
if player's helmet is gold helmet named "&6Korona ANARCHII":
apply strength 2 to player for 1 hour
apply speed 1 to player for 1 hour
apply resistance 2 to player for 1 hour
send "Otrzymałeś efekty siły, szybkości i odporności!" to player
on unequip of helmet:
if name of helmet is "&6Korona ANARCHII":
remove strength from player
remove speed from player
remove resistance from player
send "Usunięto efekty siły, szybkości i odporności." to player
every 1 second:
loop all players:
if player has golden helmet named "&6Korona ANARCHII":
# Nic nie rób, efekty są już przydzielone
else:
remove strength from player
remove speed from player
remove resistance from player
command /customitem help:
trigger:
execute player command "/customitems"