Mosqueda Ralfh Lauren

now the thing is, after the crossbow ultimate the enchantments doesnt get removed on crossbow, like can u revert the original enchantments after the ultimate? ty

Kodari AI
KodariAug 29 at 10:46 am 3
  • Preserve the crossbow exactly as it was before the ultimate.

  • Apply the temporary ultimate enchantments to a separate item copy.

  • Restore the preserved crossbow when the duration ends.

Restored the original crossbow item after the ultimate, preserving all pre-existing enchantments. Reload with:

/sk reload strengthsmp_jar_kill_logic

Mosqueda Ralfh Lauren

now remove the trident passive and trident ultimate and replace it with this also update the trident passive and ultimate in the strengthinfo gui make sure it still has the same gradient color and font

TRIDENT PASSIVE:

THE TRIDENT TURNS INTO A SWORD (make sure it has the same attribute as the sword cooldown swing and make sure it only applies on the trident) THAT ALSO DISABLES SHIELDS

TRIDENT ULTIMATE:

SUMMON A THUNDER STORM WHERE EVERY CRIT SUMMONS LIGHTNING AND DOES EXTRA DAMAGE (make sure to change the weather to thunderstorm and end it after the duration)

Kodari AI
KodariAug 29 at 10:53 am 12
  1. Replace the trident passive with trident-only sword combat behavior and shield disabling.

  2. Replace the trident ultimate with its timed thunderstorm, critical-lightning, and bonus-damage effect.

  3. Update the trident passive and ultimate text in the StrengthInfo GUI while preserving its existing gradient/font styling.

  1. Trident passive: replaced the lightning/fire combo with sword-speed melee attacks that disable a blocking player’s shield.

  2. Trident ultimate: replaced the water-wave with a timed thunderstorm; critical trident hits now strike lightning and deal 50% extra damage.

  3. StrengthInfo GUI: updated the trident lore with the existing blue gradient and small-caps font.

Reload the script:

/sk reload strengthsmp_jar_kill_logic

Mosqueda Ralfh Lauren

[10:54:38 INFO]: Line 1100: (strengthsmp_jar_kill_logic.sk) [10:54:38 INFO]:

Can't understand this condition/effect: disable the shield of victim for 5 seconds [10:54:38 INFO]:

Line: disable the shield of victim for 5 seconds

Kodari AI
KodariAug 29 at 10:55 am 2

Replaced the unsupported shield-disable effect with a vanilla shield item cooldown for 5 seconds.

/sk reload strengthsmp_jar_kill_logic

Mosqueda Ralfh Lauren

now make the rain and thunder for like 30 seconds before it clears up

Kodari AI
KodariAug 29 at 11:03 am 1

Set the trident thunderstorm duration to 30 seconds before it clears.

/sk reload strengthsmp_jar_kill_logic

Mosqueda Ralfh Lauren

also the trident uhm its not a sword cooldown and it disables the shield but the player still holding it it doesnt really disables it

Kodari AI
KodariAug 29 at 11:08 am 3

Made the trident’s held attack speed match a normal sword (1.6), restoring to 4 when it is no longer held.

Shield blocking is now actually disabled: the victim’s offhand shield is removed for 5 seconds, then restored, with the shield cooldown applied.

/sk reload strengthsmp_jar_kill_logic

Kodari can make mistakes. Review important code before using.
Files
strengthsmp_jar_kill_logic (12).sk
Code
1 1,537
strengthsmp_jar_kill_logic (12).sk
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

