Vikronix

can you also make it like the powers would work on all types of axes regarless of types etc instead of giving me a special seperate netherite axe?

› read the whole skript and understand it propertly and then do this can u make it like rename inferno heart to something else name cuz it just disables utilities yk, then make another inferno heart which is related to fire aspect axe and using its charge summons a fireball straight at where they are looking and also fix thunder heart being too much overpowered, balance it

make sure to not give any errors out when i reload the skript and make it performative

📎 1 file 25,592 chars
📄
twist.sk
sk 489 lines
▶
options:
    prefix: <##8A2BE2>👻 &7|
    max-souls: 5
    min-souls-for-ability: 1
    soul-name: <##8A2BE2>👻 <##9B3EF5>&lS<##AC51FF>&lO<##BD64FF>&lU<##CE77FF>&lL<##DF8AFF>&lS <##B563FF>👻
    reroller-name: <##F13A3A>🎲 <##F44444>R<##F54949>E<##F64D4D>R<##F75252>O<##F95757>L<##FA5C5C>L<##F95656>E<##F75151>R <##F44545>🎲

on load:
    set {aspire::souls} to a player head named "&fSoul" with lore "&7Right-click to collect this soul."
    set {aspire::reroller} to a nether star named "{@reroller-name}" with lore "<##F13A3A>Use this to reroll your current axe if you" and "<##F13A3A>want a different one. Every axe has fair odds. Good luck!" and "&7" and "&7Right-click to use" and "" and "&cWarning: Do not spam-click or stack the reroller."
    set {aspire::frostaxe} to a netherite axe named "<##A3BDFF>Frost Axe" with lore "&bRight-click to use your ability." and "&7Requires at least 1 soul."
    set {aspire::berserkeraxe} to a netherite axe named "<##A30C13>Berserker Axe" with lore "<##A30C13>Right-click to use your ability." and "&7Requires at least 1 soul."
    set {aspire::thunderaxe} to a netherite axe named "&2Thunder Axe" with lore "&2Right-click to use your ability." and "&7Requires at least 1 soul."
    set {aspire::infernoaxe} to a netherite axe named "<##FAC000>Inferno Axe" with lore "<##FAC000>Right-click to use your ability." and "&7Requires at least 1 soul."
    set {aspire::vitalityaxe} to a netherite axe named "<##EC51AF>Vitality Axe" with lore "<##EC51AF>Right-click to use your ability." and "&7Requires at least 1 soul."

function giveAxeToPlayer(p: player, type: text):
    if {_type} is "Frost":
        give {aspire::frostaxe} to {_p}
    else if {_type} is "Berserker":
        give {aspire::berserkeraxe} to {_p}
    else if {_type} is "Thunder":
        give {aspire::thunderaxe} to {_p}
    else if {_type} is "Inferno":
        give {aspire::infernoaxe} to {_p}
    else if {_type} is "Vitality":
        give {aspire::vitalityaxe} to {_p}

