Autocrafting Bench
This plugin adds in a new mechanic to the game, Autocrafting Benches. These benches work much like the regular Furnaces except that they use an additional crafting bench UI to allow the recipe to be entered and used!
Top Features
- Use most recipes - even those that plugins add! (See the known bugs section for extended info)
- Hopper items in and out of the Autocrafting Bench - just like a normal furnace!
- Crafting takes the same time as smelting an item normally, and it uses fuel too. This helps to make the plugin less over powered.
- Requires at least 1 copy of the recipe in the bench at all times.
Use
You craft the Autocrafting Benches with the following recipe: That is: Blank, Workbench, Blank Piston, Furnace, Piston Blank, Piston, Blank
When you place the Autocrafting Bench, you can right-click it to access the inventory:
The sponge is a placeholder item used by the plugin to store data, hovering on it gives the following sort of output (This has been pre-filled, after original crafting it will be blank)
Upon clicking the placeholder, you are brought to the crafting inventory of the Autocrafting Bench. In this example we will set it up to craft 7 furnaces (As one copy will be left always)
Clicking on the result slot will return us to the original inventory. As there is now enough items to craft, the sponge has changed to bedrock and will begin cooking if there's any fuel.
Known Issues
- If you do not have a hopper under the Autocrafting Bench, you can only craft one item at once. - I don't know if there's anyway to fix this without messing in the internal code of CraftBukkit.
- You cannot shift-click into the crafting inventory (Due to a CraftBukkit bug)
Planned Features
Some of these features may cause minor-breaking updates with the plugin. This will be mentioned in the file that would cause the breaking change.
- Add player ownership
- Utilize the Bukkit API for craft events to trigger them when the crafting is done. (Requires player ownership)
Could we get a update for this Please?
Best thing ever thanks please keep uptodate thanks!!!!!
When the chunk is unloaded or the server restarts the plugin forgets the data types. e.g. I put in the sprude wood (17:1). works as long as the chunk is loaded and the server is running. If I'm moving far away or restart the server the furnace contains oak wood (17:0). I looked in your code. Everything looks correct. You correctly save the data type into the meda data and you read and set it again.
The problem might be on bukkit side because all functions that get and set the idem id and data type are deprecated. It forces the use of the Material that only has WOOD and no subtyped for the sorts of WOOD (I guess bukkit converts the type id and data type to this enum and so the data type is lost).
@ittwit
Pictures are back, sorry about that.
I added it as words in the description as well just in case!
For Some Reason I Cant See The Recipe For The Autocrafting Bench. Just For Future Reference What Actually Is It?
Awesome plugin! This is sorcery! Also no config work out of the box and easy to use!
Super plugin! Please keep it always up to date and as compatible with prev. CB as you can!
Thanks!
@owneroffullofpluginsserver
Glad you like it!
this is awesome
@shadvalentine
Yes, that could be possible, and there's no permission nodes yet. You can always post tickets for any additions you want to see!
@smv1978
Interesting, any details of plugins you had on and what you were doing?
2013-10-27 09:19:29 [SEVERE] Could not pass event BlockPlaceEvent to AutoCrafting v0.0.1 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:36) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at com.norcode.bukkit.buildinabox.BuildChest$4.processBlock(BuildChest.java:346) at com.norcode.bukkit.buildinabox.BuildManager$BuildTask.tick(BuildManager.java:90) at com.norcode.bukkit.buildinabox.BuildManager.run(BuildManager.java:41) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:524) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.NullPointerException at me.meiamsome.ac.BlockListeners.onPlace(BlockListeners.java:26) at sun.reflect.GeneratedMethodAccessor201.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)
Do you think that you could make it so that if an item is fed into the autocrafting bench that is not part of the recipe the autocrafting bench will pass the item through to the hopper on the bottom .. or spit it out on the ground?
what are the permissions for this plugin?
I like the way it works but how do I deny players from using it?
Is there any way we could automate this? or maybe use this with redstone so it's "real" autocrafting, and maybe an imput accept through hoppers?
Awesome plugin by the way ;)
EDIT: I just found out how to do the hopper input :d
Possible update to 1.6.4?
@deleted_11036019
As BDKing00 said, it was being approved! It's there now, however!
@deleted_11036019
It's probably being approved by the staff.
It would be nice if you added a download...