techage/wind_turbine/pillar.lua

45 lines
854 B
Lua
Raw Permalink Normal View History

2019-08-26 23:19:59 +03:00
--[[
TechAge
=======
2021-06-19 16:06:08 +03:00
Copyright (C) 2019-2021 Joachim Stolberg
2019-08-26 23:19:59 +03:00
2020-10-19 20:09:17 +03:00
AGPL v3
2019-08-26 23:19:59 +03:00
See LICENSE.txt for more information
2022-01-03 23:40:31 +03:00
2019-08-26 23:19:59 +03:00
pillar
2022-01-03 23:40:31 +03:00
2019-08-26 23:19:59 +03:00
]]--
local S = techage.S
minetest.register_node("techage:pillar", {
description = S("TA4 Pillar"),
tiles = {"techage_concrete.png"},
drawtype = "mesh",
mesh = "techage_cylinder_07.obj",
2019-08-26 23:19:59 +03:00
selection_box = {
type = "fixed",
fixed = {-10/32, -16/32, -10/32, 10/32, 16/32, 10/32},
},
collision_box = {
type = "fixed",
fixed = {-4/32, -16/32, -4/32, 4/32, 16/32, 4/32},
2019-08-26 23:19:59 +03:00
},
2021-06-19 16:06:08 +03:00
climbable = true,
walkable = true,
2019-11-05 00:53:04 +03:00
paramtype = "light",
backface_culling = true,
2019-08-26 23:19:59 +03:00
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"},
})