function rollAxe(p: player):
    set {_number} to a random integer between 1 and 5
    if {_number} is 1:
        set {heart.%{_p}'s uuid%} to "Frost"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "&b&l❄" with subtitle "&fYou rolled the <##A3BDFF>&lFROST &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Frost")
    else if {_number} is 2:
        set {heart.%{_p}'s uuid%} to "Inferno"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "<##FAC000>&l🔥" with subtitle "&fYou rolled the <##FAC000>&lINFERNO &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Inferno")
    else if {_number} is 3:
        set {heart.%{_p}'s uuid%} to "Berserker"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "<##A30C13>&l⚔" with subtitle "&fYou rolled the <##A30C13>&lBERSERKER &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Berserker")
    else if {_number} is 4:
        set {heart.%{_p}'s uuid%} to "Thunder"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "&2&l⚡" with subtitle "&fYou rolled the &2&lTHUNDER &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Thunder")
    else if {_number} is 5:
        set {heart.%{_p}'s uuid%} to "Vitality"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "<##EC51AF>&l❤" with subtitle "&fYou rolled the <##EC51AF>&lVITALITY &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Vitality")

command /setsouls  :
    permission: axesouls.setsouls
    trigger:
        set {souls.%arg-1's uuid%} to arg-2
        send "&dSet %arg-1%'s souls to %arg-2%." to player
        if arg-1 is online:
            send "&dAn admin set your souls to %arg-2%." to arg-1

command /setaxe  :
    permission: axesouls.setaxe
    trigger:
        if {customaxe.%arg-1's uuid%} is set:
            send "&c&l! &c%arg-1% already has a custom axe. Do /setcustomaxe %arg-1% None." to player
            stop
        set {_target} to arg-1
        set {_type} to arg-2
        if {_type} is "Frost":
            set {heart.%{_target}'s uuid%} to "Frost"
            if {_target} is online:
                set {_p} to {_target}
                send "&dAxeSMP &7| &dAn admin changed your axe to <##A3BDFF>Frost Axe&d." to {_p}
                send "&dAxeSMP &7| <##A3BDFF>Set %{_target}%'s axe to Frost." to player
                set {_p}'s max health to 10
                giveAxeToPlayer({_p}, "Frost")
            else:
                send "&dAxeSMP &7| <##A3BDFF>Set %{_target}%'s axe to Frost &7(offline)<##A3BDFF>." to player
        else if {_type} is "Berserker":
            set {heart.%{_target}'s uuid%} to "Berserker"
            if {_target} is online:
                set {_p} to {_target}
                set {_p}'s max health to 10
                send "&dAxeSMP &7| &dAn admin changed your axe to &4Berserker Axe&d." to {_p}
                send "&dAxeSMP &7| &4Set %{_target}%'s axe to Berserker." to player
                giveAxeToPlayer({_p}, "Berserker")
            else:
                send "&dAxeSMP &7| &4Set %{_target}%'s axe to Berserker &7(offline)&4." to player
        else if {_type} is "Thunder":
            set {heart.%{_target}'s uuid%} to "Thunder"
            if {_target} is online:
                set {_p} to {_target}
                set {_p}'s max health to 10
                send "&dAxeSMP &7| &dAn admin changed your axe to &2Thunder Axe&d." to {_p}
                send "&dAxeSMP &7| &2Set %{_target}%'s axe to Thunder." to player
                giveAxeToPlayer({_p}, "Thunder")
            else:
                send "&dAxeSMP &7| &2Set %{_target}%'s axe to Thunder &7(offline)&2." to player
        else if {_type} is "Inferno":
            set {heart.%{_target}'s uuid%} to "Inferno"
            if {_target} is online:
                set {_p} to {_target}
                set {_p}'s max health to 10
                send "&dAxeSMP &7| &dAn admin changed your axe to &6Inferno Axe&d." to {_p}
                send "&dAxeSMP &7| &6Set %{_target}%'s axe to Inferno." to player
                giveAxeToPlayer({_p}, "Inferno")
            else:
                send "&dAxeSMP &7| &6Set %{_target}%'s axe to Inferno &7(offline)&6." to player
        else if {_type} is "Vitality":
            set {heart.%{_target}'s uuid%} to "Vitality"
            if {_target} is online:
                set {_p} to {_target}
                set {_p}'s max health to 10
                send "&dAxeSMP &7| &dAn admin changed your axe to &dVitality Axe&d." to {_p}
                send "&dAxeSMP &7| &dSet %{_target}%'s axe to Vitality." to player
                giveAxeToPlayer({_p}, "Vitality")
            else:
                send "&dAxeSMP &7| &dSet %{_target}%'s axe to Vitality &7(offline)&d." to player
        else:
            send "&cInvalid axe type. Use: Frost, Berserker, Thunder, Inferno, or Vitality." to player

on join:
    if {souls.%player's uuid%} is not set:
        set {souls.%player's uuid%} to 0
    if {heart.%player's uuid%} is not set:
        send title "" with subtitle "&fRolling your random axe..." to player
        wait 2 seconds
        rollAxe(player)

on right click:
    if player's tool is a player head:
        if name of player's tool is "&fSoul":
            cancel event
            if {souls.%player's uuid%} < {@max-souls}:
                remove 1 of player's tool from player's inventory
                add 1 to {souls.%player's uuid%}
                send "{@prefix} <##8A2BE2>Soul collected. &7(%{souls.%player's uuid%}% / {@max-souls})" to player
                play sound "entity.experience_orb.pickup" with volume 1 to player
            else:
                send "&c👻 You already have the maximum amount of souls!" to player
                play sound "entity.villager.no" to player
            stop

on right click:
    if player's tool is a nether star:
        if name of player's tool contains "REROLLER":
            cancel event
            remove 1 of player's tool from player's inventory
            rollAxe(player)
            stop

on right click:
    if player's tool is a netherite axe:
        if name of player's tool contains "Axe":
            cancel event
            if {locked.%player's uuid%} is set:
                send "<##A30C13>⚔ <#AE1616>Your<#B71C1C> abi<#BF2121>lity<#C82727> has<#D12D2D> bee<#D93232>n lo<#E23838>cked<#D83131> by <#CD2A2A>a be<#C32424>rser<#B81D1D>ker u<#AE1616>ser. &7(%{locked.%player's uuid%}%s)" to player
                stop
            if {souls.%player's uuid%} is not set:
                set {souls.%player's uuid%} to 0
            if {souls.%player's uuid%} < {@min-souls-for-ability}:
                send "&cYou need at least 1 soul to use this ability!" to player
                play sound "entity.villager.no" to player
                stop
            remove 1 from {souls.%player's uuid%}
            set {_heart} to {heart.%player's uuid%}
            if {_heart} is not set:
                send "&c&l! &cYou do not have an axe type assigned!" to player
                stop
            if {_heart} is "Frost":
                if target entity is a player:
                    if {frozen.%target entity's uuid%} is not set:
                        set {_duration} to 5
                        set {noeat.%target entity's uuid%} to {_duration}
                        play sound "block.beacon.activate" at volume 0.7 to player
                        send "&f &f &f &f &b&l❄ FREEZE ❄" to player
                        send "" to player
                        send "&bFreeze your target for 5 seconds." to player
                        send "&bThey also cannot consume anything for %{_duration}% seconds." to player
                        send "&b❄: You were frozen by %player%." to target entity
                        set {frozen.%target entity's uuid%} to 5
                        play sound "ENTITY.PLAYER.HURT.FREEZE" at volume 1.5 with pitch 0.6 at player's location
                    else:
                        send "&c&l! &cThat player is already frozen." to player
                else:
                    send "&c&l! &cNo target found. Look at a player to freeze them." to player
            else if {_heart} is "Berserker":
                set {str3.%player's uuid%} to 20
                send "&f &f &f &f <##A30C13>&l⚔ SHATTER! ⚔" to player
                send "" to player
                send "<##A30C13>Weakens every player within 5 blocks." to player
                send "<##A30C13>Their abilities are locked for 20 seconds." to player
                send "<##A30C13>You also gain autocrit and deal extra armor damage." to player
                play sound "block.beacon.activate" at volume 0.7 to player
                loop players in radius 5 around player:
                    if loop-player is not player:
                        if {trusted::%player's uuid%::*} does not contain loop-player's uuid:
                            set {locked.%loop-player's uuid%} to 20
                            send "<##A30C13>⚔: You were weakened by %player%." to loop-player
                            send title "" with subtitle "<##A30C13>⚔: You were weakened by %player%." to loop-player
                            play sound "entity.wither.ambient" at volume 1.5 with pitch 0.6 to loop-player
            else if {_heart} is "Vitality":
                play sound "block.beacon.activate" at volume 0.7 to player
                send "&f &f &f &f <##EC51AF>&l❤ HEAL! ❤!" to player
                send "" to player
                send "<##EC51AF>You and your trusted players are healed within a 10-block radius." to player
                send "<##EC51AF>You also gain 20 hearts for 15 seconds." to player
                set {temporaryheart.%player's uuid%} to 15
                loop entities in radius 10 around player:
                    if {trusted::%player's uuid%::*} contains loop-entity's uuid:
                        add 20 to loop-entity's health
                        send "<##EC51AF>❤: You were healed by <##F57FC6>%player%." to loop-entity
                wait 1 second
                add 40 to player's health
            else if {_heart} is "Thunder":
                if target entity is a player:
                    play sound "block.beacon.activate" at volume 0.7 to player
                    send "&f &f &f &f &f&l⚡ LIGHTNING &e&lSTRIKE ⚡" to player
                    send "" to player
                    send "&eRight-clicking strikes a target with lightning." to player
                    send "&fYour next hit becomes a &c&lSTRONGER &estrike&f." to player
                    strike lightning effect at target entity
                    execute console command "effect give %target entity% minecraft:instant_damage 1 1 true"
                    set {ability.%player's uuid%} to true
                else:
                    send "&c&l! &cNo target found. Look at a player to strike them." to player
            else if {_heart} is "Inferno":
                play sound "block.beacon.activate" at volume 0.7 to player
                send "&f &f &f &f <##FAC000>🔥 <##FAC000>&lBURN! <##FAC000>🔥" to player
                send "" to player
                send "<##FAC000>Players within 8 blocks will have their" to player
                send "<##FAC000>utilities like &dEnder Pearls, &fCobwebs, <##FAC000>and Blocks <##FAC000>&lDISABLED!" to player
                send "&7This effect lasts for 10 seconds." to player
                loop players in radius 8 around player:
                    if loop-player is not player:
                        if {trusted::%player's uuid%::*} does not contain loop-player's uuid:
                            play sound "entity.wither.spawn" at volume 0.7 with pitch 2 to loop-player
                            send title "" with subtitle "<##FAC000>🔥: Your utilities are disabled." to loop-player
                            send "<##FAC000>🔥: Your utilities like &dEnder Pearls, &fCobwebs, <##FAC000>and Blocks are disabled for 10 seconds." to loop-player
                            set {utildisable.%loop-player's uuid%} to 10
                            set the cooldown of ender pearl for loop-player to 10 seconds
                            set the cooldown of cobweb for loop-player to 10 seconds
                            set the cooldown of trident for loop-player to 10 seconds
                            set the cooldown of wind charge for loop-player to 10 seconds
                            apply slowness 2 to loop-player for 10 seconds

on death of player:
    set {_vUUID} to victim's uuid
    set {_vic} to victim
    if attacker is a player:
        drop 1 of {aspire::souls} at {_vic}'s location
        play sound "entity.item.break" at {_vic}'s location
        send "<##8A2BE2>👻 Collect the dropped soul!" to attacker

on damage:
    victim is a player
    attacker is a player
    set {_atk} to attacker
    set {_vic} to victim
    if {frozen.%{_atk}'s uuid%} is set:
        cancel event
        send title "" with subtitle "&bYou cannot hit players while you are &b&lfrozen&b!" to {_atk}
        stop
    if {frozen.%{_vic}'s uuid%} is set:
        remove 50% from damage

    if {heart.%{_atk}'s uuid%} is "Thunder":
        if {ability.%{_atk}'s uuid%} is true:
            delete {ability.%{_atk}'s uuid%}
            set {_bonus} to {souls.%{_atk}'s uuid%} + 4
            add {_bonus} to damage
            send "<##54B523>⚡ You were <##B12B2B>STRUCK <##54B523>by <##DEE05B>LIGHTNING" to {_vic}
            strike lightning effect at {_vic}
        set {_chance} to a random integer between 1 and 8
        if {_chance} is 5:
            strike lightning effect at {_vic}
            add 2 to damage
            send "&2You hit %{_vic}% with a &f&l⚡ LIGHTNING &e&lSTRIKE! ⚡ &7[Mini Variation]" to {_atk}

    if {heart.%{_atk}'s uuid%} is "Berserker":
        if {str3.%{_atk}'s uuid%} is set:
            set damage value of {_vic}'s helmet to damage value of {_vic}'s helmet + 1
            set damage value of {_vic}'s chestplate to damage value of {_vic}'s chestplate + 2
            set damage value of {_vic}'s leggings to damage value of {_vic}'s leggings + 2
            set damage value of {_vic}'s boots to damage value of {_vic}'s boots + 2
            add 1 to damage

on consume:
    if {noeat.%player's uuid%} is set:
        send "&bYou cannot consume anything until the timer ends. &7[%{noeat.%player's uuid%}%s]" to player
        cancel event

on place:
    if {frozen.%event-player's uuid%} is set:
        cancel event
        send "&bYou cannot place blocks while frozen." to player
    if {utildisable.%event-player's uuid%} is set:
        cancel event
        play sound "entity.villager.no" to player

on player move:
    if {frozen.%event-player's uuid%} >= 1:
        cancel event
        play sound "ENTITY.PLAYER.HURT.FREEZE" at volume 1.5 with pitch 1.5 at event-player's location

every 1 second:
    loop all players:
        set {_uuid} to loop-player's uuid
        set {_souls} to {souls.%{_uuid}%} ? 0
        set {_heart} to {heart.%{_uuid}%}
        set {_cd} to {heartcd.%{_uuid}%}
        set {_totem} to amount of totem of undying in loop-player's inventory
        set {_max} to {_souls} ? 1

        if {_totem} > {_max}:
            set {_extra} to {_totem} - {_max}
            send "&c&l! &cYou cannot carry more totems than your soul count!" to loop-player
            send "&c&lREMOVED %{_extra}% EXTRA TOTEMS." to loop-player
            loop {_extra} times:
                remove 1 totem of undying from loop-player's inventory
                drop 1 totem of undying at loop-player's location

        if {frozen.%{_uuid}%} is set:
            send action bar "&b❄ You are frozen for %{frozen.%{_uuid}%}% seconds!" to loop-player
        else:
            if {_heart} is "Frost":
                send action bar "&b❄ <##A3BDFF>ғʀᴏsᴛ ᴀxᴇ | &d👻 <##A3BDFF>%{_souls}%" to loop-player
            else if {_heart} is "Inferno":
                if loop-player is on fire:
                    send action bar "<##FAC000>🔥 <##FAC000>&lɪɴғᴇʀɴᴏ ᴀxᴇ | &6👻 <##FAC000>%{_souls}%" to loop-player
                else:
                    send action bar "<##FAC000>🔥 <##FAC000>ɪɴғᴇʀɴᴏ ᴀxᴇ | &6👻 <##FAC000>%{_souls}%" to loop-player
            else if {_heart} is "Thunder":
                send action bar "&2⚡ <##1B9B2E>ᴛʜᴜɴᴅᴇʀ ᴀxᴇ <##1B9B2E>| &d👻 <##1B9B2E>%{_souls}%" to loop-player
            else if {_heart} is "Vitality":
                send action bar "<##EC51AF>❤ <##EC51AF>ᴠɪᴛᴀʟɪᴛʏ ᴀxᴇ <##960075>| &d👻 <##EC51AF>%{_souls}%" to loop-player
            else if {_heart} is "Berserker":
                send action bar "<##A30C13>⚔ <##A30C13>ʙᴇʀsᴇʀᴋᴇʀ ᴀxᴇ <##7F0001>| &4👻 <##A30C13>%{_souls}%" to loop-player

        if {temporaryheart.%{_uuid}%} is not set:
            if {_souls} >= 0:
                set loop-player's max health to 10 + {_souls}
            else:
                set loop-player's max health to 10
        else:
            remove 1 from {temporaryheart.%{_uuid}%}
            set loop-player's max health to 20
            if {temporaryheart.%{_uuid}%} <= 0:
                delete {temporaryheart.%{_uuid}%}
                send "<##EC51AF>Your extra hearts have expired." to loop-player

        if {locked.%{_uuid}%} is set:
            remove 1 from {locked.%{_uuid}%}
            if {locked.%{_uuid}%} <= 0:
                delete {locked.%{_uuid}%}
                send title "" with subtitle "&cYour axe ability has been unlocked." to loop-player for 3 seconds

        if {str3.%{_uuid}%} is set:
            remove 1 from {str3.%{_uuid}%}
            if {str3.%{_uuid}%} <= 0:
                delete {str3.%{_uuid}%}
                send "&4&lSHATTER! &4Your ability has expired. You now deal normal damage again." to loop-player

        if {frozen.%{_uuid}%} is set:
            if {freezecd.%{_uuid}%} is not set:
                remove 1 from {frozen.%{_uuid}%}
            else:
                delete {frozen.%{_uuid}%}
            if {frozen.%{_uuid}%} <= 0:
                delete {frozen.%{_uuid}%}
                set {freezecd.%{_uuid}%} to 10
                send "&bYou are no longer frozen!" to loop-player

        if {freezecd.%{_uuid}%} is set:
            remove 1 from {freezecd.%{_uuid}%}
            if {freezecd.%{_uuid}%} <= 0:
                delete {freezecd.%{_uuid}%}
                send "&bYou can be frozen again now. Watch your step!" to loop-player

        if {noeat.%{_uuid}%} is set:
            remove 1 from {noeat.%{_uuid}%}
            if {noeat.%{_uuid}%} <= 0:
                delete {noeat.%{_uuid}%}
                send "&bYou can eat again now!" to loop-player

        if {utildisable.%{_uuid}%} is set:
            remove 1 from {utildisable.%{_uuid}%}
            if {utildisable.%{_uuid}%} <= 0:
                delete {utildisable.%{_uuid}%}
                set the cooldown of ender pearl for loop-player to 1 seconds
                set the cooldown of cobweb for loop-player to 1 seconds
                send "<##FAC000>🔥: Your utilities are available again!" to loop-player

        if {_heart} is "Vitality":
            apply regeneration 1 to loop-player for 3 seconds
        else if {_heart} is "Berserker":
            if {_souls} < 3:
                apply strength 1 to loop-player for 2 seconds
            else:
                apply strength 2 to loop-player for 2 seconds
        else if {_heart} is "Inferno":
            apply fire resistance 1 to loop-player for 2 seconds
        else if {_heart} is "Thunder":
            if {_souls} < 3:
                apply speed 1 to loop-player for 2 seconds
            else:
                apply speed 2 to loop-player for 2 seconds

        if {_souls} > {@max-souls}:
            set {souls.%{_uuid}%} to {@max-souls}
            send "&c&l! &dYou cannot go above {@max-souls} souls!" to loop-player

command /withdraw []:
    trigger:
        set {_amount} to arg-1 ? 1
        if {_amount} <= 0:
            send "&c👻 Enter a valid number!" to player
            play sound "entity.villager.no" with volume 10 to player
            stop
        if {_amount} > {souls.%player's uuid%}:
            send "&c👻 You do not have enough souls to withdraw that amount!" to player
            play sound "entity.villager.no" with volume 10 to player
            stop
        if player's inventory can hold {_amount} of {aspire::souls}:
            give {_amount} of {aspire::souls} to player
            remove {_amount} from {souls.%player's uuid%}
        else:
            send "&c👻 Free up inventory space before withdrawing souls!" to player
            play sound "entity.villager.no" with volume 10 to player

command /trust  :
    usage: /trust [add/remove] [player]
    permission: axesouls.trust
    trigger:
        if arg-1 is "add":
            if {trusted::%player's uuid%::*} does not contain arg-2's uuid:
                add arg-2's uuid to {trusted::%player's uuid%::*}
                send "<##4CCF30>❤ You trusted <##9FFA8C>%arg-2%<##4CCF30>." to player
                send "<##4CCF30>! This player will no longer be affected by your abilities." to player
            else:
                send "<##DDD023>❤ %arg-2% is already trusted." to player
        else if arg-1 is "remove":
            if {trusted::%player's uuid%::*} contains arg-2's uuid:
                remove arg-2's uuid from {trusted::%player's uuid%::*}
                send "<##BA2727>❤ You removed trust from <##D73E3E>%arg-2%<##BA2727>." to player
            else:
                send "<##BA2727>❤ <##D73E3E>%arg-2% <##BA2727>is not trusted." to player

command /assets:
    permission: op
    trigger:
        loop {aspire::*}:
            give player loop-value

command /rcooldown:
    permission: admin
    trigger:
        delete {locked.%player's uuid%}
        send "&cRemoved your ability lock."

command /test:
    permission: op
    trigger:
        play sound "entity.wither.spawn" at volume 0.7 with pitch 2 to player
Kodari AI
KodariApr 17 at 11:07 am 21,047 (v2)

I’ll read the script first to understand it fully, then make the requested changes.

AxeSoulsSystem
An Axe SMP plugin featuring 5 unique axe types with soul-powered abilities. Players collect souls from kills to unlock powers: Frost freezes enemies, Berserker weakens and locks abilities, Thunder strikes with lightning, Inferno launches fireballs and creates ash veils, and Vitality heals allies. Includes random axe rolling, reroller items, trust system for allies, totem limits based on soul count, and balanced combat mechanics. All abilities work on any axe type.

I’ll update the script with all your requested changes: make abilities work on all axe types, rename the utility-disabling Inferno ability to “Ash Veil”, create a new fireball-launching “Inferno Heart” ability, and balance Thunder to be less overpowered.

Updated AxeSoulsSystem with all requested changes:

✓ Abilities work on ALL axe types (wooden, stone, iron, gold, diamond, netherite) ✓ Renamed Inferno utility-disable from “BURN!” to “ASH VEIL!” (shift + right-click) ✓ Created NEW Inferno Heart ability - launches fireballs where you’re looking (normal right-click) ✓ Balanced Thunder - removed instant damage II effect, reduced bonus damage from 4+ to 2+, reduced mini strike chance from 1/8 to 1/10, mini strikes now only deal +1 damage instead of +2

Place in plugins/Skript/scripts/ and use /sk reload twist to load!

Vikronix

the powers on axes still doesnt work on axes since [02:13:49 INFO]: [Skript] Reloading twist.sk... [02:13:49 INFO]: Line 172: (twist.sk) [02:13:49 INFO]:

Can't compare a slot with 'an axe' [02:13:49 INFO]:

Line: if player's tool is an axe: [02:13:49 INFO]: [02:13:49 INFO]:

Encountered 1 error while reloading twist.sk! (238ms) error comes, also when i right click the souls are being used even when theres no players near me, and we still get those custom swords like inferno axe or wtv when we first join the server or change our axe power. first of all fix the axe power error of not working, then go for free axes coming fix that and then go for the last one

Kodari AI
KodariApr 17 at 11:16 am 11,161 (v2)

I’ll read the file first to identify and fix all three issues.

I can see all three issues. Let me fix them:

  1. Line 172 error: “if player’s tool is an axe” is invalid syntax - need to check the tool name instead

  2. Souls consumed without targets: Soul removal happens before checking if there’s a valid target

  3. Free axes: Function gives axes without removing old ones first

All three issues fixed:

  1. Axe power detection - Changed from invalid is an axe to checking if the tool name contains “Axe”

  2. Souls consumed without targets - Soul removal now happens ONLY after successful target validation for Frost/Thunder abilities

  3. Free axes duplication - Function now removes all existing axes from inventory before giving a new one

The script should now reload without errors, souls won’t be wasted on failed abilities, and players won’t accumulate multiple axes.

Kodari can make mistakes. Review important code before using.
Files
twist.sk
Code
1 481
twist.sk
options:
    prefix: <##8A2BE2>👻 &7|
    max-souls: 5
    min-souls-for-ability: 1
    soul-name: <##8A2BE2>👻 <##9B3EF5>&lS<##AC51FF>&lO<##BD64FF>&lU<##CE77FF>&lL<##DF8AFF>&lS <##B563FF>👻
    reroller-name: <##F13A3A>🎲 <##F44444>R<##F54949>E<##F64D4D>R<##F75252>O<##F95757>L<##FA5C5C>L<##F95656>E<##F75151>R <##F44545>🎲

on load:
    set {aspire::souls} to a player head named "&fSoul" with lore "&7Right-click to collect this soul."
    set {aspire::reroller} to a nether star named "{@reroller-name}" with lore "<##F13A3A>Use this to reroll your current axe if you" and "<##F13A3A>want a different one. Every axe has fair odds. Good luck!" and "&7" and "&7Right-click to use" and "" and "&cWarning: Do not spam-click or stack the reroller."

function giveAxeToPlayer(p: player, type: text):
    loop all items in {_p}'s inventory:
        if name of loop-item contains "Axe":
            remove loop-item from {_p}'s inventory
    if {_type} is "Frost":
        give a netherite axe named "<##A3BDFF>Frost Axe" with lore "&bRight-click to use your ability." and "&7Requires at least 1 soul." to {_p}
    else if {_type} is "Berserker":
        give a netherite axe named "<##A30C13>Berserker Axe" with lore "<##A30C13>Right-click to use your ability." and "&7Requires at least 1 soul." to {_p}
    else if {_type} is "Thunder":
        give a netherite axe named "&2Thunder Axe" with lore "&2Right-click to use your ability." and "&7Requires at least 1 soul." to {_p}
    else if {_type} is "Inferno":
        give a netherite axe named "<##FAC000>Inferno Axe" with lore "<##FAC000>Right-click to use your ability." and "&7Requires at least 1 soul." to {_p}
    else if {_type} is "Vitality":
        give a netherite axe named "<##EC51AF>Vitality Axe" with lore "<##EC51AF>Right-click to use your ability." and "&7Requires at least 1 soul." to {_p}

function rollAxe(p: player):
    set {_number} to a random integer between 1 and 5
    if {_number} is 1:
        set {heart.%{p}'s uuid%} to "Frost"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "&b&l❄" with subtitle "&fYou rolled the <##A3BDFF>&lFROST &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Frost")
    else if {_number} is 2:
        set {heart.%{p}'s uuid%} to "Inferno"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "<##FAC000>&l🔥" with subtitle "&fYou rolled the <##FAC000>&lINFERNO &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Inferno")
    else if {_number} is 3:
        set {heart.%{p}'s uuid%} to "Berserker"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "<##A30C13>&l⚔" with subtitle "&fYou rolled the <##A30C13>&lBERSERKER &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Berserker")
    else if {_number} is 4:
        set {heart.%{p}'s uuid%} to "Thunder"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "&2&l⚡" with subtitle "&fYou rolled the &2&lTHUNDER &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Thunder")
    else if {_number} is 5:
        set {heart.%{p}'s uuid%} to "Vitality"
        send title "&0&l?" with subtitle "&fYou rolled the &7&k[][][] &faxe!" to {_p}
        loop 30 times:
            play sound "BLOCK.NOTE_BLOCK.PLING" to {_p}
            wait 2 ticks
        send title "<##EC51AF>&l❤" with subtitle "&fYou rolled the <##EC51AF>&lVITALITY &fAxe!" to {_p} for 5 seconds
        play sound "entity.generic.explode" with volume 1 to {_p}
        giveAxeToPlayer({_p}, "Vitality")

command /setsouls <offline player> <integer>:
    permission: axesouls.setsouls
    trigger:
        set {souls.%arg-1's uuid%} to arg-2
        send "&dSet %arg-1%'s souls to %arg-2%." to player
        if arg-1 is online:
            send "&dAn admin set your souls to %arg-2%." to arg-1

command /setaxe <offline player> <text>:
    permission: axesouls.setaxe
    trigger:
        if {customaxe.%arg-1's uuid%} is set:
            send "&c&l! &c%arg-1% already has a custom axe. Do /setcustomaxe %arg-1% None." to player
            stop
        set {_target} to arg-1
        set {_type} to arg-2
        if {_type} is "Frost":
            set {heart.%{_target}'s uuid%} to "Frost"
            if {_target} is online:
                set {_p} to {_target}
                send "&dAxeSMP &7| &dAn admin changed your axe to <##A3BDFF>Frost Axe&d." to {_p}
                send "&dAxeSMP &7| <##A3BDFF>Set %{_target}%'s axe to Frost." to player
                set {_p}'s max health to 10
                giveAxeToPlayer({_p}, "Frost")
            else:
                send "&dAxeSMP &7| <##A3BDFF>Set %{_target}%'s axe to Frost &7(offline)<##A3BDFF>." to player
        else if {_type} is "Berserker":
            set {heart.%{_target}'s uuid%} to "Berserker"
            if {_target} is online:
                set {_p} to {_target}
                set {_p}'s max health to 10
                send "&dAxeSMP &7| &dAn admin changed your axe to &4Berserker Axe&d." to {_p}
                send "&dAxeSMP &7| &4Set %{_target}%'s axe to Berserker." to player
                giveAxeToPlayer({_p}, "Berserker")
            else:
                send "&dAxeSMP &7| &4Set %{_target}%'s axe to Berserker &7(offline)&4." to player
        else if {_type} is "Thunder":
            set {heart.%{_target}'s uuid%} to "Thunder"
            if {_target} is online:
                set {_p} to {_target}
                set {_p}'s max health to 10
                send "&dAxeSMP &7| &dAn admin changed your axe to &2Thunder Axe&d." to {_p}
                send "&dAxeSMP &7| &2Set %{_target}%'s axe to Thunder." to player
                giveAxeToPlayer({_p}, "Thunder")
            else:
                send "&dAxeSMP &7| &2Set %{_target}%'s axe to Thunder &7(offline)&2." to player
        else if {_type} is "Inferno":
            set {heart.%{_target}'s uuid%} to "Inferno"
            if {_target} is online:
                set {_p} to {_target}
                set {_p}'s max health to 10
                send "&dAxeSMP &7| &dAn admin changed your axe to &6Inferno Axe&d." to {_p}
                send "&dAxeSMP &7| &6Set %{_target}%'s axe to Inferno." to player
                giveAxeToPlayer({_p}, "Inferno")
            else:
                send "&dAxeSMP &7| &6Set %{_target}%'s axe to Inferno &7(offline)&6." to player
        else if {_type} is "Vitality":
            set {heart.%{_target}'s uuid%} to "Vitality"
            if {_target} is online:
                set {_p} to {_target}
                set {_p}'s max health to 10
                send "&dAxeSMP &7| &dAn admin changed your axe to &dVitality Axe&d." to {_p}
                send "&dAxeSMP &7| &dSet %{_target}%'s axe to Vitality." to player
                giveAxeToPlayer({_p}, "Vitality")
            else:
                send "&dAxeSMP &7| &dSet %{_target}%'s axe to Vitality &7(offline)&d." to player
        else:
            send "&cInvalid axe type. Use: Frost, Berserker, Thunder, Inferno, or Vitality." to player

on join:
    if {souls.%player's uuid%} is not set:
        set {souls.%player's uuid%} to 0
    if {heart.%player's uuid%} is not set:
        send title "" with subtitle "&fRolling your random axe..." to player
        wait 2 seconds
        rollAxe(player)

on right click:
    if player's tool is a player head:
        if name of player's tool is "&fSoul":
            cancel event
            if {souls.%player's uuid%} < {@max-souls}:
                remove 1 of player's tool from player's inventory
                add 1 to {souls.%player's uuid%}
                send "{@prefix} <##8A2BE2>Soul collected. &7(%{souls.%player's uuid%}% / {@max-souls})" to player
                play sound "entity.experience_orb.pickup" with volume 1 to player
            else:
                send "&c👻 You already have the maximum amount of souls!" to player
                play sound "entity.villager.no" to player
            stop

on right click:
    if player's tool is a nether star:
        if name of player's tool contains "REROLLER":
            cancel event
            remove 1 of player's tool from player's inventory
            rollAxe(player)
            stop

on right click:
    if name of player's tool contains "Axe":
        cancel event
        if {locked.%player's uuid%} is set:
            send "<##A30C13>⚔ <#AE1616>Your<#B71C1C> abi<#BF2121>lity<#C82727> has<#D12D2D> bee<#D93232>n lo<#E23838>cked<#D83131> by <#CD2A2A>a be<#C32424>rser<#B81D1D>ker u<#AE1616>ser. &7(%{locked.%player's uuid%}%s)" to player
            stop
        if {souls.%player's uuid%} is not set:
            set {souls.%player's uuid%} to 0
        if {souls.%player's uuid%} < {@min-souls-for-ability}:
            send "&cYou need at least 1 soul to use this ability!" to player
            play sound "entity.villager.no" to player
            stop
        set {_heart} to {heart.%player's uuid%}
        if {_heart} is not set:
            send "&c&l! &cYou do not have an axe type assigned!" to player
            stop
        if {_heart} is "Frost":
            if target entity is a player:
                if {frozen.%target entity's uuid%} is not set:
                    remove 1 from {souls.%player's uuid%}
                    set {_duration} to 5
                    set {noeat.%target entity's uuid%} to {_duration}
                    play sound "block.beacon.activate" at volume 0.7 to player
                    send "&f &f &f &f &b&l❄ FREEZE ❄" to player
                    send "" to player
                    send "&bFreeze your target for 5 seconds." to player
                    send "&bThey also cannot consume anything for %{_duration}% seconds." to player