mirror of
https://github.com/mt-mods/coloredwood.git
synced 2025-07-14 05:40:25 +02:00
Compare commits
5 Commits
2019-05-31
...
2021-04-14
Author | SHA1 | Date | |
---|---|---|---|
be4df6fc88 | |||
9c6fe5206b | |||
cd5e026e31 | |||
08fde44bb8 | |||
f2f5e5f73e |
@ -1,3 +1,4 @@
|
||||
default
|
||||
unifieddyes
|
||||
moreblocks?
|
||||
signs_lib?
|
||||
|
17
init.lua
17
init.lua
@ -88,6 +88,7 @@ for _, color in ipairs(unifieddyes.HUES_WITH_GREY) do
|
||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
minetest.rotate_node(itemstack, placer, pointed_thing)
|
||||
end,
|
||||
on_dig = unifieddyes.on_dig,
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2, not_in_creative_inventory=1, ud_param2_colorable = 1},
|
||||
}
|
||||
)
|
||||
@ -101,6 +102,11 @@ local coloredwood_cuts = {}
|
||||
|
||||
if coloredwood.enable_stairsplus then
|
||||
|
||||
local groups2 = table.copy(minetest.registered_items["default:wood"].groups)
|
||||
groups2.wood = nil
|
||||
groups2.ud_param2_colorable = 1
|
||||
groups2.not_in_creative_inventory=1
|
||||
|
||||
for _, i in pairs(minetest.registered_nodes) do
|
||||
|
||||
local chk = string.sub(i.name, 1, 20)
|
||||
@ -123,7 +129,7 @@ if coloredwood.enable_stairsplus then
|
||||
end
|
||||
|
||||
minetest.override_item(i.name, {
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1, not_in_creative_inventory=1, ud_param2_colorable = 1},
|
||||
groups = groups2,
|
||||
paramtype2 = "colorfacedir",
|
||||
palette = "unifieddyes_palette_greys.png",
|
||||
airbrush_replacement_node = "coloredwood:"..class.."_wood_grey_"..shape
|
||||
@ -167,7 +173,8 @@ default.register_fence("coloredwood:fence", {
|
||||
palette = "unifieddyes_palette_extended.png",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, ud_param2_colorable = 1, not_in_creative_inventory=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
material = "coloredwood:wood_block"
|
||||
material = "coloredwood:wood_block",
|
||||
on_dig = unifieddyes.on_dig,
|
||||
})
|
||||
|
||||
groups = table.copy(minetest.registered_items["default:fence_wood"].groups)
|
||||
@ -214,4 +221,10 @@ unifieddyes.register_color_craft({
|
||||
}
|
||||
})
|
||||
|
||||
if minetest.get_modpath("signs_lib") then
|
||||
minetest.override_item("coloredwood:fence", {
|
||||
check_for_pole = true
|
||||
})
|
||||
end
|
||||
|
||||
print("[Colored Wood] Loaded!")
|
||||
|
Reference in New Issue
Block a user