Data Packs Tool

Trigger Unbreakable - MGG

    • 2,329 views • 1 today
    • 304 downloads • 0 today
    • 4
    • 4
    • 2
    MrGreenGames
    Level 45 : Master Modder
    25
    This is a fairly simple data pack that includes a single trigger function. This trigger will allow you to make any item that you are holding in your main hand "unbreakable". This means that the item will no longer take any durability damage when being used. All you need to do is run the command in chat /trigger unbreakable while holding a tool or a piece of armor in your hand.

    All items that are made unbreakable will retain their correct naming and enchantments so this is safe to use on gear that you have already enchanted.


    Tested on version 1.21.5 Java

    **Reposting this pack to other sites is not allowed.
    Please respect my work and use the original
    download link if you wish to share this pack.**
    CompatibilityMinecraft 1.16
    toMinecraft 1.21
    Tags

      Have something to say?

    bobthebonkers
    05/28/2025 8:57 am
    Level 5 : Apprentice Miner
    can i get this but op only?
    1
    Xwicked_knightX
    10/28/2025 3:32 pm
    Level 1 : New Miner
    If you haven't found a solution for this, and aren't afraid to make a single edit, you can go into "trigger-unbreakable\data\mgg\function\loop.mcfunction" and edit "scoreboard players enable @a unbreakable" replacing the "@a" with the op player name. Example: scoreboard players enable Xwicked_knightX unbreakable
    1

    Welcome