Recycler

 

Recycler is a small plugin that allows players to smelt items in furnaces in order to turn them back into the materials they got made out of. It offers configuration options to allow it being adjusted to many different use cases.

So it's kinda like smelting iron/gold equipment since 1.11, just better.

Usage

To recycle an item you need to put it in an furnace with some fuel. After the burning process the resulting material will wait in the output slot for you. It is possible to modify the output based on the durability of the item, to prevent that tool can be replaced for free with this plugin.

The remaining reward for will be calculated

amount = defaultAmount * (remainingDurability + extraDurability) / input.maxDurability

 

Hoppers and Droppers won't put defined item into furnaces by default, but you can deactivate this behavior.

Permissions

Each recycle recipe is bound to a permission node. If a player doesn't have this node, he'll not be able to put this item in the furnace.

recycler.item.<itemName> - allows the player to recycle this item
recycler.item.* - allows the player to recycle every defined item
recycler.admin - allows the player to reload the config

Configuration

 

# General options
general:
  # prevents hoppers and droppers from putting recyclable items into furnaces
  disableHopper: true 

# Recipes
#
#  diamond_pickaxe:         # unique key, can be anything
#    input: DIAMOND_PICKAXE # Material to smelt, for names see 
                            # https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/Material.java
#    result: DIAMOND        # Smelting result item
#    resultamount: 3        # number of result items per smelted input
#    extradura: 0           # extra durability for amount calculation
#    calcdura: true         # whether the resulting amount should be calculated 
                            # based on item damage, formula: 
                            # reward = rewardamount * (input.maxDurability +
                            # extradura - input.damage) / input.maxDurability
#    burntime: 100          # the time the item burn in the oven in ticks (1/20th seconds)
recipes:
  diamond_pickaxe:
    input: DIAMOND_PICKAXE
    result: DIAMOND
    resultamount: 3
    extradura: 0
    calcdura: true
    burntime: 100

 

Source

Get the Source on GitHub


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files