Skocz do zawartości
  • 0

totem ułaskawienia


Piterowsky

Pytanie

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

 

#wiem ze pewnie juz nie robisz serwera ale masz

options:
    blockedregion: spawn # jaki region ma mieć zablokowane działanie custom itemów


command /anarchiacustomitems [<text>]:
    aliases: anarchiacustomitems:anarchiacustomitems
    permission: anarchiaitems.itemy
    permission message: &cBrak uprawnień
    trigger:
        if arg 1 is not set:
            send "&8» &7Poprawne użycie: &f/anarchiacustomitems <gui/pomoc>"

        if arg 1 is "gui":
            set {_gui} to chest inventory with 6 rows named "&8Custom itemy"

            set slot 0 of {_gui} to bow of power 6 and flame 1 and unbreaking 3 and infinity 1 named "&4Łuk kupidyna" with lore "" and "&5&lSpecialny przedmiot!" and "&7Masz szanse, że trafiony przez" and "&7ciebie gracz zostanie &doślepiony&7!" with custom model data 1
            
            set slot 1 of {_gui} to golden sword of unbreaking 10 named "&6Marchewkowy miecz" with lore " &8»&7 Dzięki niemu możesz &bzamrozić&7 przeciwnika" and " &8»&7 po &cuderzeniu&7 na &asekundę&7!" and "" and " &8»&7 Przedmiot z &e&nEVENTU WIELKANOCNEGO!" and " &8»&7 Zdobyty: &f09-04-2023, 08:30:08" with item flags hide enchants with custom model data 1
            
            set slot 2 of {_gui} to allium named "&d&lLizak" with lore " &8»&7 Przedmiot zdobyty w &fdzień dziecka&7!" and " &8»&7 trzymaj go w ręce aby otrzymać:" and "  &8-&f Efekt SIŁY 1" with custom model data 1
            
            set slot 3 of {_gui} to totem of undying named "&5&lTotem ułaskawienia" with lore " &8»&7 Jest to przedmiot z:" and " &8»&7 &feventu halloween (2023)" and "" and " &8»&7 Trzymając go po śmierci &dnie" and " &8»&7 &dstracisz&7 swoich przedmiotów!" with custom model data 1
            
            set slot 4 of {_gui} to beetroot soup named "&c&lKrew wampira" with lore " &8»&7 Jest to przedmiot z:" and " &8»&7 &feventu halloween (2023)" and "" and " &8»&7 Po kliknięciu uleczy cię" and " &8»&7 do &cpełnego HP&7!" with custom model data 1
            
            set slot 5 of {_gui} to netherite hoe named "&8&lKosa" with lore " &8»&7 Jest to przedmiot z:" and " &8»&7 &feventu halloween (2023)" and "" and " &8»&7 Twoje uderzenie może &fco minute" and " &8»&7 przestraszyć przeciwnika nadając" and " &8»&7 mu efekty utrudniające widoczność" with custom model data 1
            
            set slot 6 of {_gui} to golden axe of unbreaking 10 named "&2Siekiera Grincha" with lore " &8»&7 Jest to przedmiot z:" and " &8»&7 &feventu świątecznego (2023)" and "" and " &8»&7 Po &auderzeniu&7 strzela &fpiorun" and " &8»&7 w przeciwnika zabierając mu &c30%{prc}%" and " &8»&7 jego życia! " with item flags hide enchants with custom model data 1
            
            set slot 7 of {_gui} to snowball of unbreaking 10 named "&fŚnieżka" with lore " &8»&7 Jest to przedmiot z:" and " &8»&7 &fwydarzenia świątecznego (2023)" and "" and " &8»&7 Po trafieniu &ezamieniasz się" and " &8»&7 z przeciwnikiem miejscem!" with item flags hide enchants with custom model data 1
            
            set slot 8 of {_gui} to stick of knockback 4 named "&6Rózga" with lore " &8»&7 Jest to przedmiot z:" and " &8»&7 &feventu świątecznego (2023)" and "" and " &8»&7 &cOdrzuca&7 z potężną siłą" and " &8»&7 niegrzecznych graczy!" with item flags hide enchants

            set {korona} to golden helmet of aqua affinity 1, protection 4, respiration 3 and vanishing curse named "&6Korona ANARCHII" with lore " &8»&e Ten przedmiot jest wyjątkowy!" and " &8»&7 Na serwerze znajduje się tylko jedna" and " &8»&7 taka korona! Która nigdy nie zostaje" and " &8»&7 zniszczona." and "" and " &8»&e Zalety przedmiotu:" and "  &fStałe efekty:" and "   &8-&7 Szybkości II" and "   &8-&7 Odporności na ognień I" and "   &8-&7 Siła II" and "   &8-&7 Odporność III" and "   &8-&7 Szczęście I" with custom model data 1
            set {korona} to unbreakable {korona}
            set slot 9 of {_gui} to {korona} 

            set slot 10 of {_gui} to brown dye named "&8&lKupa ANARCHII" with lore "&7Nic nie daje ale stwórzył ja" and "&7pan &fdexsi66" and "" and "&cTen przedmiot nie nadaje &4SIŁKI II" and "&6Ostateczna &6&l&nOFERTA&6!!" with custom model data 1
        
            set slot 11 of {_gui} to netherite sword of sharpness 6 and fire aspect 2 named "&d&lSmoczy miecz" with lore "&7Posiada on możliwość strzelania" and "&dperłami kresu&7!" and "&cDodatkowe obrażenia: 0%{prc}%" with custom model data 1
            
            set slot 12 of {_gui} to poppy named "&c&lRóża kupidyna" with lore " &8»&7 Przedmiot zdobyty w &fwalentynki w 2024 roku&7!" and " &8»&7 Trzymaj go w ręce aby otrzymać:" and "  &8-&f Efekt odporności 1" and "  &8-&f Efekt regeneracji 1" with custom model data 1
            
            set slot 13 of {_gui} to netherite sword of sharpness 6 and fire aspect 2 named "&3&lKróliczy miecz" with lore "&cDodatkowe obrażenia: 0%{prc}%" and "" and " &8»&7 Jest to przedmiot z &fwydarzenia" and " &8»&7 &fwielkanocnego&7 z &f2024 roku" and "" and " &8»&7 Po uderzeniu przeciwnika blokuje" and " &8»&7 możliwość skakania na &f4 sekundy&7!" with custom model data 2
            
            set slot 14 of {_gui} to crossbow of unbreaking 10 named "&6&lMarchewkowa kusza" with lore " &8»&7 Jest to przedmiot z &fwielkanocnego" and " &8»&f wydarzenia &7z &e2024 roku&7!" and "" and " &8»&7 ta &aniezwykła&7 kusza zapewnia ci" and " &8»&7 zdumiewającą zdolność przyciągania" and " &8»&7 do siebie &egraczy&7, tworząc zupełnie" and " &8»&7 nowe możliwości eksploracji i walki!" with item flags hide enchants with custom model data 1
            
            set slot 15 of {_gui} to egg of unbreaking 10 named "&eLewe jajko" with lore " &8»&7 Jest to przedmiot z &fwydarzenia" and " &8»&7 &fwielkanocnego &7z&f 2024 roku" and "" and " &8»&7 Dzięki niemu możesz wyrzucić" and " &8»&7 przeciwnika w powietrze!" with item flags hide enchants with custom model data 1
            
            set slot 16 of {_gui} to rabbit foot named "&a&lSakiewka dropu" with lore " &8»&7 Posiadając ten przedmiot w" and " &8»&7 ekwipunku po &czabiciu&7 dowolnego" and " &8» &fgracza&7 jego przedmioty trafiają" and " &8»&7 do twojej &asakiewki&7!" and "" and " &8»&e Kliknij PRAWYM, aby otworzyć sakiewkę!" with custom model data 1
            
            set slot 17 of {_gui} to shield named "&6Piekielna tarcza" with lore " &8»&7 Posiada &f25%{prc}% szansy&7 na odbicie" and " &8» &cataku&7 wroga!"
            
            set slot 18 of {_gui} to fishing rod named "&5&lWędka nielota" with lore " &8»&7 Wędka nielota była do zdobycia" and " &8»&7 &7w &f2025 roku &7podczas &adnia dziecka" and "" and " &8»&7 Po złapaniu gracza na haczyk" and " &8»&7 nie może on odlecieć &delytrą!" with custom model data 2
            
            set slot 19 of {_gui} to feather named "&e&lParawan" with lore " &8»&7 Jest to przedmiot zdobyty z" and " &8»&7 &fwydarzenia wakacyjnego (2024)" and "" and " &8»&7 Po użyciu tego przedmiotu odrzuca" and " &8»&7 wszystkich przeciwników w okolicy!" with custom model data 1
            
            set slot 20 of {_gui} to blaze rod named "&a&lRozgotowana kukurydza" with lore " &8»&7 Jest to przedmiot zdobyty z" and " &8»&7 &fwydarzenia wakacyjnego (2024)" and "" and " &8»&7 Wystrzeliwywuje magiczny pocisk," and " &8»&7 który niszczy zbroje oraz zadaje" and " &8»&7 obrażenia w miejscu wybuchu." with custom model data 1
            
            set slot 21 of {_gui} to netherite sword of sharpness 6 and fire aspect 2 named "&e&lExcalibur" with lore "&cDodatkowe obrażenia 0%{prc}%" and "" and " &8»&7 Jest to przedmiot zdobyty z" and " &8»&7 &fwydarzenia wakacyjnego (2024)" and "" and " &8» &7Aktualnie zabójstw: &f0" and " &8»&r  &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &f&m &r &e0%{prc}%" and "" and " &8»&7 Zapełnienie paska zapewnia" and " &8»&7 ci &f12 punktów obrażeń&7, co" and " &8»&7 jest równoznaczne z &eostrością 7&7!" and "" and " &8»&7 Obrażenia od ataku: &f11.5" with custom model data 5
            
            set slot 22 of {_gui} to lime candle named "&a&lZatruty ołówek" with lore " &8»&7 Jest to przedmiot zdobyty z" and " &8»&7 &fwydarzenia szkolnego (2024)" and "" and " &8»&7 Po uderzeniu przeciwnika" and " &8»&7 otrzymuje on &ctrujący efekt&7!" with custom model data 1
            
            set slot 23 of {_gui} to poisonous potato named "&2&lSpleśniała kanapka" with lore " &8»&7 Jest to przedmiot zdobyty z" and " &8»&7 &fwydarzenia szkolnego (2024)" and "" and " &8»&7 Po uderzeniu przeciwnika" and " &8»&7 zarazisz go &achorobą&7!" with custom model data 1
            
            set slot 24 of {_gui} to enchanted golden apple named "&c&lWampirze jabłko" with lore " &8»&7 Jest to przedmiot z:" and " &8»&7 &feventu halloween (2024)" and "" and " &8»&7 Po zjedzeniu otrzymujesz" and " &8»&7 na krótki czas efekt &csiły II&7!" with custom model data 2
            
            set slot 25 of {_gui} to bow named "&a&lArcus Magnus" with lore " &8»&7 Jest to przedmiot z:" and " &8»&7 &feventu halloween (2024)" and "" and " &8»&7 Łuk, który pozwala na" and " &8»&7 &eniszczycielskie&7 combo!" and " &8»&7 Po trafieniu przeciwnika" and " &8»&7 zadajesz mu &cogromne obrażenia&7, które" and " &8»&7 zwiększają się z każdym trafieniem!" with custom model data 2
            
            set slot 26 of {_gui} to cookie of unbreaking 10 named "&6&lPiernik" with lore " &8»&7 Jest to przedmiot z:" and " &8»&f eventu świątecznego (2024)" and "" and " &8»&7 Po zjedzeniu &epiernika &7otrzymujesz" and " &8»&7 efekt &aszybkości kopania 10&7!" with item flags hide enchants with custom model data 1
            
            set slot 27 of {_gui} to bowl of unbreaking 10 named "&9&lCiepłe mleczko" with lore " &8»&7 Jest to przedmiot z:" and " &8»&f eventu świątecznego (2024)" and "" and " &8»&7 Po wypiciu usuwa wszystkie" and " &8»&c negatywne efekty&7! Również posiada" and " &8»&7 mechanike stakowania" with item flags hide enchants with custom model data 1
            
            set slot 28 of {_gui} to diamond shovel of unbreaking 10 named "&a&lŁopata Grincha" with lore " &8»&7 Jest to przedmiot z:" and " &8»&f eventu świątecznego (2024)" and "" and " &8»&7 Po &auderzeniu&7 przeciwnika" and " &8»&7 zostaje on &cogłuszony&7 przez co" and " &8»&7 rotacja zostaje wylosowana!" with item flags hide enchants with custom model data 1

            set slot 29 of {_gui} to red candle named "&4&lDynamit" with lore " &8»&7 Ten przedmiot umożliwi tobie zniszczenie" and " &8»&7 skały maciarzystej! Wystarczy kliknąć" and " &8»&7 tylko &cprawym &7przycisk!" with custom model data 1
            
            set slot 30 of {_gui} to iron axe of unbreaking 1 named "&b&lBoski topór" with lore " &8»&7 Jest to przedmiot z:" and " &8»&f specjalnego wydarzenia (2025)" and "" and " &8»&7 Po &fkliknięciu &7prawym przyciskiem" and " &8»&7 aktywujesz &epotężna fale uderzeniową" and " &8»&7 która zapewnia Tobie &cnieśmiertelność&7!" with item flags hide enchants with custom model data 1
            
            set slot 31 of {_gui} to purple dye of unbreaking 1 named "&5&lZłamane serce" with lore " &8»&7 Jest to przedmiot z:" and " &8»&f event walentynkowego (2025)" and "" and " &8»&7 Uderz nim przeciwnika, aby" and " &8»&7 złamać jego &dserduszko&7!" with item flags hide enchants with custom model data 3
            open {_gui} to player
            
        if arg 1 is "pomoc":
            send "&8********** &6&lPOMOC &8**********"
            send "&8» &7/anarchiacustomitems gui - &fwszystkie custom itemy"
            send "&8» &7/anarchiacustomitems pomoc - &fmenu pomocy"
            send "&8» &7/burza <nick> - &fstrzelanie piorunami w gracza"
            send "&8» &7/zlap <nick> - &fzłapanie gracza (na wędke komendą)"
            send "&8» &7/opusc <nick> - &fopuszczenie gracza (z wędki komendą)"
            send "&8********** &6&lPOMOC &8**********"

