mirror of
https://github.com/mt-mods/coloredwood.git
synced 2024-11-13 06:00:22 +01:00
use minetest_game's register-fence function
(so that colored fences connect to default fences)
This commit is contained in:
parent
6948fb0332
commit
187caeeb17
15
init.lua
15
init.lua
|
@ -232,23 +232,16 @@ minetest.override_item("default:wood", {
|
|||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1, ud_param2_colorable = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("coloredwood:fence", {
|
||||
drawtype = "fencelike",
|
||||
default.register_fence("coloredwood:fence", {
|
||||
description = "Colored wooden fence",
|
||||
tiles = { "coloredwood_fence_base.png" },
|
||||
paramtype = "light",
|
||||
texture = "coloredwood_fence_base.png",
|
||||
paramtype2 = "color",
|
||||
palette = "unifieddyes_palette_extended.png",
|
||||
place_param2 = 240,
|
||||
walkable = true,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, ud_param2_colorable = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
||||
},
|
||||
after_dig_node = unifieddyes.after_dig_node,
|
||||
drop = "default:fence_wood"
|
||||
drop = "default:fence_wood",
|
||||
material = "default:wood"
|
||||
})
|
||||
|
||||
minetest.override_item("default:fence_wood", {
|
||||
|
|
Loading…
Reference in New Issue
Block a user