# CONFIG
options:
    max_strength: 5 # Maximum strength
    strength_kill_cooldown: 30 minutes # Prevents farming the same player for strength
    max_strength_damage_bonus: 1.60 # HARD CAP: maximum extra damage from Strength
    def_strength: 2 # Default strength on join
    min_strength: 1 # Minimum strength
    minimum_strength_to_activate_abillity: 5
    minimum_strength_to_have_passive: 3
    show_duration_in_actionbar: true
    show_ultimate_indicator_in_actionbar: false # Show weapon ultimate charge/Ready indicators in the action bar
    strength_craft_limit: 3 # Maximum Strength items each player can craft; 0 = unlimited
    stun_axe_duration: 1
    sword_ultimate_multiplier: 1.5
    mace_cooldown: 180 # 0 = no cooldown
    no_strength: true
    deal_less_damage: true # Less damage if strength is negative (very unbalanced)
    bow_beam_damage: 3 # Power I = 3 hearts per beam
    bow_beam_max_damage: 6 # Power III+ = 5 hearts per beam; hard cap
    bow_beam_range: 30
    bow_beam_width: 2.0
    bow_recoil_force: 0.2
    
# COOLDOWN
    sword_cooldown: 60
    axe_cooldown: 120
    trident_cooldown: 60
    shield_cooldown: 60
    bow_cooldown: 60
    crossbow_cooldown: 60

# DURATION
    sword_duration: 15
    axe_duration: 5
    trident_duration: 30
    shield_duration: 15
    crossbow_duration: 15
    bow_beams: 3 # The amount of how many beams it will shoot

# COUNTERSREADY
    sword_ultimate: 5
    axe_ultimate: 7
    axe_ultimate_damage_multiplier: 0.65 # Stores 65% of each hit's damage
    axe_ultimate_max_damage: 15 # Maximum stored damage (15 hearts)
    trident_ultimate: 3
    crossbow_ultimate_charge: 5
    bow_ultimate: 10
    
# COUNTERSPASSIVE
    sword_passive: 3
    axe_passive: 5
    trident_passive: 2
    crossbow_ignite_chance: 33
    bow_passive: 3

#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

# CODE

