Перейти к содержимому
Mineforgian

CustomDurability

A Fabric Mod that allows for changing the durabilities of all items!

3K загрузок16 подписчиковMITfabric

Обновлён 28 августа 2024 г. · опубликован 1 октября 2023 г.

  • Sample
  • Command

Custom Durability

A Fabric Mod that allows for changing the durabilities of all items.

Overview

Change any item's durability with a Command!

Should work on Integrated Servers and Dedicated Servers.
Requires FAPI
Need on Client: ✅ Need on Server: ✅
Report any Issues on GitHub or my Discord Server

Haven't tested modded items, I'm mainly just targetting this mod for Vanilla, since it's what I wanted... it probably? should? work with modded items?

Sample

Commands

A bunch of commands to help you set the durability of an item using its ID or Tag, or bulk setting by using wildcards

  • /cd armorMultiplier [True or False]

    • whether to use the vanilla armor multipliers for armor (more on this below)
  • /cd clear [Optional Item ID or Tag]:

    • sets all configured items back to their default vanilla durabilities
    • without the optional argument, clears all configured durabilities.
    • with the optional argument, clears that specified item or tag.
  • /cd list

    • lists all items, tags and their new durabilities.
  • /cd set item [Item ID or Tag] [Durability]

    • sets an item (or tag) to a durability
  • /cd set wildcard [String with Wildcards] [Durability]

    • adds items using wildcards to a temporary context (more on this below)
  • /cd context list

    • lists all items in your current context.
  • /cd context clear [Optional Item ID]

    • clears all items in your current context.
  • /cd context set item [Item ID or Tag] [Durability]

    • sets an item in your current context to a durability.
  • /cd context set all [Durability]

    • sets all items in your current context to a durability.
  • /cd context filter [TOOL / WEAPON / ARMOUR / OTHER]

    • filters items in your current context list based off of the given input (KEEPS the thing you inputted, look at example below)
  • /cd context confirm

    • applies all the item configurations in your current context into your main config.
  • /cd context cancel

    • cancels the current context.

Some Examples:

Setting a diamond pickaxe's durability to 5000:
/cd set item diamond_pickaxe 5000

Setting all diamond tools durability to 5000:
/cd set item #cd:tools/diamond 5000

An example attempt of setting all minecraft diamond tools to 5000 using wildcards:

cd set wildcard minecraft:*diamond* 5000

This then puts it into your temporary context, which would match with all diamond tools, and diamond armor, which you don't want, you'd then have to either:

  • click the tool filtering button Keep all: [TOOL] [WEAPON] [ARMOUR] [OTHER]
  • run /cd context filter TOOL to keep all tools and filter out armour
  • or just manually remove all the armour items.

Context

/cd set wildcard doesn't immediately put all the items it matches into your main config, in order to not add things the wildcard wasn't supposed to get, it puts it in a temporary config that you can remove or edit the entries until you decide to apply it to the main config, either through /cd context confirm or by clicking the button shown after running /cd set wildcard command (or shown in the /cd context list command).


✖ Armor Multiplier

The Armor Multiplier option is so that you can use a base vanilla value that will multiply your inputted durability, so if you put 5 for boot armor, it would get multiplied by 13, so you'd get what, 65? (this is how vanilla does it, and is why helmets, chestplates, leggings and boots don't share the same durability)

Default Multipliers:

  • Helmet: 11
  • Chestplate: 16
  • Leggings: 15
  • Boots: 13

🕮 Helpful Tags

I added some tags that should help with some of the more common items:

  • #cd:tools
    • wood
    • stone
    • iron
    • gold
    • diamond
    • netherite
  • #cd:armor
    • leather
    • chainmail
    • iron
    • gold
    • diamond
    • netherite

You'd use these by for example doing:

  • For Wooden Tools: /cd set item #cd:tools/wood [durability]
  • For Leather Armor: /cd set item #cd:armor/leather [durability]

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
0.5.0+1.21Релиз1.21fabric28 августа 2024 г.Скачать (66 КБ)
0.5.0+1.20.5Релиз1.20.5, 1.20.6fabric28 августа 2024 г.Скачать (67 КБ)
0.5.0+1.20Релиз1.20.1, 1.20.2, 1.20.3, 1.20.4fabric28 августа 2024 г.Скачать (66 КБ)
0.3.0+1.21Релиз1.21fabric15 июня 2024 г.Скачать (65 КБ)
0.3.0+1.20.5Релиз1.20.5, 1.20.6fabric25 мая 2024 г.Скачать (65 КБ)
0.3.0+1.20.2Релиз1.20.2, 1.20.3, 1.20.4fabric25 мая 2024 г.Скачать (65 КБ)
0.3.0+1.20Релиз1.20, 1.20.1fabric25 мая 2024 г.Скачать (67 КБ)
0.2.01+1.19.4Релиз1.19.4fabric1 октября 2023 г.Скачать (100 КБ)

Ченджлог

0.5.0+1.21Релиз1.21 · 28 августа 2024 г.

