techage/wind_turbine/pillar.lua

39 lines
720 B
Lua

--[[
TechAge
=======
Copyright (C) 2019-2020 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_cylinder_07.obj",
selection_box = {
type = "fixed",
fixed = {-8/32, -16/32, -8/32, 8/32, 16/32, 8/32},
},
paramtype = "light",
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"},
})