variables:
    {prc} = "%"
    {wyndka.%player%} = 0
    {pvp.%player%} = 0
    {kupidyn.%player%} = 0
    {antymove.%player%} = 0
    {petarda.%player%} = 0
    {arcus.combo.%player%} = 0
    {col.excalibur.%player%} = 0
    

on load:
    delete {blockedregion::*}
    set {blockedregion::1} to "{@blockedregion}"
    
on projectile hit:
    if victim is player:
        if shooter's held item is bow:
            if custom model data of shooter's held item is 1:
                apply blindness to victim for 10 seconds
                set {kupidyn.%shooter%} to 60
               
on damage of player:
    if attacker's weapon is golden sword:
        if custom model data of attacker's weapon is 1:
            set {_cooldown} to difference between {cooldown::marchewka::%attacker%} and now
            if {_cooldown} is less than 60 seconds:
                stop
            set {cooldown::marchewka::%attacker%} to now
            apply slowness 10 to victim for 5 tick
            apply levitation 1 to victim for 5 tick
            send title "&bZostałeś zamrożony!" with subtitle "&7Zamroził Ciebie gracz &f%attacker%" to victim for 3 seconds
            send title "" with subtitle "&bZamroziłeś &3%victim%" to attacker for 3 seconds
            set item cooldown of attacker's weapon for attacker to 60 seconds
            set metadata "nojump" of victim to true
            wait 0.5 second
            delete metadata "nojump" of victim
    
