techage/fusion_reactor/shell.lua
2022-01-10 21:39:36 +01:00

48 lines
1.0 KiB
Lua

--[[
TechAge
=======
Copyright (C) 2019-2022 Joachim Stolberg
AGPL v3
See LICENSE.txt for more information
TA5 Fusion Reactor Shell
]]--
-- for lazy programmers
local S2P = minetest.string_to_pos
local P2S = minetest.pos_to_string
local M = minetest.get_meta
local S = techage.S
minetest.register_node("techage:ta5_fr_shell", {
description = "TA5 Fusion Reactor Shell",
tiles = {
"techage_reactor_shell.png",
},
drawtype = "nodebox",
paramtype2 = "facedir",
paramtype = "light",
use_texture_alpha = "blend",
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
})
minetest.register_node("techage:ta5_fr_nucleus", {
description = "TA5 Fusion Reactor Nucleus",
tiles = {
"techage_reactor_shell.png^techage_collider_detector_core.png",
},
drawtype = "nodebox",
paramtype2 = "facedir",
paramtype = "light",
use_texture_alpha = "blend",
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
})