[FUN/MECH] Lava Furnace - Furnaces that run on lava [BUKITDEV]

Discussion in 'Archived: Plugin Releases' started by Arcwolf, May 30, 2011.

  1. Offline

    Arcwolf

    Lava Furnace - Furnaces that run on lava:

    The basic idea of this plugin is to allow players to create a furnace that will run on lava but not consume buckets. It allows for customization by admins for fuel burn time, cook time, per player cook times and amount of furnaces per player. It is by default pretty balanced, but is customizable by admins for personal preference in balancing or even cheating if you so choose.

    Features:
    • User created Furnaces that consume only the lava not the bucket
    • Also can be used with regular fuel sources through the Minecraft furnace interface.
    • Potential to create infinitely fueled furnaces via config file
    • Can set furnace burn times up to 2147483647 via config
    • Can set furnace cook times from 1 to 4 x normal speed via config
    • Can define the blocks a furnace is created from via config
    • Works with multi-worlds
    • Permissions via PermissionsEX, GroupManager, nijikokun based permissions, bukkit permissions or OPs
    • Lava level is easily viewable through glass door and changes with burn time of furnace
    • Optional small or large Production Chests (*based on Zarius's idea)
    • Optional Custom Smelt-ables via config
    • Production chest smelt priority from TOP LEFT to BOTTOM RIGHT
    • Per user cook times, per item cook times from 1 to 4 x normal speed via commands
    • Per player group build limits
    Tutorial Video & Review (by ValBGaming)

    Production Chest Photo:
    [​IMG]
    Alternate Chest Setup (open)

    [​IMG]

    Alternate Furnace Layouts (open)

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

    And you could just keep going with it.


    [​IMG] if you like this plugin and want to support me. Its much appreciated. :)
     
  2. Offline

    chris221221

    can you post the 953 bukkit version? if possible ty
     
  3. Offline

    Arcwolf

    Sure, Posted in OP just below the main download. I'll only be fixing bugs in newest version though.
     
    chris221221 likes this.
  4. Offline

    chris221221

    Thank you so much
     
  5. Hi Arcwolf,
    i got a problem and i was reading here a bit and did not found my problem it in so pls help. my problem is that, and u can trust me i did all the ´´installation´´ of this plugin same as in he tutorial (the file and the vid) but when i start my server no config file appears and the server dont show me that the mod is loaded... but the furnace file is in PLUGIN-folder:eek: pls help...
     
  6. Offline

    Arcwolf

    Did you extract the Jar from the zip file?

    Thats the only thing I can think could be wrong. Do other plugins load? Because as far as I know the server will at least attempt to load ANY jar placed in the plugin folder. No error message at all means something wasnt installed right. Even a totally empty jar will generate an error message in the server console.

    LavaFurnace.jar should be placed in your server plugin folder. Beyond that I haven't the foggiest idea why it wont load for you.
     
  7. Offline

    NEO

    @Arcwolf

    Players have the lavafurnace.admin.use node but cant use lava furnaces made by others. They get the message "you try to open the lid but cant" Not seeing any node related to chest access for a lava furnace.
     
  8. Offline

    Arcwolf

    There isnt an admin or player node for chests. There was no demand for such a node. There is however a lavafurnace.chest which allows select users access to all and ability to build lavafurnace production chests. Users were stating they preferred the use of LWC or some other chest protection plugin. So there is (or at least I feel there is) no need to protect a chest beyond simple measures.

    If you want you could use the config option allow_freeforall_chests=true and then anyone would be allowed to access the lavafurnace production chests. Making way for LWC or whatever plugin you use for chest protection. lavafurnace.chests would still be needed for players to place production chests though.

    lavafurnace.admin.use is for the use of any lavafurnace furnace block (id-61 or 62). lavafurnace.player.use allows players to access only their own lavafurnace furnaces. The chests are separate and not controlled by the use node.
     
  9. Caught error, we have 0 furnaces setup atm.

    Code:
    19:46:11 [SEVERE] Could not pass event BLOCK_PISTON_RETRACT to LavaFurnace
    java.lang.ClassCastException: org.bukkit.material.MaterialData cannot be cast to org.bukkit.material.PistonBaseMaterial
            at org.bukkit.event.block.BlockPistonEvent.getDirection(BlockPistonEvent.java:41)
            at org.bukkit.event.block.BlockPistonRetractEvent.getRetractLocation(BlockPistonRetractEvent.java:18)
            at plugin.arcwolf.lavafurnace.Listeners.LFBlockListener.onBlockPistonRetract(LFBlockListener.java:30)
            at org.bukkit.plugin.java.JavaPluginLoader$42.execute(JavaPluginLoader.java:533)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
            at net.minecraft.server.BlockPiston.g(BlockPiston.java:85)
            at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
            at net.minecraft.server.World.k(World.java:453)
            at net.minecraft.server.World.applyPhysics(World.java:432)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
            at net.minecraft.server.World.k(World.java:453)
            at net.minecraft.server.World.applyPhysics(World.java:432)
            at net.minecraft.server.World.update(World.java:401)
            at net.minecraft.server.World.setTypeIdAndData(World.java:385)
            at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:118)
            at net.minecraft.server.World.j(World.java:1951)
            at net.minecraft.server.World.doTick(World.java:1723)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  10. Offline

    Arcwolf

    According to that error message that is being caused by this line of code.

    Code:
    int blockX = event.getRetractLocation().getBlockX();
    I dont see anything wrong with that. I'm not sure that I'm doing anything wrong here. I'm not casting to anything in my plugin that has to do with pistons. Maybe a bukkit bug? or an interaction with another plugin? I've never seen that error message before. And I have pistons all over my test world trying to push and pull furnaces. <shrugs>

    --edit--

    I see another post about something like this in the BigBrother thread. Maybe there IS some kind of bug in Bukkit with pistons right now?

    --edit 2--

    Ok, I've added an option in the config to disable piston protection. That totally removes any chance of that error happening if you disable it. I'll be watching the forums and issues thread to see if anyone else has problems / solutions to the class cast exception...

    --file removed--
     
  11. Offline

    MDFord

    Hi, got too say i love this mod,however I do have a problem with it. It probabily a conflict etc, because after it finnishes everything in the suply chest it wont work again without breaking and remaking it, also after it has used up all the lava it stops and wont open the glass. Now I have also tried another VERY similar mod the "dwarf forge" almost identical apart from setup diffrently and doesnt use the lava up. The point is that mod does the exact same thing, but in that mod I have found a solution. To activate/deactivate you thump the forge :) this turns it off or on and more importantly makes it work again. To be honest much prefer this mod as it just looks great and isnt as simple to make as a forge on a lava square. Would there be any chance of a future feature like a redstone switch/lever etc to shut it down restart it?
     
  12. Offline

    Arcwolf

    The whole furnace or just the supply chests?
    This sounds like its related to the first issue. It may be possible that it stops working because the furnace has already been broken. Then that would mean that you would have to rebuild the furnace or at least fix what was broken about the furnace. In any case, I cant replicate either issue. So if you want some kind of bug fix like solution to this you will have to provide further information.
    Lavafurnace version, bukkit version, config, steps to recreate the problem.

    no. There is no chance of a redstone switch for that purpose. The furnace issues you are describing should be fixed not worked around with some kind of redstone reset switch. Besides, that wouldnt make sense from the stand point of this plugin. There are a complex set of checks involved in making sure the furnace is built correctly. If any one of those checks return a false then the furnace is assumed broken and is removed from operation. Those checks occur every second of game time.

    So, if you have a redstone reset switch then exactly how is that suppose to reset anything. Basically it would mean you would have a redstone instant build switch for a furnace. Since the only way a furnace can stop working is if its broken, then the only way it can be unbroken is if it is repaired. ... no... just no, sorry :) that would be a programming nightmare. While dwarf forge may seem to work the same way, it does not. They are as different as apples and oranges, maybe even apples and bananas.

    Anway, get back to me on that information about the issue you are having and I'll see if I can help you further.
     
  13. Offline

    MDFord

    Hi, and thanks for the fast response, after everything in the chest is finnished the furnace will no longer take new things placed in the chest. The furnace however is still lit and anything placed in it works, but doesnt go to the processed chest just stays in the furnace. the problem appears to be with the actual furnace. if for example i break the glass and sign replace them it says something about it appears to be not set up right. if i remove the furnace piece and replace that with a normal non lit one i can again make the sign and it works.
    Anyway your mod version 1.734 and i believe 1.733, i've always had this problem.bukkit 1000
    config:
    Code:
    Version=1.374
    Config created: 2011/07/22 09:00:24
    #
    # Lava time from 1 to 2147483647
    # Coal = 1600  LavaBucket = 20000
    #
    lava_furnace_timer=20000
    #
    # 1 to 4 times normal speed
    #
    cook_timer=1
    #
    infinite_lava=true
    max_player_furnaces=5
    #
    allow_production_chests=true
    #
    allow_freeforall=true
    #
    allow_freeforall_chests=true
    #
    use_large_chests=true
    #
    explosion_proof=true
    #
    ################################
    #    Furnace Block Settings    #
    ################################
    layer_one_blocks=49:0
    layer_two_blocks=49
    layer_three_blocks=49
    belt_blocks=67:0
    door_block=20:0
    ################################
    #
    # Debug levels 1 to 6
    #
    Debug=0
    infinate lava both true and false. have used both. Too be honest I wouldnt go too far as this server is just a family one, me and 3 kids, and there are a lot of mods 20+ plus itemcraft ones. So this is probabily a conflict or my fault. As for the switch that was my fault for wrongly asuming the other mod was a copy of this one. As for recreating the problem I have no idea as this always happens for me, but obviously not for others, as i said probabily a conflict or my fault. So unless its an obvious config problem dont go out of your way trying to sort it out. I will however like to say thanks to yourself and all the other modders. its people like you who stop my kids from getting bored and running around the house driving us crazy.
     
  14. Offline

    Arcwolf

    Hmmm, that is interesting. Conflict or not the furnace should not stay lit if the lava has been exhausted in the crucible. That may have been a flaw in the coding. I've made some adjustments in how the furnaces are reset if detected broken in my latest test build. So maybe that part of the problem will be fixed.

    The chest issue on the other hand is a different matter all together. I'm scratching my head on how the chests would stop working. It boils down to whether or not minecraft detects the block 54 at a given coordinate. Everything about a lavafurnace coordinate wise is calculated from the coordinates of the lavafurnace sign. So in this case a properly placed production chest would be -1 Y and to the left and right 1 or 2. Double chests are calculated ONLY if a chest exists at left or right of the sign 1 or 2. (1 or 2 being +/-X or +/-Z depending on the direction the sign is facing.)

    So you see, For a chest to stop working it means that the chest object doesnt exist. The process is very simple, check for a chest, make a copy of its contents, modify chest inventory. Copy the contents of the chest to the furnace, or check the furnace and copy its smelted contents to a chest. Remove contents of furnace. There isnt much to it.

    TLDR :) its so simple it would be VERY hard for something to break it. Not saying its impossible, I'm just thinking there is something else going on that is manifesting itself as a chest issue. I'll keep looking into it.
    It may be a conflict or it may not be. When I'm satisfied that I can find nothing wrong then we assume fault lies elsewhere ;)

    I'm glad to help, and happy my efforts bring a little more fun and enjoyment to the game. Keep a watch out for a new version. I'm thinking maybe by monday or tuesday next week.
     
  15. Offline

    Stormbow

    I loved this idea. With this as the ONLY plugin on my server, any time I break a wooden sign, fence, or crafting table (I notice the trend of "things made of wood"...), I get twice as many of the item I broke. I consistently get two crafting tables back, 2 fences back, or 2 signs back (1 not useable correctly) if I break any of these items.
     
  16. Offline

    Arcwolf

    I dont make any changes to item drops. Its not nor can it be this plugin causing it.
     
  17. Offline

    MDFord

    Hi, again I dont mean to be presumptuous or anything but I had a thought. I'm quite happy to wait for your next release to see if that helps me, but if you realy want to find out whats going on for your own benefit. I could upload somewhere my complete server draw zipped. So you can test it yourself. As I said dont take that the wrong way im not trying too say I have a problem fix it, as the problem is probabily my fault. Just trying to help you understand why your mod does what it does. However i havetested it and the zip would be about 80meg.
     
  18. Offline

    Stormbow

    Well, I don't know what it is or was then. Magically, as is usually the case when I say something isn't working right, it's magically corrected itself and I'm not getting the double drops anymore.

    Murphy is constantly making my life miserable... -.-;
     
  19. Offline

    Arcwolf

    If you want to upload it somewhere, I can take a look at it. I make no promises on a resolution to your problem nor a timeframe for me to be able to look it over. But I'll make an effort to do so. In the interest of fixing a bug, should there be one.
    As a computer repair tech I often have that effect on computers and clients will say the same thing. Walk into a room with a broken computer ... touch the keyboard while the client is there all sure that its totally broken... then... Hey it wasnt working a second ago. What did you do? nothing... lol, I just had to look at it and put the fear of GOD into it :p

    Anyway, old Murphy is fickle sometimes
     
  20. Offline

    Arcwolf

    Version 1.38 is uploaded,

    Main change is the addition of bukkit permissions. However, there are some small code tweaks here and there that might help with some of the strange issues a select few people have noticed. Also maybe a bug fix or two in there. Nothing major though. Piston protection now has an option in the config. The default of which is false. Should you want to protect your furnaces from malicious piston activities you can enable it. However, there may be some kind of bug in bukkit that causes class cast exceptions when a piston event is fired. So just be aware of that.
     
  21. Offline

    gore23

    I can make the furnace, but as soon as i try to put something in the chest nothing is produced or moved to the furnace...
     
  22. Offline

    Arcwolf

    Did you enable production chests in the config? If not then what you are experiencing is normal.
     
  23. Offline

    doen

    nice plugin, worked like a charm. btw, lavafurnace's smelting speed(on my local server):

    cook_timer=2 --> 2x regular furnace speed
    cook_timer=3 --> 4x regular furnace speed
    cook_timer=4 --> 8x regular furnace speed

    i expected 2x,3x,4x :p
     
  24. Offline

    NEO

    @Arcwolf

    Due to the tile entity bug in mc 1.7 some lava furnaces we have had there signs wiped and stopped working. When trying to recreate the sign it says "maybe something is wrong with the furnace construction" Is there any way to fix this.

    Weve also had this issue if someone places a block infront of the furnace.
     
  25. Offline

    Arcwolf

    Make sure the furnace is built correctly. If for some reason the furnace was broke while the glass door was over the lava and/or the lava was still in the crucible you will need to reset the furnace by removing the lava and replacing the glass door in the correct spot. Then place the [lavafurnace] sign.

    I'm not sure what you mean.
    Here are my tests just moments ago:

    Code:
    1x= 10s
    2011-08-04 15:32:12 [INFO] Started Smelting
    2011-08-04 15:32:22 [INFO] Finished smelting ItemStack{STONE x 1}
    2x= 6s
    2011-08-04 15:35:03 [INFO] Started Smelting
    2011-08-04 15:35:09 [INFO] Finished smelting ItemStack{STONE x 1}
    3x= 3s
    2011-08-04 15:37:29 [INFO] Started Smelting
    2011-08-04 15:37:31 [INFO] Finished smelting ItemStack{STONE x 1}
    4x= 2s
    2011-08-04 15:39:43 [INFO] Started Smelting
    2011-08-04 15:39:45 [INFO] Finished smelting ItemStack{STONE x 1}
    Smelting cobblestone into stone with 1x resulted in 10 seconds to complete.

    2x was 6 seconds
    3x was 3 seconds
    4x was 2 seconds

    10 seconds is the baseline, so: ( unless a fraction of a second was calculated could have been +/- 0.9 seconds )
    10 / 2 = 5 result was 6 pretty close about 1.5x instead of 2.
    10 / 3 = 3.3 result was 3 or 3x
    10 / 4 = 2.5 result was 2 or 4x
    fractional seconds are not displayed but it can be assumed that roughly, 5s, 3.3s and 2.5s occurred before the event was fired to display the finished smelting message.

    8x speed should have been 1.25 seconds. Even looking at the fractional reading I'm only seeing 2.5 for the 4x speed. 3x was showing around 3.2 ...
    I'm pretty sure the multiples are correct. I duno whats up with your server.
     
  26. Offline

    Gazownik

    Hello i just downloaded this pluging and pplied to my server....thought that it'll work but what i see ?... good question because i see that nothing happens after i build my furnance.

    I have permissions , already set to work with furnance (anyway tried without permissions and still didnt work)
    And the problem is there when im placing Sign, when im typing [lavafurnance] nothing happen ;/ .
    Anyone know some solution for that problem?
    Ive got no errors with that plugin (LavaFurnance 1.38 enabled etc etc)

    Thanks
     
  27. Offline

    Arcwolf

    If thats what your typing in its no wander it isnt working. Its [lavafurnace]

    1 too many N's in your furnace spelling.

    ------in other news-------

    I've completed preliminary work in 1.4 beta. In it I have added the ability to set Per player cook times, and Per player item cook times.

    So you could have a player who has iron ore smelt 4 times as fast but gold ore only 1x and another player can cook fish 3 times faster then everyone else but all his ore smelting is at 1x.

    Here is the change log:

    Code:
    version 1.4
    
    added the ability to set a cook time per user.
    added the following ingame and console commands:
    /lfadd <username>
    /lfrem <username>
    /lfset <username> <itemname or itemid> <multiplier 1 - 4>
    /lflist <username>
    added the following permissions
    lavafurnace.admin.lfadd
    lavafurnace.admin.lfrem
    lavafurnace.admin.lfset
    lavafurnace.admin.lflist
    lavafurnace.player.lflist
    added config option to allow console commands.
    Per player cook time settings override global cooktime setting for
    lavafurnaces in config.
    added per item cook time for per player cook time
    valid items for use in /lfset are as follows:
    cobblestone, sand, goldore, ironore, log, diamondore, cactus, pork, porkchop,
    rawporkchop, clay, fish, rawfish. 4, 12, 14, 15, 17, 56, 81, 319, 337, 349
    If anyone wants to test out the beta for me. I'd appreciate it.

    Version in console will report -9.14 -9 for beta .14 for version.
     

    Attached Files:

  28. Offline

    Gazownik

    Omg man thanks im so stupid xD........
     
  29. Offline

    Altobot

    Hey guys.
    well, cool plugin, but, where is the config file?
     
  30. Offline

    Arcwolf

    config file is located in the lavafurnace directory in your server's plugin directory.

    \plugins\LavaFurnace\config.ini
     
  31. Offline

    bluehasia

    Nice video, like the creative of building one of these forges


    and question. where would i get that graphic mod you are using?
     

Share This Page