# ITEMS AND REST
on load:
    if {strengthKillCooldownTime} is not set:
        set {strengthKillCooldownTime} to {@strength_kill_cooldown}
    set {-strength.strengthsmp} to nautilus shell named "&x&F&F&0&0&0&0&ls&x&E&3&0&0&0&0&lᴛ&x&C&7&0&0&0&0&lʀ&x&A&B&0&0&0&0&lᴇ&x&8&F&0&0&0&0&lɴ&x&8&F&0&0&0&0&lɢ&x&8&F&0&0&0&0&lᴛ&x&8&F&0&0&0&0&lʜ" with lore "&fʀɪɢʜᴛ ᴄʟɪᴄᴋ ᴛᴏ ɢᴀɪɴ &4+1&f sᴛʀᴇɴɢᴛʜ" with custom model data 12345
    set {-reroll.strengthsmp} to nautilus shell named "&x&F&F&D&2&5&C&lʀ&x&F&6&C&7&4&D&lᴇ&x&E&C&B&C&3&D&lʀ&x&E&3&B&1&2&E&lᴏ&x&D&9&A&6&1&F&lʟ&x&D&0&9&B&0&F&lʟ &x&C&6&9&0&0&0&lᴡ&x&C&6&9&0&0&0&lᴇ&x&C&6&9&0&0&0&lᴀ&x&C&6&9&0&0&0&lᴘ&x&C&6&9&0&0&0&lᴏ&x&C&6&9&0&0&0&lɴ" with lore "&fʀɪɢʜᴛ ᴄʟɪᴄᴋ ᴛᴏ ʀᴇʀᴏʟʟ ʏᴏᴜʀ ᴡᴇᴀᴘᴏɴ" with custom model data 12346
    set {-crossbow.strengthsmp} to crossbow named "&x&F&4&F&F&8&9&l➶ &x&F&8&F&9&6&9&lᴄ&x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&x&C&8&3&3&3&3&lᴀ&x&B&6&2&6&2&6&ls&x&A&5&1&8&1&8&ls&x&A&5&1&8&1&8&lɪ&x&A&5&1&8&1&8&lᴠ&x&A&5&1&8&1&8&lᴇ&x&A&5&1&8&1&8&l:", "&c🠺 &fᴀғᴛᴇʀ ʟᴀɴᴅɪɴɢ ᴀ 3-ʜɪᴛ ᴄᴏᴍʙᴏ ᴏɴ ᴀ ᴘʟᴀʏᴇʀ, ʏᴏᴜʀ ᴀᴛᴛᴀᴄᴋs ʙᴇᴄᴏᴍᴇ ᴄʀɪᴛɪᴄᴀʟ ʜɪᴛs", "&c🠺 &fᴄʀɪᴛɪᴄᴀʟ ʜɪᴛs ʟᴀsᴛ ᴜɴᴛɪʟ ʏᴏᴜ ᴍɪss", "", "&x&F&C&5&C&5&C&l🗡 &x&D&F&4&5&4&5&lᴜ&x&D&1&3&A&3&A&lʟ&x&C&2&2&F&2&F&lᴛ&x&B&4&2&3&2&3&lɪ&x&A&5&1&8&1&8&lᴍ&x&A&5&1&8&1&8&lᴀ&x&A&5&1&8&1&8&lᴛ&x&A&5&1&8&1&8&lᴇ&x&A&5&1&8&1&8&l:", "&c🠺 &fɢᴇᴛ ᴀ {@sword_ultimate} ʜɪᴛ ᴄᴏᴍʙᴏ ᴛᴏ ᴄʜᴀʀɢᴇ" and "&c🠺 &fᴅᴜᴀʟ ᴡɪᴇʟᴅ ʏᴏᴜʀ sᴡᴏʀᴅ ᴀɴᴅ ᴀᴛᴛᴀᴄᴋ 50%% ғᴀsᴛᴇʀ"
    set {-trident.strengthsmp} to trident named "&x&5&C&B&5&F&C&l🔱 &x&4&1&8&C&D&9&lᴛ&x&3&3&7&8&C&8&lʀ&x&2&6&6&3&B&6&lɪ&x&1&8&4&F&A&5&lᴅ&x&1&8&4&F&A&5&lᴇ&x&1&8&4&F&A&5&lɴ&x&1&8&4&F&A&5&lᴛ" with lore "&x&5&C&B&5&F&C&l🔱 &x&4&1&8&C&D&9&lᴘ&x&3&3&7&8&C&8&lᴀ&x&2&6&6&3&B&6&ls&x&1&8&4&F&A&5&ls&x&1&8&4&F&A&5&lɪ&x&1&8&4&F&A&5&lᴠ&x&1&8&4&F&A&5&lᴇ&x&1&8&4&F&A&5&l:", "&b🠺 &fᴀᴛᴛᴀᴄᴋ ʟɪᴋᴇ ᴀ sᴡᴏʀᴅ ᴀɴᴅ ᴅɪsᴀʙʟᴇ sʜɪᴇʟᴅs", "", "&x&5&C&B&5&F&C&l🔱 &x&4&5&9&3&D&F&lᴜ&x&3&A&8&2&D&1&lʟ&x&2&F&7&1&C&2&lᴛ&x&2&3&6&0&B&4&lɪ&x&1&8&4&F&A&5&lᴍ&x&1&8&4&F&A&5&lᴀ&x&1&8&4&F&A&5&lᴛ&x&1&8&4&F&A&5&lᴇ&x&1&8&4&F&A&5&l:", "&b🠺 &fsᴜᴍᴍᴏɴ ᴀ ᴛʜᴜɴᴅᴇʀsᴛᴏʀᴍ ғᴏʀ {@trident_duration}s" and "&b🠺 &fᴄʀɪᴛs sᴜᴍᴍᴏɴ ʟɪɢʜᴛɴɪɴɢ ᴀɴᴅ ᴅᴇᴀʟ ᴇxᴛʀᴀ ᴅᴀᴍᴀɢᴇ"
    set {-shield.strengthsmp} to shield named "&x&8&C&F&C&5&C&l🛡 &x&5&C&D&1&3&A&ls&x&4&3&B&B&2&9&lʜ&x&2&B&A&5&1&8&lɪ&x&2&B&A&5&1&8&lᴇ&x&2&B&A&5&1&8&lʟ&x&2&B&A&5&1&8&lᴅ" with lore "&x&8&C&F&C&5&C&l🛡 &x&6&5&D&9&4&1&lᴘ&x&5&2&C&8&3&3&lᴀ&x&3&E&B&6&2&6&ls&x&2&B&A&5&1&8&ls&x&2&B&A&5&1&8&lɪ&x&2&B&A&5&1&8&lᴠ&x&2&B&A&5&1&8&lᴇ&x&2&B&A&5&1&8&l:", "&a🠺 &fʏᴏᴜ ᴛᴀᴋᴇ 25%% ʟᴇss ᴅᴀᴍᴀɢᴇ", "&a🠺 &fғᴏʀ 5s ᴡʜᴇɴ ʏᴏᴜʀ sʜɪᴇʟᴅ ɪs ᴅɪsᴀʙʟᴇᴅ", "", "&x&8&C&F&C&5&C&l🛡 &x&6&C&D&F&4&5&lᴜ&x&5&C&D&1&3&A&lʟ&x&4&B&C&2&2&F&lᴛ&x&3&B&B&4&2&3&lɪ&x&2&B&A&5&1&8&lᴍ&x&2&B&A&5&1&8&lᴀ&x&2&B&A&5&1&8&lᴛ&x&2&B&A&5&1&8&lᴇ&x&2&B&A&5&1&8&l:" and "&a🠺 &fʙᴇᴄᴏᴍᴇ ɪᴍᴍᴏʀᴛᴀʟ ғᴏʀ 15s"
    set {-axe.strengthsmp} to netherite axe named "&x&9&F&9&F&9&F&l🪓 &x&6&E&6&E&6&E&lᴀ&x&5&5&5&5&5&5&lx&x&5&5&5&5&5&5&lᴇ" with lore "&x&9&F&9&F&9&F&l🪓 &x&8&1&8&1&8&1&lᴘ&x&7&3&7&3&7&3&lᴀ&x&6&4&6&4&6&4&ls&x&5&5&5&5&5&5&ls&x&5&5&5&5&5&5&lɪ&x&5&5&5&5&5&5&lᴠ&x&5&5&5&5&5&5&lᴇ&x&5&5&5&5&5&5&l:", "&7🠺 &fɢᴇᴛ {@axe_passive} ᴄʀɪᴛs ᴛᴏ sᴛᴜɴ ʏᴏᴜʀ ᴇɴᴇᴍʏ ғᴏʀ 1s", "", "&x&9&F&9&F&9&F&l🪓 &x&8&6&8&6&8&6&lᴜ&x&7&A&7&A&7&A&lʟ&x&6&E&6&E&6&E&lᴛ&x&6&1&6&1&6&1&lɪ&x&5&5&5&5&5&5&lᴍ&x&5&5&5&5&5&5&lᴀ&x&5&5&5&5&5&5&lᴛ&x&5&5&5&5&5&5&lᴇ&x&5&5&5&5&5&5&l:", "&7🠺 &fɢᴇᴛ {@axe_ultimate} ᴄʀɪᴛs ᴛᴏ ᴄʜᴀʀɢᴇ", "&7🠺 &fᴀʟʟ ᴏғ ʏᴏᴜʀ ɴᴇxᴛ ᴀᴛᴛᴀᴄᴋs ᴡɪʟʟ ʙᴇ sᴛᴏʀᴇᴅ" and "&7🠺 &fᴀɴᴅ ʀᴇʟᴇᴀsᴇᴅ ᴏɴᴛᴏ ʏᴏᴜʀ ᴇɴᴇᴍʏ"
    set {-bow.strengthsmp} to bow named "&x&F&F&A&B&2&9&l🏹 &x&E&2&7&E&0&E&lʙ&x&D&4&6&7&0&0&lᴏ&x&D&4&6&7&0&0&lᴡ" with lore "&x&F&F&A&B&2&9&l🏹 &x&E&E&9&0&1&9&lᴘ&x&E&5&8&2&1&0&lᴀ&x&D&D&7&5&0&8&ls&x&D&4&6&7&0&0&ls&x&D&4&6&7&0&0&lɪ&x&D&4&6&7&0&0&lᴠ&x&D&4&6&7&0&0&lᴇ&x&D&4&6&7&0&0&l:", "&6🠺 &fᴇᴠᴇʀʏ ᴛʜɪʀᴅ sʜᴏᴛ ᴅᴏᴇs ᴅᴏᴜʙʟᴇ ᴅᴀᴍᴀɢᴇ", "", "&x&F&F&A&B&2&9&l🏹 &x&F&1&9&4&1&B&lᴜ&x&E&A&8&9&1&5&lʟ&x&E&2&7&E&0&E&lᴛ&x&D&B&7&2&0&7&lɪ&x&D&4&6&7&0&0&lᴍ&x&D&4&6&7&0&0&lᴀ&x&D&4&6&7&0&0&lᴛ&x&D&4&6&7&0&0&lᴇ&x&D&4&6&7&0&0&l:", "&6🠺 &fɢᴇᴛ {@bow_ultimate} ʜɪᴛs ᴛᴏ ᴄʜᴀʀɢᴇ" and "&6🠺 &fsʜᴏᴏᴛ 3 ᴘᴏᴡᴇʀғᴜʟ ʙᴇᴀᴍs"
    register new shaped recipe for {-strength.strengthsmp} using enchanted golden apple, netherite ingot, enchanted golden apple, netherite ingot, nether star, netherite ingot, enchanted golden apple, netherite ingot and enchanted golden apple with id "strength"
    register new shaped recipe for {-reroll.strengthsmp} using iron block, gold block, iron block, gold block, diamond block, gold block, iron block, gold block and iron block with id "reroll_book"

