SalvageSmelter
SalvageSmelter
[ English | Français ]
SalvageSmelter allows you to smelt down tools and armor made of iron, gold or diamond into raw materials. the quantity of materials returned is dependent on the durability of the item being smelted, for example iron boots at 50% durability would return 2 Iron ingots. At 49% durability they would return 1 iron ingot. Gold tools can yield nuggets instead of ingots to allow for more accuracy in determining the value of an item, and any item not worth at least 1 of it's raw materials will produce a piece of charcoal.
Features
- [NEW] Optional sign-based permissions. when
require-signs: true
in the config.yml furnaces will require [SALVAGE] signs on them. - Automatic updates!
- Configurable Recipes
- Smelt iron, gold and diamond armor, as well as tools. enchanted, named or damaged, doesn't matter.
- works great with hoppers!
Commands
- /salvagesmelter reload - reload the configuration
- /salvagesmelter debug - toggles debug mode on/off
Permissions
- salvagesmelter.admin - allows access to the /salvagesmelter command.
- salvagesmelter.createsign - allows players to create [SALVAGE] signs.
Tutorials
Для русскоязычных пользователей видео от Rissman
Source Code & Development Builds
Source code is available on Github
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
SalvageSmelter Development Builds
Other Plugins
- PortableHorses - your trusty steed in your back pocket.
- Scribe - Transfer enchantments from items to books using an anvil
- http://dev.bukkit.org/bukkit-plugins/dig-for-dollars/DigForDollars - Get paid to mine!
- PotatoBombs - Allows players to craft poisonous potatoes into devastating and hillarious magical landmines.
- Autocrafter - Turns droppers into redstone powered crafting tables.
@stansey
Guess its a good thing it never made an official release yet huh? :D I'll fix that up ASAP. check back within 30 mins or so.
@metalhedd
getting a bug with the dev version:
"SmeltEvent::Damage:100.0" "getSalvage<ROTTEN_FLESH, LEATHER, 100.0>" "getSalvage::Mathification:1 * 100.0 = 100"
the smelt produces a stack of leather rather than 1, let me see if i can fix it in the config file tho
EDIT: the config file doesnt accept decimal numbers either
@stansey
That's actually a bug that's been fixed in the latest development builds, but I've been a bit reluctant to do an official release because it has some changes that haven't been thoroughly tested yet. There's nothing that would break your server, just certain configurations might not work when they're supposed to (mostly related to signs and permissions)
If you want to give that one a try and let me know how it goes, I'll look into doing an official release tonight. if there are some other problems with the dev build I can backport this bugfix and still get a new release out for you.
@metalhedd
is there any way to trick the plugin into thinking items without durability aren't damaged? anytime i try to turn items without durability into something they always come out as charcoal
(ROTTEN_FLESH: LEATHER:1) produces "getSalvage::Mathification:10 * NaN = 0"
@jesse131
You should see a slight decrease in time spent doing InventoryMoveItemEvent, bringing it more along the order of what chestshops is doing. but to be honest, that's about as good as it gets, SalvageSmelter isn't lagging your server, it's just the straw breaking the camels back. what's lagging your server is WAY too many hoppers. Spigot has an option to turn down how often they tick to reduce lag, this will probably help considerably...
I've actually even discussed your problem with the developer of LWC to compare the timings.. he says if you were to upgrade your LWC to one where hopper support has been added, it would probably take over as the main culprit of lag. basically any thing that has to handle all those hopper events is going to struggle.
@metalhedd
The signs feature is disabled, though I'm not exactly sure what you mean with the furnaces. Of course I can't verify if my players build such things, but I've never seen it before.
I'll be adding the dev version tomorrow and report back.
@metalhedd
brilliantly, thanks!
@stansey
So its working okay now?
@metalhedd
I'm getting "InvalidCongifurationException: mapping values are not allowed here in "<string>", line 41, column 42 ... IRON_INGOT:2 LEATHER_CHESTPLATE: LEATHER:8"
and there's a little ^ under the : after chestplate. is there supposed to be two spaced after each entry?
edit: i added a second space after the entry and i'm still getting the same error edit2: that website you gave me helped reformat the txt.... notepad defaulted weird i guess. thanks for the help
@stansey
That entry looks like it should work just fine. try pasting your config file into here: http://yaml-online-parser.appspot.com/ to make sure all the indentation and everything is correct.
Also check the server.log for any errors, if its failing to smelt then there should be some error message in the logs somewhere.
hey metal, i'm having a bit of trouble when attempting to add items into the config file. is there a certain way they are supposed to be listed (e.g. alphabetical)? i have checked the new entry formats with the previous items listed and they all seem to match up. the items i've been trying to add are leather armors (LEATHER_HELMET: LEATHER:8) but they appear to break the entire file. after adding an item like that nothing will smelt at all even after a reload of the configuration file. any help would be greatly appreciated
@metalhedd
thank you :)
@ha11oga11o
settings.plugin-profiling: true
in bukkit.yml and then run/timings merged
the results are then pasted into http://www.aikar.co/timings.php@jesse131
May i ask what tool you are using to calculate those timings?
@jesse131
Are you using the require-signs option? by necessity that is rather hard on the CPU (it has to check all 4 sides of the furnace for a sign every time an item is moved into it.. from the looks of that report, it's processsing an absolutely massive number of InventoryMoveEvent's, are there a lot of very large auto-smelting machines on your server?
EDIT: Also consider trying the latest development build, it does have a minor performance optimization, but otherwise, the plugin is already nearly as efficient as it can be given it's configuration. ```require-signs: false``` will have the biggest improvement (if its not already set).
Server is very laggy with this plugin enabled (CPU +/- 100-150%) and about 15 players online.
Timings: http://www.aikar.co/timings.php?url=6002804%2F
@little_dude187
http://jd.bukkit.org/dev/apidocs/org/bukkit/Material.html
@metalhedd
I feel like such a dummy. I am sorry. I shalln't bother you again! >_<
@Netu
The config file is flexible enough to let you set all those up yourself, if you scroll down in the comments a little bit I posted an example for another user.
@metalhedd
Ah, it was me being an idiot, of course! I watched the video and saw the setup. Honestly, I was just putting wooden items in there, thinking it would automagically use them as fuel. This is just a sad limitation of Minecraft, is all. I feel silly now. My bad. :\
Anyway, that brings me to my next point! What is your thinking on allowing it to break down wooden items and bows into, say, charcoal, and leather into leather straps? And perhaps chain into iron nuggets, or something? This would really streamline an automatic smelting station like the one I have 100%!
Thanks so much, as always!