Recycling Mod

Quick rating

Recycling Mod

No reviews yet

A Simple mod to economize materials. Beta State

Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License
Authors

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.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

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

Powder Recycler

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

Interface

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:

Crafting

Why Recycling?

Recycling is a mod that allows you to define custom recipes for recycling, and allows you to re-use items.

Screenshots

Gallery

  • Powder Recycler Interface
    Powder Recycler Interface
  • Powder Recycler
    Powder Recycler
  • Diamontifier Tooltip
    Diamontifier Tooltip
  • Diamond Modifier (Diamontifier)
    Diamond Modifier (Diamontifier)
  • Diamontifier Crafting Recipe
    Diamontifier Crafting Recipe
  • Diamontifier Usage
    Diamontifier Usage

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

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works