on jump:
    if player has metadata "nojump":
        cancel event
        
every 1 seconds:
    loop all players:
        if loop-player's helmet is {korona}:
            if loop-player has potion strength:
            else:
                apply strength 2 to loop-player for 1 seconds
            if loop-player has potion luck:
            else:
                apply luck 1 to loop-player for 1 seconds
            apply resistance 3 to loop-player for 1 seconds
            if loop-player has potion speed:
            else:
                apply speed 2 to loop-player for 1 seconds
            if loop-player has potion fire resistance:
            else:
                apply fire resistance 1 to loop-player for 1 seconds
        if loop-player's held item is brown dye:
            if custom model data of loop-player's held item is 1:
                if loop-player has potion strength:
                else:
                    apply strength 2 to loop-player for 1 seconds
        if loop-player's off hand item is brown dye:
            if custom model data of loop-player's off hand item is 1:
                if loop-player has potion strength:
                else:
                    apply strength 2 to loop-player for 1 seconds
        if loop-player's held item is allium:
            if custom model data of loop-player's held item is 1:
                if loop-player has potion strength:
                else:
                    apply strength to loop-player for 1 seconds
        else if loop-player's off hand item is allium:
            if custom model data of loop-player's off hand item is 1:
                if loop-player has potion strength:
                else:
                    apply strength to loop-player for 1 seconds
        if loop-player's held item is poppy:
            if custom model data of loop-player's held item is 1:
                if loop-player has potion regeneration:
                else:
                    apply regeneration to loop-player for 1 seconds
                if loop-player has potion resistance:
                else:
                    apply resistance to loop-player for 1 seconds
        else if loop-player's off hand item is poppy:
            if custom model data of loop-player's off hand item is 1:
                if loop-player has potion regeneration:
                else:
                    apply regeneration to loop-player for 1 seconds
                if loop-player has potion resistance:
                else:
                    apply resistance to loop-player for 1 seconds
                    