on join:
    # Clean up the base value once when the player joins.
    set player's attack speed attribute to 4
    delete {-swordSpeedState::%player's uuid%}
    if {strength::%player's uuid%} is not set:
        set {strength::%player's uuid%} to {@def_strength}
        RandomWeapon(player)
    loop "sword", "axe", "trident", "shield", "bow" and "crossbow":
        if {strengthCooldown::%player's uuid%::%loop-value%} is not set:
            set {strengthCooldown::%player's uuid%::%loop-value%} to "Ready"
    delete {-shieldReadyNotified::%player's uuid%}
    if {-swordAbility::%player's uuid%} is not set:
        if {offhandItem::%player's uuid%} is set:
            set the off hand item to {offhandItem::%player's uuid%}
            delete {offhandItem::%player's uuid%}

# FUNCTIONS

function RandomWeapon(p: player):
    set {_uuid} to {_p}'s uuid
    set {_weapons::*} to "trident", "sword", "axe", "shield", "bow" and "crossbow"
    set {_ru} to random integer between 1 and 6
    while {_weapons::%{_ru}%} is {weapon::%{_uuid}%}:
        set {_ru} to random integer between 1 and 6
    set {weapon::%{_uuid}%} to {_weapons::%{_ru}%}
    send "&x&F&F&D&2&5&C&lʏ&x&F&A&C&C&5&4&lᴏ&x&F&5&C&6&4&B&lᴜ&x&E&F&C&0&4&3&lʀ &x&E&5&B&4&3&2&lɴ&x&E&0&A&E&2&A&lᴇ&x&D&B&A&8&2&1&lᴡ &x&D&0&9&C&1&1&lᴡ&x&C&B&9&6&0&8&lᴇ&x&C&6&9&0&0&0&lᴀ&x&C&6&9&0&0&0&lᴘ&x&C&6&9&0&0&0&lᴏ&x&C&6&9&0&0&0&lɴ &x&C&6&9&0&0&0&lᴛ&x&C&6&9&0&0&0&lʏ&x&C&6&9&0&0&0&lᴘ&x&C&6&9&0&0&0&lᴇ &x&C&6&9&0&0&0&lɪ&x&C&6&9&0&0&0&ls %getWeaponDisplay({weapon::%{_uuid}%})%" to {_p}
    play sound "entity.experience_orb.pickup" to {_p}

function invalid_command_message_strengthsmp(p: player):
    send "&cUsage:" to {_p}
    send "&c/strength - Check your strength" to {_p}
    send "&c/withdraw - Withdraw your strength" to {_p}
    send "&c/strengthsmp set <player> <amount> - Set player's strength" to {_p}
    send "&c/strengthsmp reroll <player> - Reroll player's weapon" to {_p}
    send "&c/strengthsmp setweapon <weapon> <player> - Set player's weapon" to {_p}
    send "&c/strengthsmp reload - Reload config" to {_p}

function cap_strength(p: player):
    set {_uuid} to {_p}'s uuid
    if {strength::%{_uuid}%} > {@max_strength}:
        set {strength::%{_uuid}%} to {@max_strength}

function update_strength_message(p: player):
    set {_uuid} to {_p}'s uuid
    if {strength::%{_uuid}%} > 0:
        send "&x&F&F&0&0&0&0&lʏ&x&F&6&0&0&0&0&lᴏ&x&E&C&0&0&0&0&lᴜ&x&E&3&0&0&0&0&lʀ &x&D&0&0&0&0&0&lɴ&x&C&7&0&0&0&0&lᴇ&x&B&E&0&0&0&0&lᴡ &x&A&B&0&0&0&0&ls&x&A&2&0&0&0&0&lᴛ&x&9&8&0&0&0&0&lʀ&x&8&F&0&0&0&0&lᴇ&x&8&F&0&0&0&0&lɴ&x&8&F&0&0&0&0&lɢ&x&8&F&0&0&0&0&lᴛ&x&8&F&0&0&0&0&lʜ &x&8&F&0&0&0&0&lɪ&x&8&F&0&0&0&0&ls &x&8&F&0&0&0&0&l(&x&8&F&0&0&0&0&l+%{strength::%{_uuid}%}%&x&8&F&0&0&0&0&l)" to {_p}
    else if {strength::%{_uuid}%} <= 0:
        send "&x&F&F&0&0&0&0&lʏ&x&F&5&0&0&0&0&lᴏ&x&E&B&0&0&0&0&lᴜ&x&E&0&0&0&0&0&lʀ &x&C&C&0&0&0&0&lɴ&x&C&2&0&0&0&0&lᴇ&x&B&8&0&0&0&0&lᴡ &x&A&3&0&0&0&0&ls&x&9&9&0&0&0&0&lᴛ&x&8&F&0&0&0&0&lʀ&x&8&F&0&0&0&0&lᴇ&x&8&F&0&0&0&0&lɴ&x&8&F&0&0&0&0&lɢ&x&8&F&0&0&0&0&lᴛ&x&8&F&0&0&0&0&lʜ &x&8&F&0&0&0&0&lɪ&x&8&F&0&0&0&0&ls &x&8&F&0&0&0&0&l(%{strength::%{_uuid}%}%&x&8&F&0&0&0&0&l)" to {_p}

function getWeaponDisplay(w: text) :: text:
    if {_w} is "trident":
        return "&x&5&C&B&5&F&C&l🔱 &x&4&1&8&C&D&9&lᴛ&x&3&3&7&8&C&8&lʀ&x&2&6&6&3&B&6&lɪ&x&1&8&4&F&A&5&lᴅ&x&1&8&4&F&A&5&lᴇ&x&1&8&4&F&A&5&lɴ&x&1&8&4&F&A&5&lᴛ"
    else if {_w} is "sword":
        return "&x&F&C&5&C&5&C&l🗡 &x&D&1&3&A&3&A&ls&x&B&B&2&9&2&9&lᴡ&x&A&5&1&8&1&8&lᴏ&x&A&5&1&8&1&8&lʀ&x&A&5&1&8&1&8&lᴅ"
    else if {_w} is "axe":
        return "&x&9&F&9&F&9&F&l🪓 &x&6&E&6&E&6&E&lᴀ&x&5&5&5&5&5&5&lx&x&5&5&5&5&5&5&lᴇ"
    else if {_w} is "shield":
        return "&x&8&C&F&C&5&C&l🛡 &x&5&C&D&1&3&A&ls&x&4&3&B&B&2&9&lʜ&x&2&B&A&5&1&8&lɪ&x&2&B&A&5&1&8&lᴇ&x&2&B&A&5&1&8&lʟ&x&2&B&A&5&1&8&lᴅ"
    else if {_w} is "bow":
        return "&x&F&F&A&B&2&9&l🏹 &x&E&2&7&E&0&E&lʙ&x&D&4&6&7&0&0&lᴏ&x&D&4&6&7&0&0&lᴡ"
    else if {_w} is "crossbow":
        return "&x&F&4&F&F&8&9&l➶ &x&F&8&F&9&6&9&lᴄ&x&F&B&F&7&5&9&lʀ&x&F&D&F&4&4&9&lᴏ&x&F&F&F&1&3&9&ls&x&F&F&F&1&3&9&ls&x&F&F&F&1&3&9&lʙ&x&F&F&F&1&3&9&lᴏ&x&F&F&F&1&3&9&lᴡ"

function getCooldownMessage(w: text) :: text:
    if {_w} is "sword":
        return "&x&F&C&5&C&5&C&l🗡 &x&E&3&4&9&4&9&lᴏ&x&D&7&3&F&3&F&lғ&x&C&A&3&5&3&5&lғ &x&B&1&2&2&2&2&lᴄ&x&A&5&1&8&1&8&lᴏ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lᴏ&x&D&4&6&7&0&0&lʟ&x&D&4&6&7&0&0&lᴅ&x&D&4&6&7&0&0&lᴏ&x&D&4&6&7&0&0&lᴡ&x&D&4&6&7&0&0&lɴ"
    else if {_w} is "crossbow":
        return "&x&F&4&F&F&8&9&l➶ &x&F&8&F&9&6&9&lᴏ&x&F&B&F&7&5&9&lғ&x&F&D&F&4&4&9&lғ &x&F&F&F&1&3&9&lᴄ&x&F&F&F&1&3&9&lᴏ&x&F&F&F&1&3&9&lᴏ&x&F&F&F&1&3&9&lʟ&x&F&F&F&1&3&9&lᴅ&x&F&F&F&1&3&9&lᴏ&x&F&F&F&1&3&9&lᴡ&x&F&F&F&1&3&9&lɴ"

function getActionBarMessage(w: text, duration: number) :: text:
    if {_w} is "sword":
        return "&c🗡 %{_duration}%s"
    else if {_w} is "trident":
        return "&9🔱 %{_duration}%s"
    else if {_w} is "axe":
        return "&8🪓 %{_duration}%s"
    else if {_w} is "shield":
        return "&2🛡 %{_duration}%s"
    else if {_w} is "bow":
        return "&6🏹 %{_duration}%s"
    else if {_w} is "crossbow":
        return "&e➶ %{_duration}%s"

function getCooldownActionBarMessage(w: text, duration: number) :: text:
    if {_w} is "sword":
        return "&c🗡 %{_duration}%s"
    else if {_w} is "trident":
        return "&9🔱 %{_duration}%s"
    else if {_w} is "axe":
        return "&8🪓 %{_duration}%s"
    else if {_w} is "shield":
        return "&2🛡 %{_duration}%s"
    else if {_w} is "bow":
        return "&6🏹 %{_duration}%s"
    else if {_w} is "crossbow":
        return "&e➶ %{_duration}%s"

function getNotReadyMessage(w: text) :: text:
    if {_w} is "sword":
        return "&x&F&C&5&C&5&C&l🗡 &x&E&3&4&9&4&9&lɴ&x&D&7&3&F&3&F&lᴏ&x&C&A&3&5&3&5&lᴛ &x&B&1&2&2&2&2&lʀ&x&A&5&1&8&1&8&lᴇ&x&A&5&1&8&1&8&lᴀ&x&A&5&1&8&1&8&lᴅ&x&A&5&1&8&1&8&lʏ&x&A&5&1&8&1&8&l!"
    else if {_w} is "trident":
        return "&x&5&C&B&5&F&C&l🔱 &x&4&5&9&3&D&F&lɴ&x&3&A&8&2&D&1&lᴏ&x&2&F&7&1&C&2&lᴛ &x&1&8&4&F&A&5&lʀ&x&1&8&4&F&A&5&lᴇ&x&1&8&4&F&A&5&lᴀ&x&1&8&4&F&A&5&lᴅ&x&1&8&4&F&A&5&lʏ&x&1&8&4&F&A&5&l!"
    else if {_w} is "axe":
        return "&x&9&F&9&F&9&F&l🪓 &x&8&6&8&6&8&6&lɴ&x&7&A&7&A&7&A&lᴏ&x&6&E&6&E&6&E&lᴛ &x&5&5&5&5&5&5&lʀ&x&5&5&5&5&5&5&lᴇ&x&5&5&5&5&5&5&lᴀ&x&5&5&5&5&5&5&lᴅ&x&5&5&5&5&5&5&lʏ&x&5&5&5&5&5&5&l!"
    else if {_w} is "shield":
        return "&x&8&C&F&C&5&C&l🛡 &x&6&C&D&F&4&5&lɴ&x&5&C&D&1&3&A&lᴏ&x&4&B&C&2&2&F&lᴛ &x&2&B&A&5&1&8&lʀ&x&2&B&A&5&1&8&lᴇ&x&2&B&A&5&1&8&lᴀ&x&2&B&A&5&1&8&lᴅ&x&2&B&A&5&1&8&lʏ&x&2&B&A&5&1&8&l!"
    else if {_w} is "bow":
        return "&x&F&F&A&B&2&9&l🏹 &x&F&1&9&4&1&B&lɴ&x&E&A&8&9&1&5&lᴏ&x&E&2&7&E&0&E&lᴛ &x&D&4&6&7&0&0&lʀ&x&D&4&6&7&0&0&lᴇ&x&D&4&6&7&0&0&lᴀ&x&D&4&6&7&0&0&lᴅ&x&D&4&6&7&0&0&lʏ&x&D&4&6&7&0&0&l!"
    else if {_w} is "crossbow":
        return "&x&F&4&F&F&8&9&l➶ &x&F&8&F&9&6&9&lɴ&x&F&B&F&7&5&9&lᴏ&x&F&D&F&4&4&9&lᴛ &x&F&F&F&1&3&9&lʀ&x&F&F&F&1&3&9&lᴇ&x&F&F&F&1&3&9&lᴀ&x&F&F&F&1&3&9&lᴅ&x&F&F&F&1&3&9&lʏ&x&F&F&F&1&3&9&l!"

function strengthKillCooldownGUI(p: player):
    set {_gui} to new chest inventory named "&8sᴛʀᴇɴɢᴛʜ ᴋɪʟʟ ᴄᴏᴏʟᴅᴏᴡɴ"

    set slot 4 of {_gui} to clock named "&x&F&F&D&2&5&C&ls&x&F&1&C&2&4&5&lᴛ&x&E&3&B&1&2&E&lʀ&x&D&4&A&1&1&7&lᴇ&x&C&6&9&0&0&0&lɴ&x&C&6&9&0&0&0&lɢ&x&C&6&9&0&0&0&lᴛ&x&C&6&9&0&0&0&lʜ &x&C&6&9&0&0&0&lᴋ&x&C&6&9&0&0&0&lɪ&x&C&6&9&0&0&0&lʟ&x&C&6&9&0&0&0&lʟ &x&C&6&9&0&0&0&lᴄ&x&C&6&9&0&0&0&lᴏ&x&C&6&9&0&0&0&lᴏ&x&C&6&9&0&0&0&lʟ&x&C&6&9&0&0&0&lᴅ&x&C&6&9&0&0&0&lᴏ&x&C&6&9&0&0&0&lᴡ&x&C&6&9&0&0&0&lɴ" with lore "&7Current: &f%{strengthKillCooldownTime}%", "&7Maximum: &f30 minutes"