techage/fusion_reactor/shell.lua

48 lines
1.0 KiB
Lua
Raw Normal View History

2022-01-08 00:35:12 +03:00
--[[
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
2022-01-10 23:39:36 +03:00
minetest.register_node("techage:ta5_fr_shell", {
description = "TA5 Fusion Reactor Shell",
2022-01-08 00:35:12 +03:00
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(),
})
2022-01-10 23:39:36 +03:00
minetest.register_node("techage:ta5_fr_nucleus", {
description = "TA5 Fusion Reactor Nucleus",
2022-01-08 00:35:12 +03:00
tiles = {
2022-01-10 23:39:36 +03:00
"techage_reactor_shell.png^techage_collider_detector_core.png",
2022-01-08 00:35:12 +03:00
},
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(),
})