on resurrect:
    if event-item is a totem of undying:
        if custom model data of event-item is 1: 
            wait 0.10 seconds
            teleport player to location at 0.500, 130, 0.500 in world "world"
            heal player


on right click:
    if player's held item is beetroot soup with custom model data 1:
        heal player
        set player's held item to air

on damage of player:
    if attacker's weapon is netherite hoe:
        if custom model data of attacker's weapon is 1:
            set {_cooldown} to difference between {cooldown::kosa1::%attacker%} and now
            if {_cooldown} is less than 60 seconds:
                stop
            set {cooldown::kosa1::%attacker%} to now
            set item cooldown of attacker's weapon for attacker to 60 seconds
            apply blindness 2 to victim for 5 seconds
            apply wither 2 to victim for 5 seconds
            send title "&e" with subtitle "&7Oślepiłeś &8%victim%" to attacker for 3 seconds
            send title "&8Zostałeś oślepiony!" with subtitle "&7oślepiony przez gracza &f%attacker%" to victim for 3 seconds

command /burza [<player>]:
    permission: anarchiaitems.admin
    trigger:
        if arg-1 is set:
            set {_target} to arg-1
            if {_target} is online:
                strike lightning effect at location of {_target}
                wait 1 tick
                set {_maxHealth} to max health of {_target}
                set {_target}'s health to {_target}'s health - ({_target}'s health * 0.3)
            else:
                send "&cGracz nie jest online!"
        else:
            send "&cMusisz podać nick gracza!"

on damage of player:
    if attacker's weapon is golden axe:
        if custom model data of attacker's weapon is 1:
            set {_cooldown} to difference between {cooldown::siekiera::%attacker%} and now
            if {_cooldown} is less than 60 seconds:
                stop
            set {cooldown::siekiera::%attacker%} to now
            set item cooldown of attacker's weapon for attacker to 60 seconds
            send title "&a" with subtitle "&7Uderzyłeś &f%victim% &7siekierą &agrincha&7!" to attacker for 3 seconds
            send title "&a" with subtitle "&7Zostałeś uderzony &asiekierą grincha&7!" to victim for 3 seconds
            execute console command "burza %victim%"

on shoot:
    if shooter's weapon is a snowball:
        if custom model data of shooter's weapon is 1:
            set {snowball::%projectile's uuid%} to true
on projectile hit:
    if projectile is a snowball:
        if {snowball::%projectile's uuid%} is true:
            delete {snowball::%projectile's uuid%}
            if victim is player:
                set {_loc.%shooter%} to shooter's location
                set {_loc.%victim%} to victim's location
                teleport victim to {_loc.%shooter%}
                teleport shooter to {_loc.%victim%}


on damage of player:
    if attacker's weapon is netherite sword:
        if custom model data of attacker's weapon is 2:
            set {_cooldown} to difference between {cooldown::kroliczymiecz1::%attacker%} and now
            if {_cooldown} is less than 60 seconds:
                stop
            set {cooldown::kroliczymiecz1::%attacker%} to now
            set {nieskacz.%victim%} to true
            set item cooldown of attacker's weapon for attacker to 60 seconds
            send title "&3Królicza klątwa" with subtitle "&7Nie możesz skakać przez 4 sekundy!" to victim for 4 seconds
            wait 4 seconds
            delete {nieskacz.%victim%}
    

on jump:
    if {nieskacz.%player%} is set:
        cancel event

on projectile hit:
    shooter is holding crossbow with custom model data 1 named "&6&lMarchewkowa kusza"
    set {_cooldown} to difference between {cooldown::marchewkowyakusza::%shooter%} and now
    if {_cooldown} is less than 60 seconds:
        stop
    set {cooldown::marchewkowyakusza::%shooter%} to now
    kill projectile
    set {kusza.%shooter%} to 60
    set item cooldown of shooter's held item for shooter to 60 seconds
    teleport victim to shooter
    send title "&e" with subtitle "&7Uderzyłeś &f%victim%&7 marchewkową kuszą!" to shooter for 3 seconds
    send title "&e" with subtitle "&7Zostałeś przyciągnięty przez &f%shooter%&7!" to victim for 3 seconds
    
    
on shoot:
    if shooter's weapon is a egg:
        if custom model data of shooter's weapon is 1:
            set {egg::%projectile's uuid%} to true
on projectile hit:
    if projectile is a egg:
        if {egg::%projectile's uuid%} is true:
            delete {egg::%projectile's uuid%}
            if victim is player:
                send title "&e&lLEWE JAJKO?!" to victim for 3 seconds
                wait 1 seconds
                send title "&6&lZIUUU!" to victim for 3 seconds
                push victim upwards at speed 3.5
                wait 3.7 seconds
                push victim upwards at speed 2

    
variables:
    {wyndka.%player%} = 0
    
on projectile hit:
    if shooter's weapon is fishing rod:
        if custom model data of shooter's weapon is 2:
            if victim is player:
                send title "&a&lZłapałeś gracza!" with subtitle "&7Złapany gracz: &e%victim%" to shooter for 3 seconds
                send title "&c&lZłapany!" with subtitle "&7Złapany przez: &e%shooter%" to victim for 3 seconds
                execute console command "zlap %victim%"
                
                
                set {wyndka.%shooter%} to 30
                set item cooldown of shooter's weapon for shooter to 30 seconds
                    
                send "&aZłapałeś gracza &e%victim%&a!" to shooter
                send "&aZłapał Cię gracz &e%shooter%&a!" to victim
                wait 15 seconds
                execute console command "opusc1 %victim%"
                send title "&c&lUwolniony!" with subtitle "&7Kląstwa została zdjęta!" to victim
                send "&cKlątwa została zdjęta!" to victim
                wait 0.1 seconds
                if {zlap.%victim%} is shooter:
                    kill {hak.%victim%}
                    delete {zlap.%victim%}
                    delete {levitating::%victim%}
                    
    else if shooter's off hand item is fishing rod:
        if custom model data of shooter's off hand item is 2:
            if victim is player:
                send title "&a&lZłapałeś gracza!" with subtitle "&7Złapany gracz: &e%victim%" to shooter for 3 seconds
                send title "&c&lZłapany!" with subtitle "&7Złapany przez: &e%shooter%" to victim for 3 seconds
                execute console command "zlap %victim%"
                
                set {wyndka.%shooter%} to 30
                set item cooldown of shooter's off hand item for shooter to 30 seconds
                    
                send "&aZłapałeś gracza &e%victim%&a!" to shooter
                send "&aZłapał Cię gracz &e%shooter%&a!" to victim
                wait 15 seconds
                execute console command "opusc1 %victim%"
                send title "&c&lUwolniony!" with subtitle "&7Kląstwa została zdjęta!" to victim
                send "&cKlątwa została zdjęta!" to victim
                wait 0.1 seconds
                if {zlap.%victim%} is shooter:
                    kill {hak.%victim%}
                    delete {zlap.%victim%}
                    delete {levitating::%victim%}    


command /zlap [<player>]:
    permission: -anarchiaitems.admin
    permission message: &cBrak uprawnień
    trigger:
        set {nielota-on::%arg-1%} to true
        set {firework.disabled::%arg-1%} to true
        while {nielota-on::%arg-1%} is true:
            apply slow falling 2 to arg-1 for 4 tick
            apply levitation 2 to arg-1 for 4 tick
            wait 1 tick
            remove levitation from arg-1
            wait 1 tick
            remove slow falling from arg-1
            wait 2 tick
            

command /opusc [<player>]:
    permission: anarchiaitems.admin
    permission message: &cBrak uprawnień
    trigger:
        delete {nielota-on::%arg-1%}
        delete {firework.disabled::%arg-1%}
        
on right click:
    if player's held item is feather:
        if custom model data of player's held item is 1:
            remove 1 of player's held item from player's held item
            loop all players in radius 7 around player:
                if loop-player is not player:
                    send title "&e" with subtitle "&f%player%&7 strzelił ciebie &eparawanem&7!" to loop-player for 10 seconds
                    push loop-player backwards at speed 1.5
                    push loop-player upwards at speed 0.5
                    remove slowness from loop-player
                    remove blindness from loop-player
                    apply slowness 4 to loop-player for 10 seconds
                    apply blindness to loop-player for 5 seconds
                    play sound "entity.tnt.explode" with volume 1.0 to loop-player
                    play sound "entity.tnt.explode" with volume 1.0 to player

on right click:
    if player's held item is blaze rod:
        if custom model data of player's held item is 1:
            if {petarda.%player%} = 0:
                make player shoot dragon fireball at speed 0.6
                set item cooldown of player's held item for player to 90 seconds
                set {petarda.%player%} to 90
on projectile hit:
    if projectile is dragon fireball:
        if shooter is player:
            create an explosion of force 3 at the projectile
            loop all entities in radius 7 around shooter:
                if loop-entity is player:
                    set damage value of loop-entity's helmet to (407 / 5) + damage value of loop-entity's helmet 
                    set damage value of loop-entity's chestplate to (592 / 5) + damage value of loop-entity's chestplate 
                    set damage value of loop-entity's leggings to (555 / 5) + damage value of loop-entity's leggings 
                    set damage value of loop-entity's boots to (481 / 5) + damage value of loop-entity's boots


on death of player:
    if attacker is holding a netherite sword:
        if custom model data of attacker's tool is 5:
            if {col.excalibur.%victim%} = 0:
                send "&aZabójstwo zostało dodane do &eexcaliburu&a!" to attacker
                set {_lore::*} to lore of attacker's tool
                set {col.excalibur.%victim%} to 300
                if size of {_lore::*} > 4:
                    set {_line} to uncoloured {_lore::6}
                    replace all " » Aktualnie zabójstw: " in {_line} with ""
                    set {_kills} to ({_line} parsed as integer)
                    add 1 to {_kills}
                    set {_procent.excalibur} to {_kills} / 1
                    if {_procent.excalibur} > 100:
                        set {_procent.excalibur} to 100
                    if {_kills} > 99:
                        enchant attacker's tool with sharpness 7
                        set {_p.25} to "&a&m "
                        set {_line} to uncoloured {_lore::9}
                        replace all "aktualnie obrażenia: 11.5" in {_line} with ""
                        set {_lore::13} to " &8»&7 Obrażenia od ataku: &f12.0"
                    else:
                        set {_p.25} to "&f&m "
                    if {_kills} > 95:
                        set {_p.24} to "&a&m "
                    else:
                        set {_p.24} to "&f&m "
                    if {_kills} > 91:
                        set {_p.23} to "&a&m "
                    else:
                        set {_p.23} to "&f&m "
                    if {_kills} > 87:
                        set {_p.22} to "&a&m "
                    else:
                        set {_p.22} to "&f&m "
                    if {_kills} > 83:
                        set {_p.21} to "&a&m "
                    else:
                        set {_p.21} to "&f&m "
                    if {_kills} > 79:
                        set {_p.20} to "&a&m "
                    else:
                        set {_p.20} to "&f&m "
                    if {_kills} > 75:
                        set {_p.19} to "&a&m "
                    else:
                        set {_p.19} to "&f&m "
                    if {_kills} > 71:
                        set {_p.18} to "&a&m "
                    else:
                        set {_p.18} to "&f&m "
                    if {_kills} > 67:
                        set {_p.17} to "&a&m "
                    else:
                        set {_p.17} to "&f&m "
                    if {_kills} > 63:
                        set {_p.16} to "&a&m "
                    else:
                        set {_p.16} to "&f&m "
                    if {_kills} > 59:
                        set {_p.15} to "&a&m "
                    else:
                        set {_p.15} to "&f&m "
                    if {_kills} > 55:
                        set {_p.14} to "&a&m "
                    else:
                        set {_p.14} to "&f&m "
                    if {_kills} > 51:
                        set {_p.13} to "&a&m "
                    else:
                        set {_p.13} to "&f&m "

                    if {_kills} > 47:
                        set {_p.12} to "&a&m "
                    else:
                        set {_p.12} to "&f&m "
                    if {_kills} > 43:
                        set {_p.11} to "&a&m "
                    else:
                        set {_p.11} to "&f&m "
                    if {_kills} > 39:
                        set {_p.10} to "&a&m "
                    else:
                        set {_p.10} to "&f&m "

                    if {_kills} > 35:
                        set {_p.9} to "&a&m "
                    else:
                        set {_p.9} to "&f&m "

                    if {_kills} > 31:
                        set {_p.8} to "&a&m "
                    else:
                        set {_p.8} to "&f&m "

                    if {_kills} > 27:
                        set {_p.7} to "&a&m "
                    else:
                        set {_p.7} to "&f&m "

                    if {_kills} > 23:
                        set {_p.6} to "&a&m "
                    else:
                        set {_p.6} to "&f&m "

                    if {_kills} > 19:
                        set {_p.5} to "&a&m "
                    else:
                        set {_p.5} to "&f&m "
                    if {_kills} > 15:
                        set {_p.4} to "&a&m "
                    else:
                        set {_p.4} to "&f&m "

                    if {_kills} > 11:
                        set {_p.3} to "&a&m "
                    else:
                        set {_p.3} to "&f&m "

                    if {_kills} > 7:
                        set {_p.2} to "&a&m "
                    else:
                        set {_p.2} to "&f&m "

                    if {_kills} > 3:
                        set {_p.1} to "&a&m "
                    else:
                        set {_p.1} to "&f&m "


                    set {cal} to "%{_p.1}%%{_p.2}%%{_p.3}%%{_p.4}%%{_p.5}%%{_p.6}%%{_p.7}%%{_p.8}%%{_p.9}%%{_p.10}%%{_p.11}%%{_p.12}%%{_p.13}%%{_p.14}%%{_p.15}%%{_p.16}%%{_p.17}%%{_p.18}%%{_p.19}%%{_p.20}%%{_p.21}%%{_p.22}%%{_p.23}%%{_p.24}%%{_p.25}%"

                    set {_lore::6} to " &8» &7Aktualnie zabójstw: &f%{_kills}%"
                    set {_lore::7} to " &8»  &r%{cal}%&r &e%{_procent.excalibur}%%{prc}%"
                    set lore of attacker's tool to {_lore::*}
                else:
                    send "&cNie można zaktualizować liczby zabójstw, ponieważ lore jest niepoprawne!" to attacker
            else:
                send "&cTen gracz został już zabity, kill nie naliczył się na &eexcalibur" to attacker
on damage of player:
    if attacker is player:
        set {pvp.%victim%} to 30
        set {pvp.%attacker%} to 30


on damage of player by player:
    attacker is holding lime candle with custom model data 1 named "&a&lZatruty ołówek"
    set {_cooldown} to difference between {cooldown::zatruty::%attacker%} and now
    if {_cooldown} is less than 60 seconds:
        stop
    set {cooldown::zatruty::%attacker%} to now
    set item cooldown of attacker's weapon for attacker to 60 seconds
    play sound "block.note_block.pling" with volume 1 to victim
    play sound "block.note_block.pling" with volume 1 to attacker
    send title "" with subtitle "&aZostałeś zatruty przez ołówek!" to victim for 3 seconds
    remove weakness from victim
    remove poison from victim
    apply weakness 2 to victim for 30 seconds
    apply poison 2 to victim for 30 seconds
    
on place:
    if event-item is lime candle with custom model data 1:
        cancel event

on damage of player by player:
    attacker is holding poisonous potato with custom model data 1 named "&2&lSpleśniała kanapka"
    remove glowing from victim
    apply glowing 1 to victim for 10 seconds
    remove 1 of attacker's weapon from attacker's held item

on consume of enchanted golden apple:
    if name of player's tool is "&c&lWampirze jabłko":
        apply strength 2 to player for 6 seconds

on right click with bowl:
    remove 1 bowl from player's inventory
    remove Bad Omen from player
    remove Blindness from player
    remove Mining Fatigue from player
    remove Nausea from player
    remove poison from player
    remove Slowness from player
    remove Weakness from player
    remove Wither from player
    remove Darkness from player
    stop

on consume:
    if name of player's held item is "&6&lPiernik":
        apply haste 10 to player for 10 seconds

options:
    grinch-shovel-name: "&a&lŁopata Grincha"
    grinch-cooldown: 10 seconds
    
on damage of player:
    if attacker is a player:
        if name of attacker's tool is {@grinch-shovel-name}:
            set {_cooldown} to difference between now and {cooldown::lopata::%attacker%}
            if {_cooldown} < {@grinch-cooldown}:
                stop
            else:
                apply slowness 10 to victim for 1 seconds
                
                set {_randomYaw} to random number between 0 and 360
                set {_loc} to location of victim
                set yaw of {_loc} to {_randomYaw} # Ustaw losowy kierunek
                teleport victim to {_loc}
                set item cooldown of attacker's weapon for attacker to 10 seconds
                
                send title "" with subtitle "&7Zostałeś uderzony &aŁopata Grincha&7!" to victim
                
                set {cooldown::lopata::%attacker%} to now

on consume:
    if name of player's held item is "&2&lSpleśniała kanapka":
        send title "&a" with subtitle "&7co ty robisz?" to player for 3 seconds


on right click:
    if player's held item is iron axe:
        if custom model data of player's held item is 1:
            loop all entities in radius 7 around player:
                if loop-entities is not player:
                    set {_cooldown} to difference between {cooldown::boski::%player%} and now
                    if {_cooldown} is less than 60 seconds:
                        send title "" with subtitle "&bBoski topór &7możesz używać dopiero za &f%difference between 60 seconds and {_cooldown}%" to player
                        stop
                    set {cooldown::boski::%player%} to now
                    push loop-entity backwards at speed 1.5
                    push loop-entity upwards at speed 1
                    send title "" with subtitle "&bAktywowałeś boski topór&7!" to player
                    send title "" with subtitle "&b%player% &7aktywował &bboski topór&7!" to loop-entity
                    play sound "entity.ender_dragon.growl" with volume 1.0 to player
                    play sound "entity.tnt.explode" with volume 1.0 to loop-entity
                    set item cooldown of player's weapon for player to 60 seconds
                    apply resistance 10 to player for 3 seconds
                    apply absorption 10 to player for 3 seconds

on damage of player by player:
    attacker is holding purple dye with custom model data 1 named "&5&lZłamane serce"
    set {_cooldown} to difference between {cooldown::serduszko::%attacker%} and now
    if {_cooldown} is less than 5 seconds:
        stop
    set {cooldown::serduszko::%attacker%} to now
    set item cooldown of attacker's weapon for attacker to 5 seconds
    apply slow falling 2 to victim for 10 seconds
    apply slowness 2 to victim for 10 seconds
    play sound "entity.sheep.shear" with volume 1.0 to attacker
    play sound "entity.sheep.shear" with volume 1.0 to victim
    send title "" with subtitle "&7Złamałeś &dserce &7gracza &f%victim%" to attacker
    send title "" with subtitle "&7Twoje &dserduszko &7zostało złamane!" to victim
    send "&7Dostałeś kląstwe &cZłamanego Serca &7od gracza &f%attacker%" to victim
    remove 1 purple dye with custom model data 1 from attacker's inventory


on right click with fishing rod:
    if player is in region "{@blockedregion}":
        cancel event
on right click with snowball:
    if player is in region "{@blockedregion}":
        cancel event
on right click with egg:
    if player is in region "{@blockedregion}":
        cancel event
on right click with iron axe:
    if player is in region "{@blockedregion}":
        cancel event
on right click with leather:
    if player is in region "{@blockedregion}":
        cancel event
on right click with ender pearl:
    if player is in region "{@blockedregion}":
        cancel event
        
on right click with fishing rod:
    if player is in region "{@blockedregion}":
        cancel event
on right click with snowball:
    if player is in region "{@blockedregion}":
        cancel event
on right click with egg:
    if player is in region "{@blockedregion}":
        cancel event
on right click with iron axe:
    if player is in region "{@blockedregion}":
        cancel event
on right click with leather:
    if player is in region "{@blockedregion}":
        cancel event
on right click with ender pearl:
    if player is in region "{@blockedregion}":
        cancel event

            

on right click:
    if player's held item is rabbit foot:
        if custom model data of player's held item is 1:
            if {pvp.%player%} = 0:
                set {_lore::*} to lore of player's tool
                if {_lore::5} is "":
                    set {_n} to 0
                    loop 24 times:
                        set {_kod::%{_n}%} to random integer between 1 and 9
                        add 1 to {_n}
                    set {_kod::*} to colored "&x&%{_kod::0}%&%{_kod::1}%&%{_kod::2}%&%{_kod::3}%&%{_kod::4}%&%{_kod::5}% &x&%{_kod::6}%&%{_kod::7}%&%{_kod::8}%&%{_kod::9}%&%{_kod::10}%&%{_kod::11}% &x&%{_kod::12}%&%{_kod::13}%&%{_kod::14}%&%{_kod::15}%&%{_kod::16}%&%{_kod::17}% &x&%{_kod::18}%&%{_kod::19}%&%{_kod::20}%&%{_kod::21}%&%{_kod::22}%&%{_kod::23}% "
                    set {_lore::5} to "%{_kod::*}%"
                    set {_item} to player's held item
                    remove 1 of player's held item from player's held item
                    if player can hold 1 of {_item}:
                        give 1 of {_item} with lore {_lore::*} to player
                    else:
                        drop 1 of {_item} at player's location
                    send "&cUUID twojej sakiewki zostało uzupełnione!, otwórz nową sakiwke ponownie" to player
                    cancel event
                    stop
                set {_sakwa.%{_lore::5}%} to chest inventory with 6 rows named "&8Sakiewka dropu"
                set {_i} to 1
                set {_n} to 0
                loop 45 times:
                    set slot {_n} of {_sakwa.%{_lore::5}%} to {sakwa.%{_lore::5}%::%{_i}%}
                    add 1 to {_n}
                    add 1 to {_i}
                set slot 49 of {_sakwa.%{_lore::5}%} to barrier named "&cZamknij!"
                set slot 50 of {_sakwa.%{_lore::5}%} to lime dye named "&aWypłać wszystko" with lore "&8» &7Kliknij aby wypłacić wszystkie" and "&8» &7przedmioty z sakiewki"
                play sound "minecraft:block.barrel.open" with volume 1.0 to player
                open {_sakwa.%{_lore::5}%} to player
            else:
                send title "&c" with subtitle "&cNie możesz tego zrobić podczas antylogout!" to player for 3 seconds
on inventory click:
    if name of event-inventory is "&8Sakiewka dropu":
        cancel event
        if clicked slot is 49:
            close player's inventory
            stop
        if clicked slot is 50:
            set {_lore::*} to lore of player's held item
            set {_sakwa} to {_lore::5}
            wait 0.1 seconds
            close player's inventory
            if {sakwa.%{_lore::5}%::*} is set:
                send title "" with subtitle "&awypłacanie przedmiotów..." to player
                play sound "minecraft:entity.item.pickup" with volume 1.0 to player
            else:
                send title "" with subtitle "&awypłacanie przedmiotów..." to player
                play sound "minecraft:entity.item.pickup" with volume 1.0 to player
                stop
            loop {sakwa.%{_lore::5}%::*}:
                remove loop-value from {sakwa.%{_lore::5}%::*}
                if player can hold loop-value:
                    give loop-value to the player
                else:
                    drop loop-value at player's location
            stop
        set {_lore::*} to lore of player's held item
        set {_sakwa} to {_lore::5}

        wait 0.1 seconds

        if item is not air:
            if event-inventory is not player's inventory:
                if player can hold item:
                    give item to the player
                    set {_item} to item
                    set clicked slot to air
                    loop {sakwa.%{_lore::5}%::*}:
                        if loop-value is {_item}:
                            remove loop-value from {sakwa.%{_lore::5}%::*}
                            stop
                
on damage of player:
    if victim is blocking:
        if victim's held item is shield:
            if custom model data of victim's held item is 1:
                chance of 25%:
                    damage attacker by damage
                    send title "&e" with subtitle "&7gracz %victim% &fodbił&7 cios" to attacker for 3 seconds
        else if victim's off hand item is shield:
            if custom model data of victim's off hand item is 1:
                chance of 25%:
                    damage attacker by damage
                    send title "&e" with subtitle "&7gracz %victim% &fodbił&7 cios" to attacker for 3 seconds


on right click on bedrock:
    if player's held item is red candle:
        if y-coordinate of event-block > -62:
            set event-block to air
            play sound "entity.generic.explode" with volume 1.0 to player
        else:
            send "&cNie możesz znisczyć blok!" to player

on place:
    if event-item is red candle with custom model data 1:
        cancel event


 

Odnośnik do komentarza
https://skript.pl/temat/58174-totem-u%C5%82askawienia/#findComment-346610
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...