Revert "Convert fences to NDT_CONNECTED."
This reverts commit d979293f1448882e3a2eb0f7a3ecbaaf6b189d36.
This commit is contained in:
parent
d672f9a7db
commit
28976d3e6c
@ -213,27 +213,16 @@ 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 = "nodebox",
|
drawtype = "fencelike",
|
||||||
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
|
||||||
|
@ -1716,7 +1716,7 @@ minetest.register_node("default:ladder_steel", {
|
|||||||
|
|
||||||
default.register_fence("default:fence_wood", {
|
default.register_fence("default:fence_wood", {
|
||||||
description = "Wooden Fence",
|
description = "Wooden Fence",
|
||||||
texture = "default_fence_wood.png",
|
texture = "default_wood.png",
|
||||||
material = "default:wood",
|
material = "default:wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults()
|
sounds = default.node_sound_wood_defaults()
|
||||||
@ -1724,7 +1724,7 @@ default.register_fence("default:fence_wood", {
|
|||||||
|
|
||||||
default.register_fence("default:fence_acacia_wood", {
|
default.register_fence("default:fence_acacia_wood", {
|
||||||
description = "Acacia Fence",
|
description = "Acacia Fence",
|
||||||
texture = "default_fence_acacia_wood.png",
|
texture = "default_acacia_wood.png",
|
||||||
material = "default:acacia_wood",
|
material = "default:acacia_wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults()
|
sounds = default.node_sound_wood_defaults()
|
||||||
@ -1732,7 +1732,7 @@ default.register_fence("default:fence_acacia_wood", {
|
|||||||
|
|
||||||
default.register_fence("default:fence_junglewood", {
|
default.register_fence("default:fence_junglewood", {
|
||||||
description = "Junglewood Fence",
|
description = "Junglewood Fence",
|
||||||
texture = "default_fence_junglewood.png",
|
texture = "default_junglewood.png",
|
||||||
material = "default:junglewood",
|
material = "default:junglewood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults()
|
sounds = default.node_sound_wood_defaults()
|
||||||
@ -1740,7 +1740,7 @@ default.register_fence("default:fence_junglewood", {
|
|||||||
|
|
||||||
default.register_fence("default:fence_pine_wood", {
|
default.register_fence("default:fence_pine_wood", {
|
||||||
description = "Pine Fence",
|
description = "Pine Fence",
|
||||||
texture = "default_fence_pine_wood.png",
|
texture = "default_pine_wood.png",
|
||||||
material = "default:pine_wood",
|
material = "default:pine_wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults()
|
sounds = default.node_sound_wood_defaults()
|
||||||
@ -1748,7 +1748,7 @@ default.register_fence("default:fence_pine_wood", {
|
|||||||
|
|
||||||
default.register_fence("default:fence_aspen_wood", {
|
default.register_fence("default:fence_aspen_wood", {
|
||||||
description = "Aspen Fence",
|
description = "Aspen Fence",
|
||||||
texture = "default_fence_aspen_wood.png",
|
texture = "default_aspen_wood.png",
|
||||||
material = "default:aspen_wood",
|
material = "default:aspen_wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
sounds = default.node_sound_wood_defaults()
|
sounds = default.node_sound_wood_defaults()
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 232 B |
Binary file not shown.
Before Width: | Height: | Size: 450 B |
Binary file not shown.
Before Width: | Height: | Size: 231 B |
Binary file not shown.
Before Width: | Height: | Size: 233 B |
Binary file not shown.
Before Width: | Height: | Size: 230 B |
Loading…
x
Reference in New Issue
Block a user