Mods / Metal Recycling

Category: #Crafting #QoL #Tweak
Author: ilan
Side: Server
Created: Jun 15th 2024 at 7:17 AM
Last modified: Jun 15th 2024 at 3:42 PM
Downloads: 2294
Follow Unfollow 76

Latest file for v1.19.8:
metalrecycling_1.1.0.zip 1-click install


Ever wish you could recycle those bits of metal you seem to "waste" when you make chisels or the like? Well, now you can!

Using the "split" ability on work items now has a chance of giving you a metal bit in return - by default this starts at 50%, but the chance goes down with every metal bit you successfully recover.

 

Smith away, and rejoice!

 

This mod is configurable using the MetalRecycling.json configuration file:

  • MetalRecyclingChance - The chance that a metal bit will be returned when splitting metal on the anvil. Defaults to 0.5 (50%).
  • MaxBitsPerWorkItem - How many metal bits you can get from a single work item. Defaults to 10.
  • DiminishingReturnFactor - The "factor" of diminishing returns that affects the recycle chance on every successful bit recovery. Defaults to 0.85.
  • RecycleIronBlooms - Whether you get iron bits from splitting iron blooms. Defaults to true.

 

Diminishing returns 

The default factor for the diminishing returns is 0.85. That means that for every bit of metal you successfully recover, the chance to get another metal bit is multiplied by 0.85 (or 85% of 50%). For the default starting chance of 50%, this means:

  • You have a 50% chance of getting the first metal bit
  • Afterwards, you have a 50% * 0.85 = 42.5% chance of getting another metal bit
  • After that, you have a 42.5% * 0.85 = 36.1% chance
  • and so on, and so forth..

To make it easier to get metal bits, increase the value of the diminishing returns factor. To make it harder, lower the value.

Examples:

  • For a factor of 0.9, the chances will go 50% -> 45% -> 40% -> 36%
  • For a factor of 0.5, the changes will halve every time: 50% -> 25% -> 12.5% -> 6.25%

 

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.1.0 2184 Jun 15th 2024 at 3:42 PM Show metalrecycling_1.1.0.zip Install now
v1.0.0 110 Jun 15th 2024 at 8:59 AM Show metalrecycling_1.0.0.zip Install now

9 Comments (oldest first | newest first)

💬 prototype464, 2 hours ago

Working in 1.20.1

💬 ItsMarmaduke, 1 day ago

Working in 1.20.1 so far!

💬 TheRealDiggyChz, Dec 24th 2024 at 4:28 PM

Seems to be working in 1.20rc 6 atleast with vanilla tin bronze items.

💬 SniperGecko, Dec 21st 2024 at 3:14 AM

Anyone know if this still works in 1.20?

💬 prototype464, Dec 11th 2024 at 10:37 PM

Thank you!

💬 ilanAuthor, Dec 11th 2024 at 2:52 PM

prototype464

Good question, I'll edit my original post to clarify.

💬 prototype464, Dec 11th 2024 at 8:43 AM

How does the value for DiminishingReturnFactor work? Does lowering the value increase or decrease the rate?

💬 ilanAuthor, Jun 15th 2024 at 7:16 PM

😁 Glad you like it!

💬 GermanKursk, Jun 15th 2024 at 5:49 PM

Man, this guy don't miss.

(edit comment delete)