I am looking for a mod that simply does one thing: make furnaces smelt faster. This should not affect the fuel cost (and if it does, adjusts it accordingly). This should be controlled via a configuration file with a speed multiplier, as well as a plugin-specific reload command. For example: Normally, items that can be cooked/smelted take 10 seconds, regardless of what fuel is used. With this plugin, a multiplier of 2 would change that time to 5 seconds. The same amount of fuel is used. This is to provide a faster smelt time for building and cooking, lending to more time spent having fun and not sitting and waiting for furnaces (even with a hopper-minecart system in place, which gets expensive in the iron department). If anyone knows of such a plugin (that does not depend/require other blocks nearby), please let me know. If anyone is willing to try coding this out, I would really appreciate it. Thanks for looking!
I have not tried it, but I suppose it would work. Code:java Short cooktime = (short)100; @EventHandler public void furnaceBurn(FurnaceBurnEvent event) { Furnace furnace = (Furnace) event.getBlock().getState(); furnace.setCookTime(cooktime); } @EventHandler public void furnaceSmeltEvent(FurnaceSmeltEvent event) { Furnace furnace = (Furnace) event.getBlock().getState(); furnace.setCookTime(cooktime); } @EventHandler public void onInventoryClick(InventoryClickEvent event) { Block blocktype = event.getWhoClicked().getTargetBlock(null, 10); if (blocktype.getType() == Material.FURNACE || blocktype.getType() == Material.BURNING_FURNACE) { if ((event.getSlot() == 0 || event.getSlot() == 1) && event.getCursor().getType() != Material.AIR) { Furnace furnace = (Furnace) blocktype.getState(); furnace.setCookTime(cooktime); } } }
PatoTheBest why use a short and not an int? Also check the action is a left click in the furnace - you don't want it resetting if they right click
I already saw that plugin, but it isn't what I wanted. I want something that doesn't interfere with hopper operation. The plugin I want should just change the speed of furnaces on the server. No blocks nearby, no aesthetics.