Overview:

  • Added wildcards (*)
  • Added the /cd context command
  • /cd set has changed how you set an item
  • /cd list now include visual buttons to remove or edit.
  • Item command suggestions will only include damage-able items now (this could backfire if some items don't work with the way I check for 'damage-able' items, so let me know if some items aren't showing!)
  • Developing for old Minecraft versions should be easier now, the codebase is now based on stonecutter!

Command changes, updates, and improvements!

Updated /cd list, now shows text you can click to either edit, or remove an entry!

Image

  • Clicking [Edit] will just automatically type the command /cd set item <item_name> <previous_durability>
  • Clicking [Remove] will automatically run the command /cd clear <item_name>

  • Each time you click remove, (or run the remove command) it lists all items again, so make sure you're always scrolled down. (I feel slightly unsure about this behaviour, so if you think this is bad let me know!)
  • Also shows the real durability of an armor if the armor multiplier config is on.
  • Also, now shows all the contents of an item tag, whenever possible.

Updated /cd set <item_name> <durability>

Now you have to specify either:

  • item, to specify an actual minecraft item or tag.
  • wildcard, you can now try to add things in bulk using wildcards! (I do want to say I implemented my own wildcard parser and in all my tests it works perfectly, but if it seems like it's not co-operating, let me know!)

item Examples:

  • /cd set item minecraft:diamond_pickaxe 100
  • /cd set item #cd:tools/diamond 100

wildcard Examples:

  1. /cd set wildcard minecraft:*diamond* 100
  2. /cd set wildcard minecraft:*wooden* 100
  3. /cd set wildcard minecraft:diamond* 100
  4. /cd set wildcard minecraft:*diamond 100
  • What 1, and 2 will do is add anything that starts with minecraft: and has diamond or wooden anywhere in its id!
  • 3 adds anything that starts with minecraft:diamond and can end with whatever so minecraft:diamond_pickaxe will match.
  • 4 adds anything that starts with minecraft: and ends in diamond so minecraft:pickaxe_diamond would match, although that's not a real item.

Context

When you run /cd set wildcard <string> <durability> it won't immediately add the matched items into your config, it will add them to a temporary context, which you can clean up any unwanted matches first.

Say you run /cd set wildcard minecraft:*diamond* 100 that will add all diamond armors and diamond tools to your context, so you can selectively remove or edit which ones you want to add to your config!


This also introduces the /cd context command, this pretty much has exactly the same commands as inside of /cd, basically list, clear, set, except for 3 unique ones, confirm, cancel and filter

  • confirm will add all the items you have in your current context to your config.

  • cancel will just clear the context.

  • filter will filter all of your items in your current context based off of 4 inputs TOOL WEAPON ARMOUR OTHER

    • Make sure you have something in your context and then run for example: /cd context filter TOOL, this will keep only tools in your context.
  • set also adds all command, which sets all the durabilities in your context list to a given durability

0.5.0+1.20.5Релиз1.20.5, 1.20.6 · 28 августа 2024 г.

Overview:

  • Added wildcards (*)
  • Added the /cd context command
  • /cd set has changed how you set an item
  • /cd list now include visual buttons to remove or edit.
  • Item command suggestions will only include damage-able items now (this could backfire if some items don't work with the way I check for 'damage-able' items, so let me know if some items aren't showing!)
  • Developing for old Minecraft versions should be easier now, the codebase is now based on stonecutter!

Command changes, updates, and improvements!

Updated /cd list, now shows text you can click to either edit, or remove an entry!

Image

  • Clicking [Edit] will just automatically type the command /cd set item <item_name> <previous_durability>
  • Clicking [Remove] will automatically run the command /cd clear <item_name>

  • Each time you click remove, (or run the remove command) it lists all items again, so make sure you're always scrolled down. (I feel slightly unsure about this behaviour, so if you think this is bad let me know!)
  • Also shows the real durability of an armor if the armor multiplier config is on.
  • Also, now shows all the contents of an item tag, whenever possible.

Updated /cd set <item_name> <durability>

Now you have to specify either:

  • item, to specify an actual minecraft item or tag.
  • wildcard, you can now try to add things in bulk using wildcards! (I do want to say I implemented my own wildcard parser and in all my tests it works perfectly, but if it seems like it's not co-operating, let me know!)

item Examples:

  • /cd set item minecraft:diamond_pickaxe 100
  • /cd set item #cd:tools/diamond 100

wildcard Examples:

  1. /cd set wildcard minecraft:*diamond* 100
  2. /cd set wildcard minecraft:*wooden* 100
  3. /cd set wildcard minecraft:diamond* 100
  4. /cd set wildcard minecraft:*diamond 100
  • What 1, and 2 will do is add anything that starts with minecraft: and has diamond or wooden anywhere in its id!
  • 3 adds anything that starts with minecraft:diamond and can end with whatever so minecraft:diamond_pickaxe will match.
  • 4 adds anything that starts with minecraft: and ends in diamond so minecraft:pickaxe_diamond would match, although that's not a real item.

Context

When you run /cd set wildcard <string> <durability> it won't immediately add the matched items into your config, it will add them to a temporary context, which you can clean up any unwanted matches first.

Say you run /cd set wildcard minecraft:*diamond* 100 that will add all diamond armors and diamond tools to your context, so you can selectively remove or edit which ones you want to add to your config!


This also introduces the /cd context command, this pretty much has exactly the same commands as inside of /cd, basically list, clear, set, except for 3 unique ones, confirm, cancel and filter

  • confirm will add all the items you have in your current context to your config.

  • cancel will just clear the context.

  • filter will filter all of your items in your current context based off of 4 inputs TOOL WEAPON ARMOUR OTHER

    • Make sure you have something in your context and then run for example: /cd context filter TOOL, this will keep only tools in your context.
  • set also adds all command, which sets all the durabilities in your context list to a given durability

0.5.0+1.20Релиз1.20.2, 1.20.3, 1.20.4 · 28 августа 2024 г.

Overview:

  • Added wildcards (*)
  • Added the /cd context command
  • /cd set has changed how you set an item
  • /cd list now include visual buttons to remove or edit.
  • Item command suggestions will only include damage-able items now (this could backfire if some items don't work with the way I check for 'damage-able' items, so let me know if some items aren't showing!)
  • Developing for old Minecraft versions should be easier now, the codebase is now based on stonecutter!

Command changes, updates, and improvements!

Updated /cd list, now shows text you can click to either edit, or remove an entry!

Image

  • Clicking [Edit] will just automatically type the command /cd set item <item_name> <previous_durability>
  • Clicking [Remove] will automatically run the command /cd clear <item_name>

  • Each time you click remove, (or run the remove command) it lists all items again, so make sure you're always scrolled down. (I feel slightly unsure about this behaviour, so if you think this is bad let me know!)
  • Also shows the real durability of an armor if the armor multiplier config is on.
  • Also, now shows all the contents of an item tag, whenever possible.

Updated /cd set <item_name> <durability>

Now you have to specify either:

  • item, to specify an actual minecraft item or tag.
  • wildcard, you can now try to add things in bulk using wildcards! (I do want to say I implemented my own wildcard parser and in all my tests it works perfectly, but if it seems like it's not co-operating, let me know!)

item Examples:

  • /cd set item minecraft:diamond_pickaxe 100
  • /cd set item #cd:tools/diamond 100

wildcard Examples:

  1. /cd set wildcard minecraft:*diamond* 100
  2. /cd set wildcard minecraft:*wooden* 100
  3. /cd set wildcard minecraft:diamond* 100
  4. /cd set wildcard minecraft:*diamond 100
  • What 1, and 2 will do is add anything that starts with minecraft: and has diamond or wooden anywhere in its id!
  • 3 adds anything that starts with minecraft:diamond and can end with whatever so minecraft:diamond_pickaxe will match.
  • 4 adds anything that starts with minecraft: and ends in diamond so minecraft:pickaxe_diamond would match, although that's not a real item.

Context

When you run /cd set wildcard <string> <durability> it won't immediately add the matched items into your config, it will add them to a temporary context, which you can clean up any unwanted matches first.

Say you run /cd set wildcard minecraft:*diamond* 100 that will add all diamond armors and diamond tools to your context, so you can selectively remove or edit which ones you want to add to your config!


This also introduces the /cd context command, this pretty much has exactly the same commands as inside of /cd, basically list, clear, set, except for 3 unique ones, confirm, cancel and filter

  • confirm will add all the items you have in your current context to your config.

  • cancel will just clear the context.

  • filter will filter all of your items in your current context based off of 4 inputs TOOL WEAPON ARMOUR OTHER

    • Make sure you have something in your context and then run for example: /cd context filter TOOL, this will keep only tools in your context.
  • set also adds all command, which sets all the durabilities in your context list to a given durability

0.3.0+1.21Релиз1.21 · 15 июня 2024 г.
  • Update to 1.21!
0.3.0+1.20.5Релиз1.20.5, 1.20.6 · 25 мая 2024 г.
  • Removed the UI config as it felt less solid than just using commands.
  • Changed tags from #customdurability to #cd (your configs will need to be updated if you used these)
  • Changed command /customdurability to /cd
0.3.0+1.20.2Релиз1.20.2, 1.20.3, 1.20.4 · 25 мая 2024 г.
  • Removed the UI config as it felt less solid than just using commands.
  • Changed tags from #customdurability to #cd (your configs will need to be updated if you used these)
  • Changed command /customdurability to /cd
0.3.0+1.20Релиз1.20, 1.20.1 · 25 мая 2024 г.
  • Removed the UI config as it felt less solid than just using commands.
  • Changed tags from #customdurability to #cd (your configs will need to be updated if you used these)
  • Changed command /customdurability to /cd
0.2.01+1.19.4Релиз1.19.4 · 1 октября 2023 г.

No changelog was specified.

Комментарии

Загружаем…