techage/nodes/pillar.lua
2019-08-31 21:19:09 +02:00

40 lines
690 B
Lua

--[[
TechAge
=======
Copyright (C) 2019 Joachim Stolberg
GPL v3
See LICENSE.txt for more information
pillar
]]--
local S = techage.S
minetest.register_node("techage:pillar", {
description = S("TA4 Pillar"),
tiles = {"techage_concrete.png"},
drawtype = "mesh",
mesh = "techage_pillar.obj",
selection_box = {
type = "fixed",
fixed = {-8/32, -16/32, -8/32, 8/32, 16/32, 8/32},
},
backface_culling = true,
groups = {cracky=1},
on_rotate = screwdriver.disallow,
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "techage:pillar",
recipe = {"basic_materials:concrete_block"},
})