.katanqh

make me a minecraft 1.21 custom sword named sᴛʀᴇɴɢᴛʜ ɢʀᴇᴇᴅ (dark red) where u remove 2 of ur hearts making u (8 hearts) and giving u strength 1 for 20 seconds shift right click to activate

Kodari AI
KodariDec 29 at 8:22 am 1,793 (v2)

I’ll create a custom sword Skript that trades health for strength.

StrengthGreedSword
A custom netherite sword that sacrifices health for power. When shift right-clicked, removes 2 hearts from the player and grants Strength 1 for 20 seconds. Features cooldown system to prevent spam and health checks to avoid death. Perfect for high-risk combat scenarios.

Installation Instructions:

  1. Place the file in plugins/Skript/scripts/

  2. Run command: /sk reload strength_greed

  3. Get the sword: /strengthgreed (requires permission strengthgreed.give)

Features:

  • ✓ Dark red name: &4sᴛʀᴇɴɢᴛʜ ɢʀᴇᴇᴅ

  • ✓ Removes 2 hearts (4 HP) on activation

  • ✓ Grants Strength 1 for 20 seconds

  • ✓ Shift + Right Click to activate

  • ✓ 25 second cooldown to prevent spam

  • ✓ Safety check (won’t kill you if below 2 hearts)

  • ✓ Custom sound effect on activation

Usage:

  • Hold the sword and shift + right click

  • You’ll lose 2 hearts and gain Strength 1

  • Use strategically in combat!

Kodari can make mistakes. Review important code before using.
Files
strength_greed.sk
Code
1 40
strength_greed.sk
options:
    prefix: &4[Strength Greed]
    sword-name: &4sᴛʀᴇɴɢᴛʜ ɢʀᴇᴇᴅ
    cooldown: 25

on script load:
    send "{@prefix} &aLoaded successfully!" to console

command /strengthgreed:
    permission: strengthgreed.give
    trigger:
        give player 1 netherite sword named "{@sword-name}" with lore "&7Shift + Right Click to activate" and "&cSacrifice 2 hearts for power"
        send "{@prefix} &aYou received the Strength Greed sword!" to player

on right click:
    if player is sneaking:
        if name of player's tool is "{@sword-name}":
            if {strengthgreed.cooldown::%player%} is set:
                set {_remaining} to difference between {strengthgreed.cooldown::%player%} and now
                send "{@prefix} &cCooldown: %{_remaining}% remaining!" to player
                stop
            
            set {_currenthealth} to player's health
            
            if {_currenthealth} <= 4:
                send "{@prefix} &cNot enough health! You need more than 2 hearts." to player
                stop
            
            set {_newhealth} to {_currenthealth} - 4
            set player's health to {_newhealth}
            
            apply strength 1 to player for 20 seconds
            
            send "{@prefix} &aYou sacrificed 2 hearts for &lSTRENGTH&a!" to player
            play sound "entity.wither.hurt" with volume 1 and pitch 1.5 at player
            
            set {strengthgreed.cooldown::%player%} to {@cooldown} seconds from now
            
            wait {@cooldown} seconds
            delete {strengthgreed.cooldown::%player%}