Skip to content

Repository files navigation

WearAndTear

GitHub License GitHub Release GitHub last commit Lines of Code

I often play with vanilla tweaks when playing modern. One of my favorite datapacks is diminishing tools. This mod aim to add this functionality to BTA. In future this will be possible via assets pack but for now is only possible though modding.

grafik

🪓 Diminishing Tools

Wear & Tear support most tools. Tool start showing marks of wear and tear at 25% durability and further signs at 15, 5% durability. This mod is client side only, and should allow players to connect to vanilla server.

🖼️ Mod Support

Modder are happy to adopted this mod by defining a configuration by which the item new texture are loaded. Importantly the call to super.getIcon() has to be preserved in some form for the icon to be resolved correctly.

Here is an example of the configuration file. The name of a given file is [name of Item].item.toml:

type = "durability" # metadata/durability
textures = [
  {name = "a", threshold = 0.75}, # name is the name of the texture
  {name = "b", threshold = 0.85}, # threshold, point of mising durability at whice this icon is shown
  {name = "c", threshold = 0.95}  # The game assumes all icon are in the directory : assets/[modID]/textures/item/[item.name]/
]

Type metadata allows the use of specific metadata value (for more precision)

🎤 Asset pack support

Simular to modding Wear and Tear also support asset packs. Just define the configuration (see Mod Support) for the item, include the desired texture and package it as a valid texture pack. The game will be able to load and unload these textures freely.

⚽ Goals:

  • Redo the textures (still using diminishing tools texture as of now)
  • Diminishing texture for bow and fishing rod.
  • ArmorIcon, also change with deminishing durability
  • ArmorModel support, player worn armor model changes based on missing durability.

⚙️ Github: https://github.com/Redart15/WearAndTear
🧩 Modrinth: https://modrinth.com/mod/wearandtear/version/1.0.0+8.0.1

About

Updates the visuals of tool to show their wear and tear.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages