Blacksmith
This blacksmith only uses materials in Minecraft, not use an economy to repair your tools. It is made specifically to repair your items in a more realistic way than the economy based blacksmiths, and cheaper than making a new one. Each item (except bows) takes one of whatever material it is made of to repair it to 100%. Bows take one string and one stick to be repaired. This will decrease the need for new items but increase the need for the base elements. This plugin takes the item in your hand and, if you have the required material for the repair, it resets the durability.
To use this plugin all you have to do is place an anvil (iron block) and activate it (hit or right click) with the item you want to repair.
To install: Download the desired Blacksmith.jar in the files page. Place the .jar into the plugins folder in your CraftBukkit folder.
List of Required Material: Tool:Cost
- Wood: 1 Wood Plank
- Stone: 1 Cobblestone
- Iron: 1 Iron Ingot
- Gold: 1 Gold Ingot
- Diamond: 1 Diamond
- Bow: 1 Stick + 1 String
- Enchantments: + 1 Blaze Powder
I am planning to add support for permissions, but if you have any suggestions please tell me. Also if you find any bugs, tell me so I can fix them ASAP. This is my first plugin, so I don't know how to do EVERYTHING with bukkit yet but I have learned a lot about making plugins using bukkit from this experience.
Feel free to view the source code HERE (There is a lot of temporary code for testing in there). I do not mind if you take pieces of my code and use them for your own projects, but please ask me before taking large chunks.
Please send a ticket with any ideas/suggestions/problems. They are easier to track than a comment. Thanks!
Video: WoopaGaming
There is a similar but updated mod made by Holyviruss and Thidox HERE
-
View User Profile
-
Send Message
Posted Aug 9, 2012@xXGameReaperXx
I'm still waiting on the update! ETA?
-
View User Profile
-
Send Message
Posted Jul 18, 2012its not working. i tried fixing my bow and diamond shovel but it never got fixed.
-
View User Profile
-
Send Message
Posted May 28, 2012I think I am going to update this as soon as the Minecraft API is released because it should make this much simpler. My guess is it will be in the next official Minecraft update but when it does just check back here and this may be updated.
-
View User Profile
-
Send Message
Posted May 28, 2012@xXGameReaperXx
Was watching woopagaming and came across this plugin. Was really excited. Really Hope you will decide to update it sometime soon. The other blacksmith plugin is cool. But in my opinion lacks the simple design of just placing a block like you have yours. Signs are kind of obnoxious :s
-
View User Profile
-
Send Message
Posted Apr 19, 2012I may update this at some point, but I am not working on an update right now. I was attempting to make a game of my own, which is why I have not worked on this, but something is not working with drawing images to the screen so I have basically stopped working on that until I learn what I am doing wrong...
If you wanted to you could submit a ticket to the Blacksmith 2 team about a more user-friendly version that does not require having signs to do the work and just having the blacksmith work on a given block if you do something to it - this requires saving/loading which block are "anvils" so it becomes a little harder, but I thought it was worth it.
-
View User Profile
-
Send Message
Posted Apr 19, 2012Are you ever going to update this? I really can't stand the Blacksmith 2 branch and would much prefer this one just getting an update to the new bukkit version...
-
View User Profile
-
Send Message
Posted Apr 5, 2012With explicit permissions from xXGameReaperXx himself Thidox and I have updated this plugin! We now also provide economy support as well as the current materials usage as well as permissions support and many new things! Visit us at: http://dev.bukkit.org/server-mods/blacksmith_2/
-
View User Profile
-
Send Message
Posted Mar 15, 2012Hope you can get around to updating this soon. We would like to implement this on our server. Very much appreciate your time and effort. I know it doesn't mean much but I'll wish some good karma your way. :)
-
View User Profile
-
Send Message
Posted Mar 11, 2012Hello, y love this plugin LL, but... with this plugin all the spells disappear in a few minutes S: why ?
-
View User Profile
-
Send Message
Posted Mar 7, 2012Ok, I can see what I can do to update this to the newest version of bukkit. I have recently stopped playing Minecraft so stopped updating this plugin (I stop after about two weeks normally, then start back about a month later.) I just started playing Fallen Earth since it went free to play and I'm watching java tutorials to improve my knowledge of java, but I'll try to put some time aside to finish this. I have almost everything done including saving anvils so I should be able to finish it up and update it to the newer version soon.
-
View User Profile
-
Send Message
Posted Mar 7, 2012I don't normally ask if a plugin is going to be updated sometime soon, but I would dearly love to be using this one! Sadly on Bukkit Beta 1.2.3-R0.1 (and yes I know, the last update was for 1.1. but I've found 90% of plugins work anyway) this is just spitting errors:
2012-03-07 20:26:08 [SEVERE] Could not load 'plugins\Blacksmith-1.2.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at me.lukesmith.plugins.blacksmith.Blacksmith.<init>(Blacksmith.java:10) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144) ... 8 more Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 27 more
I'm happy to have a go at implementing any suggested fixes myself in the mean time or if someone could point me in the right direction. Again, thanks for this plugin and I look forward to being able to use it! :)
-
View User Profile
-
Send Message
Posted Feb 13, 2012Ok well i have good news to report! I found what was causing the error of chestplates not repairing. In ONE location I called them chestpieces so it did not get the durability for the chestpiece that it was, but i guess all tools have the same durability as the chestplate of the same material so they all worked, but leather does not have an equivalent so it did not. So with this i conclude that in the next update ALL ARMOR WILL WORK!
-
View User Profile
-
Send Message
Posted Feb 13, 2012@Vegy
I don't know what could be going wrong. What version of bukkit are you using, that may be the problem. I am developing this using 1.0.0 and I will fix anything that may be wrong with the future versions as soon as I'm done with the update I'm working on now.
-
View User Profile
-
Send Message
Posted Feb 13, 2012Played around with this some more, when something doesnt need repairing the mod throws up the correct message in game, its almost as if someting is struggling to remove the required items from my inventory.
-
View User Profile
-
Send Message
Posted Feb 13, 2012Hey, Re-downloaded, removed from server and uploaded it again but no joy. This appears when I right click the anvil with a tool/weapon:
13.02 19:18:05 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 13.02 19:18:05 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) 13.02 19:18:05 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537) 13.02 19:18:05 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 13.02 19:18:05 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100) 13.02 19:18:05 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) 13.02 19:18:05 [Server] INFO at net.minecraft.server.Packet15Place.handle(SourceFile:39) 13.02 19:18:05 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602) 13.02 19:18:05 [Server] INFO at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:283) 13.02 19:18:05 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187) 13.02 19:18:05 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460) 13.02 19:18:05 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61) 13.02 19:18:05 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340) 13.02 19:18:05 [Server] INFO at me.lukesmith.plugins.blacksmith.BlacksmithListener.onPlayerInteract(BlacksmithListener.java:120) 13.02 19:18:05 [Server] INFO at me.lukesmith.plugins.blacksmith.BlacksmithListener.removeItem(BlacksmithListener.java:545) 13.02 19:18:05 [Server] INFO java.lang.NullPointerException 13.02 19:18:05 [Server] SEVERE Could not pass event org.bukkit.event.player.PlayerInteractEvent to Blacksmith 13.02 19:18:05 [Server] INFO 0 13.02 19:18:05 [Server] INFO 9 13.02 19:18:05 [Server] INFO -
However, my enchanted iron armour gets fixed, except for the chestplate which says it's repaired but the durability doesn't change.
Thanks, it has worked for tools inthe past, which suggests it isn't the plugin that's the problem here...
-
View User Profile
-
Send Message
Posted Feb 12, 2012@Vegy
Wow it looks like something really messed up for you... Try re-downloading. I have no clue what could have caused all that to mess up because most of it is not even from me, a lot of it is from bukkit.
Also anything that has to do with plugins\blacksmith.properties can be ignored, that is what I will be using to save data to in the future update. I must have commented out the portion that creates the file so if you don't want that error to happen you can just create a text document and save it as Blacksmith.properties inside of the plugins\Blacksmith folder.
-
View User Profile
-
Send Message
Posted Feb 11, 201219:27:43 [SEVERE] Error: plugins\Blacksmith\Blacksmith.properties (The system cannot find the path specified)
-
View User Profile
-
Send Message
Posted Feb 11, 2012Hi, new problem now. When attempting to fix some items nothing happens in game (no message). Server is returning:
12.02 01:12:29 [Server] SEVERE Error: plugins/Blacksmith/Blacksmith.properties (No such file or directory) 12.02 01:12:18 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 12.02 01:12:18 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) 12.02 01:12:18 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537) 12.02 01:12:18 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 12.02 01:12:18 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100) 12.02 01:12:18 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) 12.02 01:12:18 [Server] INFO at net.minecraft.server.Packet15Place.handle(SourceFile:39) 12.02 01:12:18 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602) 12.02 01:12:18 [Server] INFO at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:283) 12.02 01:12:18 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187) 12.02 01:12:18 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460) 12.02 01:12:18 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61) 12.02 01:12:18 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340) 12.02 01:12:18 [Server] INFO at me.lukesmith.plugins.blacksmith.BlacksmithListener.onPlayerInteract(BlacksmithListener.java:120) 12.02 01:12:18 [Server] INFO at me.lukesmith.plugins.blacksmith.BlacksmithListener.removeItem(BlacksmithListener.java:545) 12.02 01:12:18 [Server] INFO java.lang.NullPointerException 12.02 01:12:18 [Server] SEVERE Could not pass event org.bukkit.event.player.PlayerInteractEvent to Blacksmith 12.02 01:12:18 [Server] SEVERE Error: plugins/Blacksmith/Blacksmith.properties (No such file or directory)
-
View User Profile
-
Send Message
Posted Feb 11, 2012Is there like this exact same thing but iconomy or something supported. everything on regualr bukkit site is broken
-
View User Profile
-
Send Message
Posted Feb 10, 2012@Dr_Proffesor
As of now yes. I'm adding anvils having to be set. After I do that I will add permissions and a config file.