Page 1 of 1

[Mod] Smelter [0.1] [smelter]

PostPosted: Mon Oct 29, 2012 10:38
by MasterGollum
This MOD introduces a new kind of Furnace called Smelter. It is intended for provide a mean for smelt materials, for example to create alloys in a more realistic way. This MOD adds also a new kind of crafts (smelting) with a 2x2 grid.

The first release transform iron_ore in iron_ingot also iron_ingot + coal_lump in steel_ingot as example of uses.

CRAFT for a Smelter
[clay brick] [clay brick] [clay brick]
[clay brick] [] [clay brick]
[clay brick] [clay brick] [clay brick]

For developers:

Anyone that intends to define a new smelting they MUST be registered with the crafter MOD.

Examples:
crafter.register_craft({
type = "smelting",
output = "smelter:iron_ingot",
recipe = {
{"default:iron_lump"}
}
})

crafter.register_craft({
type = "smelting",
output = "default:steel_ingot",
recipe = {
{"smelter:iron_ingot"},
{"default:coal_lump"}
}
})


Images:
Image

License: WTFPL.

Depends: default, crafter (http://minetest.net/forum/viewtopic.php?pid=48534)

Download: https://github.com/MasterGollum/smelter/zipball/master

Releases:
Version 0.1 Initial release

PostPosted: Mon Oct 29, 2012 10:45
by PilzAdam
Maybe you can use bricks to craft it? It would be a bit more realistic.

PostPosted: Mon Oct 29, 2012 10:54
by MasterGollum
PilzAdam wrote:Maybe you can use bricks to craft it? It would be a bit more realistic.


Umm can be, I'm not sure if ancient smelters were done with bricks. There are several civilizations that worked with metals but they didn't use bricks (well as long as I know, maybe is required further investigation). I did it with cobbles because the furnace is also done with cobbles. It is like a reinforced furnace :P

The node sucks a little but a smelter looks like a stone cylinder with a hole
http://www.ehow.com/how_4856726_build-metal-smelter.html
In our case, a cube "holed" :)

PostPosted: Mon Oct 29, 2012 10:56
by MasterGollum
btw is it possible to unregister a craft? For example to remove the iron lump -> steel ingot to force to use the smelter

PostPosted: Mon Oct 29, 2012 11:10
by PilzAdam
MasterGollum wrote:btw is it possible to unregister a craft? For example to remove the iron lump -> steel ingot to force to use the smelter

I also thought about that but I think its not possible.

PostPosted: Mon Oct 29, 2012 11:36
by MasterGollum
PilzAdam wrote:
MasterGollum wrote:btw is it possible to unregister a craft? For example to remove the iron lump -> steel ingot to force to use the smelter

I also thought about that but I think its not possible.


I thought twice and I changed the recipe as you suggested, also because it adds complexity to the building of a smelter. Otherwise it is too easy to create steel from the game.

It is a shame, so the only way is to provide a default/init.lua patched?

PostPosted: Mon Oct 29, 2012 13:39
by GloopMaster
Um... Yeah.

Also, make this use technic alloy furnace recipes as well (detect technic then the recipes) and you will be god.

PostPosted: Mon Oct 29, 2012 14:25
by MasterGollum
GloopMaster wrote:Um... Yeah.

Also, make this use technic alloy furnace recipes as well (detect technic then the recipes) and you will be god.


Oh do you mean this?
http://technicpack.wikia.com/wiki/Alloy_Furnace
Lol I didn't know it existed! :)

Well I was planning to do a release of moreores for the Smelter, where the alloys must be crafted using this item. BTW looking at the recipe and image I will change my recipe and the textures :P Maybe I can do 2 versions of the Smelter one simple done as the original recipe I did that doesn't reach a high temperature, and then a more advanced crafted with the bricks that allows to smelt anything inside.

PostPosted: Mon Oct 29, 2012 23:19
by GloopMaster
No, i mean technic mod for minetest. If you havent been living under a rock, you should know what it is.

