Recycling Mod
No reviews yet
A Simple mod to economize materials. Beta State
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Recycling Mod
This mod allows people to recycle Items
This mod is the successor of the Recycling Mod
Made by the same author, but this one was Rewritten for Fabric, and now adds more mechanics, and it is now in Beta, no longer in alpha
Disclaimer
THIS MOD IS CURRENTLY IN BETA AND BUG/GLITCHES MAY OCCOUR
v1.0.0-beta WAS MADE FOR Minecraft 1.21.4, OTHER Minecraft VERSIONS MAY NOT BE SUPPORTED
How to Recycle Items
To recycle them you use an Powder Recycler

To recycle items open the GUI and put the items you want to recycle, and click the recycle button:

In the image above the Chest is the input item, and the other 8 planks are inside the output slots;
In the GUI we have 9 output slots, 1 input slot and 1 modifer slot;
Modifiers
Modifiers modify the output of the recipe, they are inserted in the modifier slot
Currently we have only one modifer, which is the Diamond Modifier(Also Known As Diamontifier)
Modifiers are registered using Java code
Diamontifier
This modifier changes some of the output items to Diamonds.
The Diamontifier has 32 of Durability, and everytime the recipe is modified one durability is consumed;
new PowderRecyclerModifer() {
@Override
public ItemStack[] modifyOutput(ItemStack modifierStack, ItemStack[] outputs) {
double d = RND.nextDouble();
if (d > 0.4) {
return outputs;
}
boolean mod = false;
for (int i = 0; i < outputs.length; i++) {
ItemStack output = outputs[i].copy();
if (output.getItem() == Registries.ITEM.get(Identifier.ofVanilla("diamond"))
|| output.getItem() == Registries.ITEM.get(Identifier.ofVanilla("air")))
continue;
d = RND.nextDouble();
if (d < (0.5d / Math.pow(1.5, output.getCount()))) {
outputs[i] = new ItemStack(Registries.ITEM.getEntry(Identifier.ofVanilla("diamond")).get(),
output.getCount(), output.getComponentChanges());
if (mod == false) {
mod = true;
}
LOGGER.info("Modified stack(" + output.getItem().toString() + ")");
}
}
if (mod == true) {
LOGGER.info("Modifer got damaged");
modifierStack.setDamage(modifierStack.getDamage() + 1);
}
return outputs;
}
}
As seen in the code above, we see that the chance of Replacing one item slot with an Diamond is:
0.5 / (1.5 ^ count)
count is the item count
And that the chance of attemping to modify the slot is: 0.4
To craft a Diamontifier you need to use the following Recipe:

Why Recycling?
Recycling is a mod that allows you to define custom recipes for recycling, and allows you to re-use items.
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources