Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Mod for Luanti: lava furnace

I wrote a novel mod for Luanti, specifically for Mineclonia: Lava Furnace.

Go get the code for yourself!

Snippets of the readme

Furnaces powered by being adjacent to lava for Mineclonia. Yes, this breaks balance because it does not need fuel. This is for fun, for large-scale operations in the lategame. Do not install this mod if the imbalance bothers you.

Heavily based on Minetest Game (default/furnace.lua).

Using

Build a lava-powered furnace with a gold block surrounded by 8 cobblestone, or a gold block and a furnace. Lava source or flowing lava must be adjacent (NESWUD) touching this lava furnace.

Configuring

# Speed factor for cooking with lava furnace.
# 1 is a regular furnace, 2 is a blast furnace.
# Requires a restart to take effect.
lava_furnace.factor (Cooking speed factor for lava) float 4.0 0.0 16.0

# Comma-separated list of '<node>,<node>'
# Nodes that can power lava furnace when immediately adjacent
lava_furnace.fuel_nodes (Nodes that power lava furnace) string mcl_core:lava_source,mcl_core:lava_flowing

By default these settings make a lava furnace 4x faster than a regular furnace, and the lava furnace must touch a lava source or flowing lava.

It's a little overpowered for early gameplay, but it makes lategame play easier because you don't have to keep every single furnace stocked with fuel.

Screenshot of lava furnace cooking while in front of flowing lava

Additional credits

Additional notes

Thankfully, I was able to just adapt the existing furnace code. I just disabled consuming the fuel, and made it "fueled" if any of the 6 surface-adjacent nodes is lava source or flowing lava. I also disabled putting fuel in the fuel slot, which is still there in case you want to put a bucket for drying out a wet sponge.

It took me less than a day to build and test this, which means, of course, that it has not been battle-tested beyond my small server. Contributions welcome!

Comments