2017-02-11 10:03:42 +10:00
|
|
|
|
|
|
|
minetest.register_node("stm_nodes:chimney", {
|
2017-02-19 09:54:37 +10:00
|
|
|
description = "Tin Chimney",
|
2017-02-11 10:03:42 +10:00
|
|
|
tiles = {
|
|
|
|
"stm_nodes_chimney_top.png",
|
|
|
|
"stm_nodes_chimney_front.png",
|
|
|
|
"stm_nodes_chimney_side.png",
|
|
|
|
"stm_nodes_chimney_side.png^[transformFX",
|
|
|
|
"stm_nodes_chimney_front.png",
|
|
|
|
"stm_nodes_chimney_front.png"
|
|
|
|
},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.1875, -0.1875, -0.125, 0.1875, 0.1875, 0.5}, -- NodeBox1
|
|
|
|
{-0.1875, -0.1875, -0.125, 0.1875, 1, 0.1875}, -- NodeBox2
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {cracky = 1, ventilation = 1},
|
|
|
|
sounds = default.node_sound_metal_defaults()
|
|
|
|
})
|
|
|
|
|
2017-02-19 09:54:37 +10:00
|
|
|
minetest.register_node("stm_nodes:chimney2", {
|
|
|
|
description = "Copper Chimney",
|
|
|
|
tiles = {
|
|
|
|
"stm_nodes_chimney_top2.png",
|
|
|
|
"stm_nodes_chimney_front2.png",
|
|
|
|
"stm_nodes_chimney_side2.png",
|
|
|
|
"stm_nodes_chimney_side2.png^[transformFX",
|
|
|
|
"stm_nodes_chimney_front2.png",
|
|
|
|
"stm_nodes_chimney_front2.png"
|
|
|
|
},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.1875, -0.1875, -0.125, 0.1875, 0.1875, 0.5}, -- NodeBox1
|
|
|
|
{-0.1875, -0.1875, -0.125, 0.1875, 1, 0.1875}, -- NodeBox2
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {cracky = 1, ventilation = 2},
|
|
|
|
sounds = default.node_sound_metal_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2017-02-12 11:00:01 +10:00
|
|
|
minetest.register_abm({
|
2017-02-19 09:54:37 +10:00
|
|
|
nodenames = {"stm_nodes:chimney", "stm_nodes:chimney2"},
|
2017-02-12 11:00:01 +10:00
|
|
|
interval = 1.0,
|
|
|
|
chance = 2,
|
|
|
|
action = function(pos, node)
|
|
|
|
if minetest.find_node_near(pos, 1, {"default:furnace_active2"}) then
|
|
|
|
minetest.add_particlespawner({
|
|
|
|
amount = 4,
|
|
|
|
time = 1,
|
|
|
|
minpos = {x=pos.x-0.1, y=pos.y+0.8, z=pos.z-0.1},
|
|
|
|
maxpos = {x=pos.x+0.1, y=pos.y+1, z=pos.z+0.1},
|
|
|
|
minvel = {x=-0.2, y=1, z=-0.2},
|
|
|
|
maxvel = {x=0.2, y=3, z=0.2},
|
|
|
|
minacc = {x=0, y=0.1, z=0},
|
|
|
|
maxacc = {x=0, y=0.2, z=0},
|
|
|
|
minexptime = 1,
|
|
|
|
maxexptime = 2,
|
|
|
|
minsize = 5,
|
|
|
|
maxsize = 10,
|
|
|
|
collisiondetection = false,
|
|
|
|
vertical = false,
|
|
|
|
texture = "stm_nodes_steam.png",
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2017-02-11 10:03:42 +10:00
|
|
|
minetest.register_node("stm_nodes:tank", {
|
2017-02-19 09:54:37 +10:00
|
|
|
description = "Small Tin Boiler",
|
2017-02-11 10:03:42 +10:00
|
|
|
tiles = {
|
2017-02-12 11:00:01 +10:00
|
|
|
"stm_nodes_boiler_top.png",
|
|
|
|
"stm_nodes_boiler.png",
|
|
|
|
"stm_nodes_boiler.png",
|
|
|
|
"stm_nodes_boiler.png",
|
|
|
|
"stm_nodes_boiler.png",
|
2017-02-19 10:22:54 +10:00
|
|
|
"stm_nodes_boiler_pipe.png",
|
2017-02-11 10:03:42 +10:00
|
|
|
},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.1875, -0.5, -0.1875, 0.1875, -0.1875, 0.1875}, -- NodeBox1
|
|
|
|
{-0.3125, -0.375, -0.25, 0.3125, 0.4375, 0.25}, -- NodeBox2
|
|
|
|
{-0.25, -0.375, -0.3125, 0.25, 0.4375, 0.3125}, -- NodeBox3
|
|
|
|
{-0.25, -0.4375, -0.25, 0.25, 0.5, 0.25}, -- NodeBox4
|
|
|
|
{-0.0625, -0.5, -0.4375, 0.0625, 0.125, -0.3125}, -- NodeBox5
|
|
|
|
{-0.0625, 0, -0.4375, 0.0625, 0.125, 0.0625}, -- NodeBox6
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {cracky = 1, boiler = 1},
|
2017-02-19 10:22:54 +10:00
|
|
|
sounds = default.node_sound_metal_defaults()
|
2017-02-19 09:54:37 +10:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("stm_nodes:tank2", {
|
|
|
|
description = "Small Copper Boiler",
|
|
|
|
tiles = {
|
|
|
|
"stm_nodes_boiler_top2.png",
|
|
|
|
"stm_nodes_boiler2.png",
|
|
|
|
"stm_nodes_boiler2.png",
|
|
|
|
"stm_nodes_boiler2.png",
|
|
|
|
"stm_nodes_boiler2.png",
|
|
|
|
"stm_nodes_boiler_pipe2.png"
|
|
|
|
},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.1875, -0.5, -0.1875, 0.1875, -0.1875, 0.1875}, -- NodeBox1
|
|
|
|
{-0.3125, -0.375, -0.25, 0.3125, 0.4375, 0.25}, -- NodeBox2
|
|
|
|
{-0.25, -0.375, -0.3125, 0.25, 0.4375, 0.3125}, -- NodeBox3
|
|
|
|
{-0.25, -0.4375, -0.25, 0.25, 0.5, 0.25}, -- NodeBox4
|
|
|
|
{-0.0625, -0.5, -0.4375, 0.0625, 0.125, -0.3125}, -- NodeBox5
|
|
|
|
{-0.0625, 0, -0.4375, 0.0625, 0.125, 0.0625}, -- NodeBox6
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {cracky = 1, boiler = 2},
|
2017-02-19 10:22:54 +10:00
|
|
|
sounds = default.node_sound_metal_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("stm_nodes:stand", {
|
|
|
|
description = "Tin Machinery Stand",
|
|
|
|
tiles = {
|
|
|
|
"stm_nodes_tin2.png",
|
|
|
|
},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox1
|
|
|
|
{0.1875, -0.5, 0.1875, 0.5, -0.375, 0.5}, -- NodeBox2
|
|
|
|
{-0.5, -0.5, -0.5, -0.1875, -0.375, -0.1875}, -- NodeBox3
|
|
|
|
{-0.5, -0.5, 0.1875, -0.1875, -0.375, 0.5}, -- NodeBox4
|
|
|
|
{0.1875, -0.5, -0.5, 0.4375, -0.375, -0.1875}, -- NodeBox5
|
|
|
|
{-0.4375, -0.4375, -0.4375, -0.1875, 0.4375, -0.1875}, -- NodeBox6
|
|
|
|
{0.1875, -0.5, 0.1875, 0.4375, 0.4375, 0.4375}, -- NodeBox7
|
|
|
|
{-0.4375, -0.5, 0.1875, -0.1875, 0.4375, 0.4375}, -- NodeBox8
|
|
|
|
{0.1875, -0.5, -0.4375, 0.4375, 0.4375, -0.1875}, -- NodeBox9
|
|
|
|
{-0.4375, 0.375, -0.4375, 0.4375, 0.4375, 0.4375}, -- NodeBox10
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {cracky=1,},
|
|
|
|
sounds = default.node_sound_metal_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("stm_nodes:stand2", {
|
|
|
|
description = "Copper Machinery Stand",
|
|
|
|
tiles = {
|
|
|
|
"stm_nodes_copper2.png",
|
|
|
|
},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox1
|
|
|
|
{0.1875, -0.5, 0.1875, 0.5, -0.375, 0.5}, -- NodeBox2
|
|
|
|
{-0.5, -0.5, -0.5, -0.1875, -0.375, -0.1875}, -- NodeBox3
|
|
|
|
{-0.5, -0.5, 0.1875, -0.1875, -0.375, 0.5}, -- NodeBox4
|
|
|
|
{0.1875, -0.5, -0.5, 0.4375, -0.375, -0.1875}, -- NodeBox5
|
|
|
|
{-0.4375, -0.4375, -0.4375, -0.1875, 0.4375, -0.1875}, -- NodeBox6
|
|
|
|
{0.1875, -0.5, 0.1875, 0.4375, 0.4375, 0.4375}, -- NodeBox7
|
|
|
|
{-0.4375, -0.5, 0.1875, -0.1875, 0.4375, 0.4375}, -- NodeBox8
|
|
|
|
{0.1875, -0.5, -0.4375, 0.4375, 0.4375, -0.1875}, -- NodeBox9
|
|
|
|
{-0.4375, 0.375, -0.4375, 0.4375, 0.4375, 0.4375}, -- NodeBox10
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {cracky=1,},
|
|
|
|
sounds = default.node_sound_metal_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("stm_nodes:pipes", {
|
|
|
|
description = "Pipe",
|
|
|
|
tiles = {
|
|
|
|
"stm_nodes_pipe_top.png",
|
|
|
|
"stm_nodes_pipe_top.png",
|
|
|
|
"stm_nodes_pipe.png",
|
|
|
|
},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.375, -0.5, -0.375, 0.375, 0.5, 0.375}, -- NodeBox12
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {cracky=1, ventilation=1, pressure=1},
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
sounds = default.node_sound_metal_defaults()
|
|
|
|
})
|