techage_modpack/techage/wind_turbine/pillar.lua

45 lines
854 B
Lua
Raw Permalink Normal View History

2020-05-31 23:31:18 +03:00
--[[
TechAge
=======
2021-08-01 12:00:22 +03:00
Copyright (C) 2019-2021 Joachim Stolberg
2020-05-31 23:31:18 +03:00
2020-10-25 23:32:47 +03:00
AGPL v3
2020-05-31 23:31:18 +03:00
See LICENSE.txt for more information
2022-01-04 21:43:30 +03:00
2020-05-31 23:31:18 +03:00
pillar
2022-01-04 21:43:30 +03:00
2020-05-31 23:31:18 +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",
selection_box = {
type = "fixed",
2022-01-28 20:22:52 +03:00
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},
2020-05-31 23:31:18 +03:00
},
2021-08-01 12:00:22 +03:00
climbable = true,
2022-01-28 20:22:52 +03:00
walkable = true,
2020-05-31 23:31:18 +03:00
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"},
})