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
-
View User Profile
-
Send Message
Posted Dec 15, 2021Neat plugin! Works like a charm on 1.18.1 :)
-
View User Profile
-
Send Message
Posted Sep 1, 2014@RabidFX
Both changes make sense, thank you for the PR, I'll integrate it. :) I also wonder myself why the hell I used MONITOR priority. oO
After that I should update my code a bit, parts of it are horribly old and do not represent my coding style anymore. :D
-
View User Profile
-
Send Message
Posted Aug 28, 2014@SydMontague:
I had two problems in fact:
I will send you a pull request with my additions, here is what I did:
Feel free to integrate these :)
Oh, I also wrote a quite comprehensive (50 recipes) config file, I can share it to provide people with an example configuration if you want to.
-
View User Profile
-
Send Message
Posted Aug 23, 2014@RabidFX
My plugins are compiled and tested against CraftBukkit only. 3rd Party builds might work, but I can not gurantee it. If it still works on normal CraftBukkit (what I assume), I'd guess the problem is caused by your server software. The plugin uses an undocumented feature of the Mojang Code - so maybe your server provider missed/changed that feature.
-
View User Profile
-
Send Message
Posted Aug 23, 2014Hello @SydMontague
Does this works on MCPC+?
I tried to install it on my server, but cannot get it to work.
The items won't get smelted, but can be placed in the furnace. (So, no permissions problem.)
Startup seems ok, as I have the "INFO: [Recycler] 49 recycleables loaded." line.
P.S. I run MCPC+ version git-MCPC-Plus-1.7.2-R0.4-forge1065-63 (MC: 1.7.2)
Edit : Oh, I found the problem. Will provide a PR.
-
View User Profile
-
Send Message
Posted Feb 19, 2014@SydMontague
Thanks! Glad to know I wasn't crazy. Downloading and gonna test now.
-
View User Profile
-
Send Message
Posted Feb 19, 2014@w0lfh0well
Okay, I just uploaded 1.1.2 to fix this problem.
It seems like GroupManager did not support *-wildcard permissions in the way I used to expect...
-
View User Profile
-
Send Message
Posted Feb 16, 2014@SydMontague
I use Group Manager. I thought it was permissions as well, but I've double checked, and everyone has the permissions set to 'recycler.item.*'
-
View User Profile
-
Send Message
Posted Feb 16, 2014@w0lfh0well
This sounds like a permission issue. What Permissions plugin do you use?
-
View User Profile
-
Send Message
Posted Feb 16, 2014@SydMontague
When I put in an iron chestplate (for example) into the top block of the furnace, the item disappears. Not in inventory, not on screen. The furnace lighting animation does not come up. When I close out the furnace screen, it shows the chestplate entity as if I had dropped it. Of all the things I've tested, the bucket is the ONLY thing that works.
-
View User Profile
-
Send Message
Posted Feb 15, 2014@w0lfh0well
I just tested it on my local server (craftbukkit and spigot) with your config file and it worked like intended...
What happens when you try to put recyable items in a furnace?
-
View User Profile
-
Send Message
Posted Feb 15, 2014I'm having a bit of trouble getting items to recycle. The bucket is the only item that works. I have set permissions to recycler.item.* The server starts without error and states 32 recyclables loaded. Here's the link to my config:
https://drive.google.com/file/d/0B-67pwENq2oIR2ZIWUIyUzlFakE/edit?usp=sharing
Any help appreciated.
Edit: Forgot to add, I'm running version Recycler 1.1.1 for CB 1.7.2-R0.2 with the latest spigot server.
-
View User Profile
-
Send Message
Posted Jan 19, 2014@gyro89
Oh, a "bit" late answer, sorry.
You used the tabulator key in your config, which is forbidden in YAML.
-
View User Profile
-
Send Message
Posted Sep 10, 2013@SydMontague
I converted it to ANSI and it worked great, but when I added more recipes it came up with a new error.
Here is the error: https://docs.google.com/document/d/1NqHyTuUL41XT2-gRiywcacSleAnmcq48mK52KlTCSaM/edit?usp=sharing
Here is my config:https://docs.google.com/document/d/1VEg0Ai_2xlcRw-Ff3KGMLe7_i2Zm4T5SEDz5XwnyvU0/edit?usp=sharing
-
View User Profile
-
Send Message
Posted Sep 2, 2013@gyro89
I think I found a possible reason for your error.
It seems to be related with the encoding of your config file.
I tried with Notepad++, and found out that UTF-8 might cause this error, while ANSI and UTF-8 without BOM work like intended.
Try to convert your config file into another encoding. (I actually can't change anything there, as configs are mostly handled by Bukkit itself)
-
View User Profile
-
Send Message
Posted Sep 2, 2013@SydMontague
Here is my config file. https://docs.google.com/document/d/1Hht51cVzM9yDM4_Y7hJOBxmpoU-e7ADduZbVsXJEghw/edit?usp=sharing
-
View User Profile
-
Send Message
Posted Sep 1, 2013@gyro89
Okay, if you tested it with only this plugin, it needs to be my plugin.
Could you post a 1:1 copy of your config within code-tags, or on a paste plattform like pastebin? According to my research it should have something to do with the "rewardid" key, which should be either not found, or 0... (Btw. If you set 0 as rewardid, you should get this error, as well.)
-
View User Profile
-
Send Message
Posted Sep 1, 2013@SydMontague
Well I don't think that is the problem because I ran the server with only Recycler running and it still didn't work. I think it is a problem with the config file. Recycler works if I run it without editing the config file, but once I edit it, it screws up.
Just in case you are right, here are the plugins that add or edit crafting recipes. Nethertools Craftbook grappling hook special items lorelocks easy jetpack legit chain mining machine tekkit inspired armor abilities
I also have ender arrows, but I added after I had this problem.
-
View User Profile
-
Send Message
Posted Sep 1, 2013@gyro89
Can you tell me the names of the plugins, so that I can check if their might interfere with my code?
-
View User Profile
-
Send Message
Posted Sep 1, 2013Yes, I do, but the weird thing is, recycler was running fine with them, and then all the sudden it didn't.