Custom Durability Datapack- Turn ANY item into a weapon with its own durability!

    • 13 diamonds
    • 10,925 views, 37 today
    • 1,311 downloads, 3 today
    • 21 comments
    • 13 favorites
    • 13
    • 13
    • 21
    avatar MukiTanuki
    Level 41 : Master Miner
    13
    A 1.13 resource pack and datapack that allow you to give custom durability to any item!

    INSTALLATION:
    Unzip the provided zip folder
    Datapack:
    Go to "minecraft/saves/" and the 1.13 world you want to install the datapack on. Go to the "datapack" folder and place the custom_durability_datapack zip file into it.
    Resource pack:
    place the custom_durability_resourcepack into your "resourcepacks" folder and/or "server-resource-packs" respectively.

    Instructions:

    This datapack and resource pack allows you to give custom durability to any item! Make custom weapons and armor using commands and any durability values you want!

    How to use (all are case sensitive!):

    Give custom item tag:

    customWeapon:1b
    for weapons

    customHelmet:1b
    for helmets


    customChestplate:1b
    for chestplates


    customLeggings:1b
    for leggings


    customBoots:1b
    for boots

    Give the item custom attributes:


    Must be the first attribute on the item:
    AttributeName:"custom.durability"

    Must be the second attribute on the item:
    AttributeName:"custom.maxDurability"

    Extras:

    If you set the operation tag on the "custom.maxDurability" attribute to:

    Operation:1

    The datapack will automatically set the maxDurability attribute amount to the same value as the regular durability amount when it enters a player's inventory.


    If you set the operation tag on the "custom.maxDurability" attribute to:

    Operation:2

    The datapack will automatically set the maxDurability attribute amount to the a value between regular durability amount and the current amount of maxDurability attribute when it enters a player's inventory.
    CompatibilityMinecraft 1.13
    Tags

    1
    02/06/2020 9:26 pm
    Level 1 : New Miner
    goody2shoos
    How would I change the durability of crafted tools in survival? For example, I'd like to make all wooden pickaxes only be able to mine three blocks before they break.
    2
    02/13/2020 12:11 am
    Level 41 : Master Miner
    MukiTanuki
    you'd have to make a command or advancement that would replace them if they were crafted.
    1
    12/19/2019 12:14 pm
    Level 1 : New Miner
    TTDM
    2 things: (1) please update to 1.14 or 1.15. (2) can you make unbreakable armor with infinite durability?
    1
    12/20/2019 11:56 pm
    Level 41 : Master Miner
    MukiTanuki
    It works for 1.14 still! Unfortunately I can't update to 1.15 yet because of changes to commands. (I hope to update to 1.16 when snapshots start coming out, though.)

    If you want an unbreakable item just give it the Unbreakable:1b nbt tag when spawning in the item.
    1
    11/10/2019 10:59 am
    Level 34 : Artisan Nerd
    Awsomo1324
    This could be useful...
    1
    08/31/2018 7:01 pm
    Level 1 : New Explorer
    LegenD_I
    I've just dicovered it xD... just change the damage number between 1, 2, 3 or 4
    1
    08/31/2018 4:54 pm
    Level 1 : New Explorer
    LegenD_I
    how can i get the other textures on my custom sword??? can you help me please??
    1
    08/31/2018 11:06 pm
    Level 41 : Master Miner
    MukiTanuki
    Looks like you got it already! xP I'll also be adding more textures to the pack when I release v1.1.
    1
    09/10/2018 4:06 pm
    Level 1 : New Explorer
    LegenD_I
    Thats great, also you could add some textures to the custom armor too
    1
    09/11/2018 12:48 am
    Level 41 : Master Miner
    MukiTanuki
    I can for armor item icons, but the current resource pack capabilities of Minecraft doesn't allow you to retexture armor overlays, unfortunately :/
    1
    09/18/2018 1:56 pm
    Level 1 : New Explorer
    LegenD_I
    really? that`s bad, but maybe you could use optifine, i dont`t know. Anyway i think the datapack is still great just with the custom swords textures, good job :)
    1
    10/17/2018 2:35 pm
    Level 41 : Master Miner
    MukiTanuki
    Would people be interested in that? o3o There's a bunch of new changes coming to resource packs in 1.14, including NBT overrides and /modify item. I'll likely heavily modify this datapack for the release. If swapable armor models are implemented I'll definitely add them if there's interest.
    1
    08/31/2018 7:51 am
    Level 1 : New Miner
    NekoMao
    Hello with this data pack is it possible to get the swords to load a custom model and if possible how would one do that? I'm trying to completely add new ores with tools. so I could retexture coal and make coal have a tool set as well as it just being a fuel and so emeralds could have tool sets as well. I'm also working in 3d models.
    1
    08/31/2018 11:05 pm
    Level 41 : Master Miner
    MukiTanuki
    Yep! Just change the "Damage:" nbt on the sword to 1,2,3, or 4 like LegenD_I mentioned. ^^ I'll also be adding more textures to the pack when I release v1.1.
    1
    08/22/2018 8:51 am
    Level 1 : New Miner
    KrolixWormix
    Can you post an example of command to get custom item?
    1
    08/25/2018 4:19 am
    Level 41 : Master Miner
    MukiTanuki
    Here you go!:
    /give @p minecraft:diamond_sword{ Unbreakable:1b, Damage:1, customWeapon:1b, AttributeModifiers:[ {AttributeName:"custom.durability",Name:"durability",Operation:0,UUIDLeast:1,UUIDMost:2,Slot:"mainhand",Amount:200}, {AttributeName:"custom.maxDurability",Name:"max durability",Operation:0,UUIDLeast:1,UUIDMost:2,Slot:"mainhand",Amount:400}, {Name:"generic.attackDamage",AttributeName:"generic.attackDamage",Operation:0,UUIDLeast:1,UUIDMost:3,Slot:"mainhand",Amount:10} ] }
    1
    06/24/2018 12:01 am
    Level 34 : Artisan Archer
    Cc99X_YT
    shouldn't the texture pack and data pack be submitted onto planet minecraft seperately?
    1
    06/29/2018 3:49 am
    Level 41 : Master Miner
    MukiTanuki
    I thought the same thing too and I actually DID make two separate entries for both, but the mods decided that it would be better to just combine both. So now this entry has the datapack and resourcepack in it together!
    1
    07/11/2018 12:40 pm
    Level 34 : Artisan Archer
    Cc99X_YT
    hmm...nice
    1
    06/08/2018 10:27 am
    Level 29 : Expert Engineer
    YourAverageLink
    The link to the datapack brings me to a 404 error page.
    1
    06/08/2018 9:16 pm
    Level 41 : Master Miner
    MukiTanuki
    I've changed the submission to include both the resource pack and datapack. please enjoy! :D
    Planet Minecraft Logo

    Website

    © 2010 - 2020
    www.planetminecraft.com

    Welcome