mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-12 05:20:32 +01:00
readd new fence code
This commit is contained in:
parent
d957af5f68
commit
b9e4aba33c
|
@ -214,16 +214,27 @@ function default.register_fence(name, def)
|
||||||
-- Allow almost everything to be overridden
|
-- Allow almost everything to be overridden
|
||||||
local default_fields = {
|
local default_fields = {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
drawtype = "fencelike",
|
drawtype = "nodebox",
|
||||||
|
node_box = {
|
||||||
|
type = "connected",
|
||||||
|
fixed = {{-1/8, -1/2, -1/8, 1/8, 1/2, 1/8}},
|
||||||
|
-- connect_top =
|
||||||
|
-- connect_bottom =
|
||||||
|
connect_front = {{-1/16,3/16,-1/2,1/16,5/16,-1/8},
|
||||||
|
{-1/16,-5/16,-1/2,1/16,-3/16,-1/8}},
|
||||||
|
connect_left = {{-1/2,3/16,-1/16,-1/8,5/16,1/16},
|
||||||
|
{-1/2,-5/16,-1/16,-1/8,-3/16,1/16}},
|
||||||
|
connect_back = {{-1/16,3/16,1/8,1/16,5/16,1/2},
|
||||||
|
{-1/16,-5/16,1/8,1/16,-3/16,1/2}},
|
||||||
|
connect_right = {{1/8,3/16,-1/16,1/2,5/16,1/16},
|
||||||
|
{1/8,-5/16,-1/16,1/2,-3/16,1/16}},
|
||||||
|
},
|
||||||
|
connects_to = {"group:fence", "group:wood", "group:tree"},
|
||||||
inventory_image = fence_texture,
|
inventory_image = fence_texture,
|
||||||
wield_image = fence_texture,
|
wield_image = fence_texture,
|
||||||
tiles = {def.texture},
|
tiles = {def.texture},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
|
||||||
},
|
|
||||||
groups = {},
|
groups = {},
|
||||||
}
|
}
|
||||||
for k, v in pairs(default_fields) do
|
for k, v in pairs(default_fields) do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user