Unbreakable Items

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

skriptduck

Member
Jan 9, 2024
1
0
1
How would I go about removing the unbreakable flag from a player's armour piece?

Example:
code_language.skript:
if attacker's leggings is unbreakable netherite leggings:
        enchant attacker's leggings with unbreaking 4
        enchant attacker's leggings with mending
        remove unbreakable flag from attacker's leggings
 
How would I go about removing the unbreakable flag from a player's armour piece?

Example:
code_language.skript:
if attacker's leggings is unbreakable netherite leggings:
        enchant attacker's leggings with unbreaking 4
        enchant attacker's leggings with mending
        remove unbreakable flag from attacker's leggings
SkBee has an expression you can use to modify NBT components of items. You could use this to your advantage to clear the component that makes armor unbreakable for the item you want (You'll need to bit of research to set/modify the components and the number identifier for the NBT of an unbreakable item)