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.
@metalhedd
Peculiar! I am not sure why it is not working, then. I do not have any protection mods or anything such as that, so I am unaware why it is not just working. I will try it without requiring signs, I guess.
Thanks. :)
@Netu
Yes, it works perfectly w/ hoppers.
@little_dude187
Greetings!
Would there be a way to make this work with hoppers? It would be nice to put "junk items" in a chest and to come back later and it's automagically turned into the loots in another chest, you know? I'm requiring the use of signs, if you think that has anything to do with it not working (if it's supposed to).
Thanks, great plugin! :D
@little_dude187
Ah, that's my fault, I told you the wrong item names for the config file, I'm sorry. :(
you want "WOOD_<WHATEVER>". not WOODEN, all the items are listed here:
http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
@little_dude187
can you set
debug: true
in your config file and paste the console output into http://pastebin.com/@little_dude187
You can do all of that by adding new entries to the config file:
etc.
@Dragonkin01
haha, no problem, I am a notoriously bad tester :) I have another development build up that fixes the crash, I'm actually going to test it now :)
@metalhedd
In addition to the console issue mentioned below, I'll note that I'm getting full return for smelting, despite always-yield-full-amount being set to false.
The console error happens the moment an item is placed into the smelter, and occurs again the moment it finishes smelting. When it finishes, the beginning of the error changes from "Could not pass event InventoryClickEvent" to "Could not pass event FurnaceSmeltEvent"
My apologies, I'll double-check next time before I give you a green-light. XD
@Dragonkin01
Thanks for testing! I'll release it as the next official version on bukkitdev tonight
@metalhedd
Login server just came back up. I tested your new sign-permission SalvageSmelter using Essentials' Group Manager, and it worked out just fine. Thanks for this new feature, I'll definitely be making use of it!
EDIT: After I posted this, I looked at my server console. All is not as well as it seemed. Each time I was smelting, this event was occuring in the console:
16:17:31 [SEVERE] Could not pass event InventoryClickEvent to SalvageSmelter v0.1.3-SNAPSHOT org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1189) at net.minecraft.server.v1_5_R3.Packet102WindowClick.handle(SourceFile:31) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:186) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:72) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_5_R3.block.CraftFurnace cannot be cast to org.bukkit.block.Sign at com.norcode.bukkit.salvagesmelter.SalvageSmelter.isSalvageSmelter(SalvageSmelter.java:288) at com.norcode.bukkit.salvagesmelter.SalvageSmelter.onInventoryClick(SalvageSmelter.java:248) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 15 more
@Lynnawaters
I can probably compile a version for 1.4.7 for you. I'll PM you when its available
Hey,
Is there a 1.4.7 version of this mod, or could you please point me to another gearsmelting mod for 1.4.7 that does gold? I'm running divineRPG and those caveclops drop huge ammounts of worthless golden pickaxes..
Thanks alot in advance, can't wait to get all the space back currently clogged by these pickaxes!
Greetings,
Lynna
Oh absolutely, I'll download it today after work and post my findings below in an edit of this comment.
/// Go figure, the login server is down. I'll just post results in a new post tomorrow. :/
@Dragonkin01 @mlopezv
The latest development build adds an option
require-signs
which defaults tofalse
. if you set it totrue
and give players the permission "salvagesmelter.createsign" they'll be able to create a "[SALVAGE]" sign on a furnace which will allow it to act as a SalvageSmelter. Hasn't been tested, but it should be fine. if either of you feel like testing it feedback would be appreciated.@deleted_11574170
each entry in the config file looks like this:
which says one diamond hoe smelts to a maximum of 2 diamonds. you can add your own recipes using any of the names from here: http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
you could make bows smeltable into fish if you really wanted to
What do you mean by "configurable recipes?"
@Dragonkin01
I will consider it as an optional feature for the next release, but there is still a potential problem i have to look into. the furnace recipes are added to server when the plugin is enabled, at that point its the server itself which allows you to place armor/tools in the furnace, my plugin doesn't involve itself in that step. it should be possible though.
I agree with mlopezv, but I see your point. However, you could do with this plugin what you did ith the compressor plugin, and only allow smelting on furnaces with a special sign on them. This sign would be placable only by people with permissions, so that salvage-smelting furnaces are essentially only creatable by people with the perms. I don't see a way to make it only usable by these people, but even so it's still a better approach. If you implement such permissions, this would be an excellent perk to offer donors on my PvP server.
you should add a permisson for this, would be great for like a blacksmith profession
@CommodoreAlpha
there is an option
auto-update: false
will completely disable the update checker, but I think it will throw an error there instead of just that one line. :) there's alsoauto-update: notify-only
which will tell you when there's an update, but won't download or install it.I'm uploading a new release right now with the console message removed and the error w/ 'auto-update: false fixed anyhow, but I suggest using notify-only so that you know when to check the site :)
Thanks for the feedback, and check back soon for the new release.