PostPosted: Mon Oct 29, 2012 23:30
by MasterGollum
GloopMaster wrote:No, i mean technic mod for minetest. If you havent been living under a rock, you should know what it is.


Oh ok, never used it :P I'm more old fashioned, it looked... well too technic to me. It will require another version of the technic Mod changing the recipes for use the Smelter. I already did it with moreores, and added zinc, lead and brass. After test it I will upload here the link.

PostPosted: Mon Oct 29, 2012 23:42
by GloopMaster
i more wanted to have a non-electric alloy furnace.

PostPosted: Tue Oct 30, 2012 10:13
by PilzAdam
MasterGollum wrote:Oh ok, never used it :P I'm more old fashioned, it looked... well too technic to me.

+1

PostPosted: Tue Oct 30, 2012 12:32
by GloopMaster
PilzAdam wrote:
MasterGollum wrote:Oh ok, never used it :P I'm more old fashioned, it looked... well too technic to me.

+1


O.o you crazy, its not too technic till there's spaceships.

PostPosted: Tue Oct 30, 2012 15:40
by RealBadAngel
Alloy Furnace and Electric alloy furnace already exists in technic, zinc, brass, stainless steel and some other stuff too ;)

PostPosted: Sun May 12, 2013 21:17
by Dan Duncombe
Does it cook faster than a regular furnace? if so, how?

PostPosted: Sun May 12, 2013 21:34
by MasterGollum
RealBadAngel wrote:Alloy Furnace and Electric alloy furnace already exists in technic, zinc, brass, stainless steel and some other stuff too ;)


What allows this mod is to be able to create your own smelt recipes.

PostPosted: Sun May 12, 2013 21:34
by MasterGollum
Dan Duncombe wrote:Does it cook faster than a regular furnace? if so, how?


No, it is not more faster.

PostPosted: Sun Nov 17, 2013 00:29
by SegFault22
Is it intentional that the smelter does not consume fuel?
If not, you can fix it easily by taking this code from the end of the ABM:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
        meta:set_string("fuel_totaltime", fuel.time)
        meta:set_string("fuel_time", 0)
        if consume then
          local stack = inv:get_stack("fuel", 1)
          stack:take_item()
          inv:set_stack("fuel", 1, stack)
    end


And replacing it with this code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
        meta:set_string("fuel_totaltime", fuel.time)
        meta:set_string("fuel_time", 0)

        inv:set_stack("fuel", 1, cooked.item[1])

Other than that, this mod is awesome. It should be added to minetest_game ASAP.

PostPosted: Thu Dec 12, 2013 16:20
by durtective6
uh when i try and put things to smelt in the top right corner slot it gives this error

16:19:25: ERROR[main]: ServerError: LuaError: ...8-win32-msvc\minetest-0.4.8\bin\..\mods\crafter\init.lua:91: attempt to index a nil value
16:19:25: ERROR[main]: stack traceback:
16:19:25: ERROR[main]: ...8-win32-msvc\minetest-0.4.8\bin\..\mods\crafter\init.lua:91: in function '_check_craft'
16:19:25: ERROR[main]: ...8-win32-msvc\minetest-0.4.8\bin\..\mods\crafter\init.lua:26: in function 'get_craft_result'
16:19:25: ERROR[main]: ...8-win32-msvc\minetest-0.4.8\bin\..\mods\smelter\init.lua:100: in function <...8-win32-msvc\minetest-0.4.8\bin\..\mods\smelter\init.lua:81>

EDIT: that world i used it in can no longer be used as it crashes upon loading, giving the same error

Re: [Mod] Smelter [0.1] [smelter]

PostPosted: Thu Dec 10, 2015 00:02
by Christian9
is there a way to edit this to add a new crafting method? im trying to add "extraction" for my dinosaur mod but it doesnt work it keeps saying hacky_swap_node a nil value ive tried removeing hacky_ but it wont work