1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-17 15:48:31 +01:00
homedecor_modpack/fences.lua

105 lines
3.3 KiB
Lua
Raw Normal View History

-- This file adds fences of various types
minetest.register_node("homedecor:fence_brass", {
description = "Brass Fence/railing",
drawtype = "fencelike",
tiles = {"homedecor_tile_brass.png"},
inventory_image = "homedecor_fence_brass.png",
wield_image = "homedecor_pole_brass.png",
paramtype = "light",
is_ground_content = true,
selection_box = {
type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
},
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
walkable = true,
})
minetest.register_node("homedecor:fence_wrought_iron", {
description = "Wrought Iron Fence/railing",
drawtype = "fencelike",
tiles = {"homedecor_tile_wrought_iron.png"},
inventory_image = "homedecor_fence_wrought_iron.png",
wield_image = "homedecor_pole_wrought_iron.png",
paramtype = "light",
is_ground_content = true,
selection_box = {
type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
},
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
walkable = true,
})
minetest.register_node("homedecor:fence_picket", {
drawtype = "signlike",
description = "Unpainted Picket Fence",
tiles = {"homedecor_fence_picket.png"},
inventory_image = "homedecor_fence_picket.png",
wield_image = "homedecor_fence_picket.png",
paramtype = "light",
is_ground_content = true,
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
walkable = true,
paramtype2 = 'wallmounted',
selection_box = {
type = "wallmounted",
},
})
minetest.register_node("homedecor:fence_picket_white", {
drawtype = "signlike",
description = "White Picket Fence",
tiles = {"homedecor_fence_picket_white.png"},
inventory_image = "homedecor_fence_picket_white.png",
wield_image = "homedecor_fence_picket_white.png",
paramtype = "light",
is_ground_content = true,
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
walkable = true,
paramtype2 = 'wallmounted',
selection_box = {
type = "wallmounted",
},
})
minetest.register_node("homedecor:fence_privacy", {
drawtype = "signlike",
description = "Wooden Privacy Fence",
tiles = {"homedecor_fence_privacy.png"},
inventory_image = "homedecor_fence_privacy.png",
wield_image = "homedecor_fence_privacy.png",
paramtype = "light",
is_ground_content = true,
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
walkable = true,
paramtype2 = 'wallmounted',
selection_box = {
type = "wallmounted",
},
})
minetest.register_node("homedecor:fence_barbed_wire", {
drawtype = "signlike",
description = "Barbed Wire Fence",
tiles = {"homedecor_fence_barbed_wire.png"},
inventory_image = "homedecor_fence_barbed_wire.png",
wield_image = "homedecor_fence_barbed_wire.png",
paramtype = "light",
is_ground_content = true,
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
walkable = true,
paramtype2 = 'wallmounted',
selection_box = {
type = "wallmounted",
},
})