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

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

  1. Offline


    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.

    • 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:
    Alternate Chest Setup (open)


    Alternate Furnace Layouts (open)


    And you could just keep going with it.

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


    I aim to please :cool:

    It is a nice feature after all. I do kind of like it, and it turned out really well I think.
  3. Offline


    Is there anyway to change the way the lava furnace is built? I don't like that one much.
  4. Offline


    Yes there is for me. It would mean I would have to reprogram then entire plugin. For everyone else, no. Sorry...
  5. Hello Arcwolf. All I have to say is this plugin is awesome enough to actually draw me out of lurking the forums to sign up and post a comment. Kudos to you for an awesome plugin. I'm very much looking forward to implementing this on my server. "Automated" furnaces and saving valuable buckets is the best idea I have seen in a long time.

    I will put in a feature request here though..

    If the layout of the blocks to make the furnace must be as they are in the video, can you make it so that admins can have options as to what building material TYPES go into it?

    ie: instead of obsidian,stonestairs,and glass.. the admin could choose what three materials the forge needed to be made of, like ironblock or gold if they chose it in the config file instead.
  6. Offline


    I suppose that would be possible... It was one thing I though about before I released this but it got chopped on the cutting room floor. I'll see what I can do, but it wont be "hot fix" quick like what I did for Matthew S ... maybe next week... maybe...
  7. Request:

    I think these used to work with lava blocks, when I last tested weeks ago, but now they only can be filled with buckets. Could you make it so lava blocks work as well please?
  8. Offline


    Debug level 1 however there are no permissions on lavablocks. Since its was never meant to work that way.
  9. hi!
    i love this plugin but 1 proplem with this:
    I have ur furnace
    i have Levelcraft plugin ( http://forums.bukkit.org/threads/me...ugin-adding-skills-to-minecraft-617-860.2261/ )

    The levelcraft has "Forgery" skill which increases by using furnace and smelting stuff.
    With lavafurnace use i cannot gain experience at all to my forgery.
    Can you make this plugin to work out with this Forgery skill in levelcraft? could it be possible?
  10. Yes, but are you willing to make it so you can refill it with lava blocks? The issue with lava buckets, for us, is that they are endless.
  11. Offline


    The only problem I see is with production chests...
    The LavaFurnace should not have any problems with levelcraft "IF" you do not use the production chests. From the source code I've looked at it seems that you receive Exp when smelting is completed AND you remove the items smelted from the furnace. Since no player removes the items from the furnace there is no player to give Exp to.

    Other then that I see no reason why levelcraft wouldnt work correctly. I am doing nothing to the furnace after it is fueled by lava. I'm simply listening for when it finishes burning and emptying the lava crucible. Nothing more nothing less.

    As far as making it "compatible" there is nothing I can do to make a production chest compatible, the furnace should naturally be compatible. If its not, I'm not sure why. But I doubt it would be easily fixable.


    It should be compatible except for production chests. However, since both plugins do something to the furnace and with the furnace. You will have to choose which to use or accept the fact you wont gain experience with a lavafurnace. Sorry.

    So, are you asking to have it removed from debugging and placed into normal mode? I can add permissions to it. Simply placing the plugin into level 1 debug ONLY enables lava blocks as a fuel source. It should NOT cause any logging to occur if thats what you are worried about.

    However, in the next version I'm working on, I have already added the LavaFurnace.fuel node to lava blocks. Would that help?

    If anyone wants to do some beta testing ...

    Here are the changes:
    version 1.3
    Added the ability to define different blocks for the furnace construction
    All three layers can now be defined as well as the belt and the glass door.
    Added permission checks to LavaBlocks if debug 1 is turned on.

    There is a readme in the zip provided but no one reads that anyway so here is the info...
    Show Spoiler

    valid Layer One and door blocks

    Valid Belt Blocks


    Valid Layer Two & Layer Three blocks


    New Permission node:
    LavaFurnace.admin.lavablockfuel <- can fuel any lava furnace...
    LavaFurnace.admin.lavablockfuel <- can fuel only their own lava furnace...

    New Config items:

    (this accepts defined valid block types for the top most layer of the furnace)

    (this accepts defined valid block types for the second layer of the furnace)

    (this accepts defined valid block types for the bottom layer of the furnace)

    (this accepts defined valid block types for the belt that runs around the middle of the furnace)

    (this accepts defined valid block types for the crucible door of the furnace)

    Even if you choose to totally remove the belt around the furnace via the config the Production chests still need to be placed 1 block down and 2 blocks to the right and left of the sign for each furnace.

    If you choose to disable the belt around the furnace then anything placed where the belt used to be will be ignored by the furnace detection methods.

    Only the blocks defined in the config constitute a valid furnace. If a furnace was created with some other block setup then that furnace will be invalid if the blocks are changed in the config.

    Examples of new valid furnaces with proper config:
    [​IMG] or

    You will again need to delete your config for this version... sorry about that, I know its getting old :-/

    Give it a test drive if you want. I've tested it pretty good I think, but I cant think of everything so...

    test version removed...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 16, 2016
  12. Thanks for the update! will test

    Hmm, I have:

    # Furnace Block Settings #

    So the defaults. Constructed furnace like always, but it says "maybe something is wrong" etc, so it's not turning it into a furnace :/


    Well I went back to 1.2, the lava blocks work fine now, I knew about the debug before, totally missed it this time around, sorry!

    We have one issue now. We have these cool lava furnaces, but people just fill the furnace with coal anyways, reason? One stack of coal = 512 items, one lava = 160 or so items. So with coal, they have to check far less often :(

    I'd love for it to be possible to make lava last longer than it is now, not sure it's possible coding wise? Otherwise I guess I will have to go for unlimited fuel option :(

    Also would like an option that prevents manually stuffing coal in these furnaces, if possible :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 16, 2016
  13. Offline


    Thats strange, I tested it with the defaults the most it ... should work what that... I dont suppose you could make a video of it doing it? So I can see what your doing exactly... so I can reproduce it? Nothing fancy just a quicky...

    Also, what happens if you have a preexisting furnace and then update? Does that furnace still work? or is it deleted? Also, just FYI, you can not create a furnace that is already fueled. The crucible MUST be empty when you create it. No lavablock in there to start...

    Well the thing is minecrafts internal furnace variable that determines the burn time is a short int. So the MAX it can be set to is 32767. So, unless you set it to infinite the best it will run is about 1.6 times normal lava. I'm not sure right now how I would increase above that max. I'll have to experiment around and get back to you. In the mean time, I assume you have lava_furnace_timer= set to 32767?

    I'll have to think about that one too ... looks like I've got my work cut out for me huh.
  14. I used the exact same furnace I had, and I just checked, zzzz, it still had fuel, so this is my bad...
    Perhaps some way to make it use multiple lava blocks or so? dunno :p

    And another request, can you make a config flag to enable/disable chest protection? I'd like to have them FFA, players can then lock them using our chest protections, that way they can decide who has access :) ty

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 16, 2016
  15. Offline


    Yes, I can work something out like that. It will be on my todo list. Ok... well, quite the little list now. So that should keep me busy for a little while. :)

    I'll maybe post something new in a few days. TTFN


    Ok, I've managed to retrofit in a furnace governor to allow admin's to set values WAY over 32767... I mean we are talking WAY ...like 2,147,483,647 way! Think that will help @Joy ? :cool:

    There might be some drift (+ or - a few seconds) based on server tick lag because I'm having to take control of the count until it gets down to 32767. But tests show its working very nicely. Performance should not be affected by this. Its just a counter. No worries there.
  16. Great update.

    We have a new issue tho, and it's very mysterious...on our test server, I can make a furnace just fine, on live server, we can't get them to work. I've tried it, several players have tried it....

    I guess there is some sort of conflict? But it worked fine on 1.2, on both servers. Both have the exact same config file, I didn't change anything to the block settings, it's very weird :S

    It just keeps saying furnace is wrong when placing the [lavafurnace] sign. We have other plugins using [tags] in signs on line 1, but as I said, 1.2 works, anything you changed in that area from 1.2 to 1.3 ?
  17. Suggestion:
    Make it so you can allow other players to use your furnace?
    kinda like an lwc thing..
    EDIT: XD didnt see the other post... But i second the idea.. :D
  18. Offline


    It wont be the tag that is causing the issue. The tag is simply the trigger in the plugin to switched over to the furnace block placement method. That in turn tests if a furnace was built right. The checks changed but the coordinates involved in the checks did not... The values in the checks are used directly from the config...

    One quick note, if there is a problem in that area it would have to also be breaking any existing furnaces. Meaning if it wont let you build them it wont let any previously working furnace exist either.

    Question, are there any pre-existing furnaces on the live server? If so do they get removed when you update to 1.3. If they dont then you truly do have a mystery. Because that cant happen. The checks that are involved in creating a furnace and in testing to make sure a furnace is still valid are one and the same. I reuse that method over and over.

    Question, you are absolutely positive the config file was deleted on the live server before you updated to 1.3?

    In any case, I'll pick through the detection methods and make sure everything is correct. Thanks for helping test. Its much appreciated.


    Another question, on the live server with 1.3 did you try building a furnace in all four directions. IE a correctly built furnace with the sign facing each of the four compass directions? Its a different check for each direction. I can see maybe one being at fault. But all 4 seems unlikely...
  19. Config got reset yes. Furnaces.dat is empty.

    Current config: http://pastie.org/2113008

    Built totally fresh furnaces, at least, tried to.

    Only tried 1 direction indeed, well, I did, but I didn't check with others, I doubt we coincidentally all used the same direction Oo
  20. Offline


    Yea, that would be a bit odd :confused:

    Hmmm, I cant think of a reason why there would be a conflict. I mean, I'm not doing anything with the blocks that compose a furnace. I am simply checking to make sure that the blocks are 1) all there 2) that they are made up of the defined block types 3) that if you have defined a offset (ie 44:2) that that too is correct.

    But since you are using the default values check 3 is ignored.

    Damn this is perplexing... Everything is working fine on my test server. Why the hell wouldnt it work on a live server... that just doesnt make sense... I'm reluctant to ask but if I put up a special debug version would you be willing to test it on the live server. I should be able to make it so that the creator of the furnace receives a message telling WHY the furnace wasnt accepted. Also, I'll try and make it admin only, so players wont see it... Maybe if you agree to that we can shed some light on whats going on behind the scenes so to speak.


    Ok, here is another version with a lot of new debugging added. If you choose to help, then you will need to Delete your config, and then put the plugin into debug 6. Two things will happen when you as an admin with built permissions attempt to build a furnace. If it doesnt build it will:

    1) output a chat to you with information on which layer was at fault, what direction it detected your furnace was facing and what the config said the blocks should have been.

    2) output a Server log entry with all the blocks it detected for the furnace you created.

    Example of a correctly formated default furnace:
    2011-06-23 19:39:51 [INFO] ***************************
    2011-06-23 19:39:51 [INFO] ***LavaFurnace Debug L6 ***
    2011-06-23 19:39:51 [INFO] ***************************
    2011-06-23 19:39:51 [INFO] facing= 5
    2011-06-23 19:39:51 [INFO] Level 1= 49:0,49:0,49:0,20:0,0,0,49:0,49:0,49:0
    2011-06-23 19:39:51 [INFO] Level 2= 0,49,61:5,49,49,0,49,49,49,49
    2011-06-23 19:39:51 [INFO] Belt = 67:1,67:1,67:2,67:3,67:2,67:3,67:2,67:3,67:0,67:0,67:0
    2011-06-23 19:39:51 [INFO] Level 3= 49,49,49,49,49,49,49,49,49
    2011-06-23 19:39:51 [INFO] ***************************
    It will only do that once per attempt to create a furnace as an admin.

    Thats all.

    debug version removed...
  21. Offline


    I changed to 1.3, had it working in 1.2. I didn't change the config I had before, just generated the new file and changed it to have what I wanted, which is exactly what Joy pasted except I only allow 1 furnace per player. (We tend to have large public forges, and each is allowed 1 somewhere private.)

    We use these permissions:
    - 'LavaFurnace.admin.fuel'
    - 'LavaFurnace.admin.use'
    - 'LavaFurnace.chests'
    - 'LavaFurnace.player.build'
    - 'LavaFurnace.player.destroy'

    1.3 before the debug version is working great for us. Let me know if there is anything you want me to test to try to break it? I have forges facing all directions as it is, they still work, even if broken and rebuilt.
  22. Offline


    Just an FYI, I've made some small bug fixes in the debug version just I posted. Specifically, if a admin sets up the furnace to not have the cobblestonestairs or (belt) around the furnace. IE you set the belt to 0 (air) then in the previous version I overlooked the fact that the damage / destroy test was still looking at the blocks where the belt should be and would not let you destroy them if you didnt have lavafurnace permissions for destroy. That was unintended. If you set it to 0 it should ignore the belt for building AND destroying. It should allow you do destroy items where the belt would normally be not prevent you.

    If you have it working with 1.3 and are not having any problems at all... I'm not sure what I can have you test other then changing the blocks a furnace is composed of. Just to play around with that feature. That was the major change in the design so far. The minor change was the ability to set the furnace burn time above 32767. It can now be increased up to 2147483647. Thats like nearly 7 years in real time... So yea if you want to test that... I dont know if I'll care in 7 years lol

    TBH, I'm concerned about why Joy might be having issues. If you are not having problems then I'm confused as to what is wrong with Joy's install. What is different? :oops: My test server it working fine too. I cant imagine a conflict causing this... there just isnt anything that is being done to conflict with!


    Just a quick warning though. I wouldnt recommend playing around with the building block types on a live server. It will make all existing furnaces invalid since the checks rely on the config to test for valid furnaces. If you make a change then the tests for old furnaces will be wrong and they will be deleted. If you have a lot of users and a lot of furnaces... you could have a lot of pissed players :) so be careful.
  23. Offline


    HaHAHA yeah I can imagine. No, we have all of TWO people playing atm. One kid went to grandparents for a week, and all of their friends are on vacation. So only the two of us even know I added it, and I know where every single one is.

    Quick question to make sure my math is right, if I want lava to last as long as a stack of coal, I need it set to 102400? So set it to (number of items to smelt)*200?
  24. Offline


    That looks correct... curses is still down so I have to go by memory I think coal was 1600... I think. So with a stack of 64 * 1600 = 102400 + or - a few seconds that should work the same as 64 coal.
  25. On live:

    11:42:01 [INFO] ***************************
    11:42:01 [INFO] ***LavaFurnace Debug L6 ***
    11:42:01 [INFO] ***************************
    11:42:01 [INFO] facing= 5
    11:42:01 [INFO] Level 1= 49:5,49:5,49:5,20:0,0,0,49:5,49:5,49:5
    11:42:01 [INFO] Level 2= 0,49,61:5,49,49,0,49,49,49,49
    11:42:01 [INFO] Belt = 67:1,67:1,67:2,67:3,67:2,67:3,67:2,67:3,67:0,67:0,67:0
    11:42:01 [INFO] Level 3= 49,49,49,49,49,49,49,49,49
    11:42:01 [INFO] ***************************

    Would "49:5" be the problem? Those damage values are caused by mcMMO, it needs them :p
  26. Offline


    yes... and if I'm going to fix that I'll have to re-write some things... It will take a little but but I think I can manage something... I'll have to get back to you on that.
  27. Perhaps just a simple "ignore-item-dmg" true/false option in the config, for those who don't need cloth furnaces :p
  28. Offline


    I love you guys :D That was a fun read this morning "thumbs up"
  29. Offline


    lol, cloth furnaces... cloth isnt valid anyway, but 44:1 would be for the top layer See the pic's I submited in the original beta message. Still, I have a good idea how to fix it. Simply, if you didnt enter a damage value in the config ignore the damage values for the blocks. It just requires a rewrite of the detection method... time consuming and a little tedious but not hard.
  30. Offline


    small bug it wont allow falsebook to work right on item collecting/depositing
  31. Offline


    Thats not a bug, that would be a conflict and I dont see any way to resolve it. Its not open source so I cant see what its doing internally. But if I were to venture a guess it doesnt like something with my furnace or chest inventory management. Only one plugin at a time can poke around with that stuff. Sorry... noted as conflicting - unresolvable

Share This Page