Browse Source

Replace neutral fence by the default one.

master
sys4-fr 1 year ago
parent
commit
7f09ef4c3d
1 changed files with 13 additions and 13 deletions
  1. +13
    -13
      init.lua

+ 13
- 13
init.lua View File

@@ -249,24 +249,24 @@ minetest.override_item("default:wood", {
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1, ud_param2_colorable = 1},
})

default.register_fence("coloredwood:fence", {
description = "Colored wooden fence",
texture = "coloredwood_fence_base.png",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, ud_param2_colorable = 1, not_in_creative_inventory = 1, fence = 1},
sounds = default.node_sound_wood_defaults(),
after_place_node = unifieddyes.recolor_on_place,
after_dig_node = unifieddyes.after_dig_node,
drop = "default:fence_wood",
material = "default:wood"
})
local fence_data = table.copy(minetest.registered_items["default:fence_wood"])
fence_data.name = "coloredwood:fence"
fence_data.description = "Colored wooden fence"
fence_data.tiles = {"coloredwood_fence_base.png"}
fence_data.paramtype2 = "color"
fence_data.palette = "unifieddyes_palette_extended.png"
fence_data.groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, ud_param2_colorable = 1, fence = 1, not_in_creative_inventory = 1}
fence_data.after_place_node = unifieddyes.recolor_on_place
fence_data.after_dig_node = unifieddyes.after_dig_node
fence_data.drop = "default:fence_wood"
minetest.register_item("coloredwood:fence", fence_data)

minetest.override_item("default:fence_wood", {
palette = "unifieddyes_palette_extended.png",
ud_replacement_node = "coloredwood:fence",
after_place_node = unifieddyes.recolor_on_place,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, ud_param2_colorable = 1, fence = 1}
groups = {fence = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, ud_param2_colorable = 1}
})

-- ============================


Loading…
Cancel
Save