D

Make me a script that gives me an item like a talisman that gives the effect of strength 2 regeneration 3 resistance 2 for Minecraft skript .sk

Kodari AI
KodariSep 1 at 1:38 pm 1
TalismanOfPower
Creates a craftable talisman item in Minecraft Skript that grants the player Strength 2, Regeneration 3, and Resistance 2 effects while held in the main hand. Includes custom crafting recipe, item lore, and effect application/removal logic based on item presence in hand.

Place the file in plugins/Skript/scripts/, then run:

Plain Text
/sk reload talisman

Players with the talisman.give permission can use /talisman.

D

And to give it as it is in the inventory

Kodari AI
KodariSep 1 at 1:40 pm 1

Updated so the talisman grants its effects while anywhere in the player’s inventory, not only when held. /talisman gives it directly to the inventory.

Place it in plugins/Skript/scripts/ and reload it with:

Plain Text
/sk reload talisman
Kodari can make mistakes. Review important code before using.
Files
talisman.sk
Code
1 25
talisman.sk
options:
    talisman-name: &dPower Talisman

command /talisman:
    permission: talisman.give
    permission message: &cYou do not have permission to use this command.
    trigger:
        set {_talisman} to nether star named "{@talisman-name}"
        set lore of {_talisman} to "&7Strength II", "&7Regeneration III", "&7Resistance II"
        give player {_talisman}
        send "&aYou received the {@talisman-name}&a!" to player

every 2 seconds:
    loop all players:
        set {_hasTalisman} to false

        loop all items in loop-player's inventory:
            if loop-item is nether star:
                if name of loop-item is "{@talisman-name}":
                    set {_hasTalisman} to true

        if {_hasTalisman} is true:
            apply strength 2 to loop-player for 3 seconds
            apply regeneration 3 to loop-player for 3 seconds
            apply resistance 2 to loop-player for 3 seconds