2019-05-05 23:29:00 +03:00
|
|
|
--[[
|
|
|
|
|
|
|
|
TechAge
|
|
|
|
=======
|
|
|
|
|
2020-01-26 01:15:44 +03:00
|
|
|
Copyright (C) 2019-2020 Joachim Stolberg
|
2019-05-05 23:29:00 +03:00
|
|
|
|
2020-10-19 20:09:17 +03:00
|
|
|
AGPL v3
|
2019-05-05 23:29:00 +03:00
|
|
|
See LICENSE.txt for more information
|
2022-01-03 23:40:31 +03:00
|
|
|
|
2019-05-05 23:29:00 +03:00
|
|
|
TA3 Coal Power Station Boiler Base
|
|
|
|
|
|
|
|
]]--
|
|
|
|
|
|
|
|
-- for lazy programmers
|
|
|
|
local M = minetest.get_meta
|
2019-07-02 22:33:12 +03:00
|
|
|
local S = techage.S
|
2019-05-05 23:29:00 +03:00
|
|
|
|
|
|
|
local Pipe = techage.SteamPipe
|
2020-01-26 01:15:44 +03:00
|
|
|
local networks = techage.networks
|
|
|
|
|
|
|
|
local function after_place_node(pos)
|
|
|
|
Pipe:after_place_node(pos)
|
|
|
|
end
|
|
|
|
|
|
|
|
local function after_dig_node(pos, oldnode)
|
|
|
|
Pipe:after_dig_node(pos)
|
|
|
|
end
|
2019-05-05 23:29:00 +03:00
|
|
|
|
|
|
|
minetest.register_node("techage:coalboiler_base", {
|
2019-07-02 22:33:12 +03:00
|
|
|
description = S("TA3 Boiler Base"),
|
2019-05-05 23:29:00 +03:00
|
|
|
tiles = {"techage_coal_boiler_mesh_base.png"},
|
|
|
|
drawtype = "mesh",
|
2019-11-08 23:10:05 +03:00
|
|
|
mesh = "techage_cylinder_12.obj",
|
2019-05-05 23:29:00 +03:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-13/32, -16/32, -13/32, 13/32, 16/32, 13/32},
|
|
|
|
},
|
|
|
|
|
2020-01-26 01:15:44 +03:00
|
|
|
after_place_node = after_place_node,
|
|
|
|
after_dig_node = after_dig_node,
|
2022-01-03 23:40:31 +03:00
|
|
|
|
2019-11-05 00:53:04 +03:00
|
|
|
paramtype = "light",
|
2019-05-05 23:29:00 +03:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_rotate = screwdriver.disallow,
|
|
|
|
groups = {cracky=2},
|
|
|
|
is_ground_content = false,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2020-01-26 01:15:44 +03:00
|
|
|
Pipe:add_secondary_node_names({"techage:coalboiler_base"})
|
2022-01-03 23:40:31 +03:00
|
|
|
|
2019-06-08 23:57:01 +03:00
|
|
|
-- for logical communication
|
|
|
|
techage.register_node({"techage:coalboiler_base"}, {
|
|
|
|
on_transfer = function(pos, in_dir, topic, payload)
|
2020-01-26 01:15:44 +03:00
|
|
|
return true
|
2019-06-08 23:57:01 +03:00
|
|
|
end
|
|
|
|
})
|
2019-05-05 23:29:00 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "techage:coalboiler_base",
|
|
|
|
recipe = {
|
|
|
|
{"default:stone", "", "default:stone"},
|
|
|
|
{"techage:iron_ingot", "", "techage:iron_ingot"},
|
|
|
|
{"default:stone", "default:stone", "default:stone"},
|
|
|
|
},
|
|
|
|
})
|