1
0
mirror of https://github.com/mt-mods/coloredwood.git synced 2025-07-21 17:10:31 +02:00

10 Commits

Author SHA1 Message Date
5125b9b07b Add min_minetest_version = 5.2.0 to mod.conf 2022-07-08 19:07:20 +02:00
8e1aec69fa Delete depends.txt and description.txt, update mod.conf 2022-07-08 18:53:20 +02:00
c4c9a6defe Fix stack division 2021-07-03 19:23:31 +02:00
7933350b60 Tidy code 2020-09-07 00:17:31 +02:00
e58317b58e Merge branch 'nalc-1.2-dev' 2020-07-05 17:55:05 +02:00
63f8499203 Corrige crash au démarrage 2020-06-20 15:11:28 +02:00
042d2867f7 Fix stack division with moreblocks items 2020-06-18 00:20:24 +02:00
7f09ef4c3d Replace neutral fence by the default one. 2018-09-23 16:28:38 +02:00
b1a094b770 Fix colored wood and fence groups 2018-08-26 17:35:54 +02:00
2eeb9f95da Fix stack division and nodes orientation 2018-08-25 01:43:04 +02:00
4 changed files with 9 additions and 16 deletions

View File

@ -1,4 +0,0 @@
default
unifieddyes
moreblocks?
signs_lib?

View File

@ -1 +0,0 @@
This mod provides a multitude of colors of wood, sticks, and fences to Minetest, as per the palette outlined by my Unified Dyes mod.

View File

@ -116,23 +116,17 @@ if coloredwood.enable_stairsplus then
or chk == "moreblocks:panel_woo"
or chk == "moreblocks:micro_woo"
or chk == "moreblocks:slope_woo"
and not string.find(i.name, "wood_tile") then
local class = string.sub(i.name, 12, 15)
local shape = string.sub(i.name, 22)
and not string.find(i.name, "wood_tile") then
table.insert(coloredwood_cuts, i.name)
if chk ~= "moreblocks:slab_wood" then
class = string.sub(i.name, 12, 16)
shape = string.sub(i.name, 23)
end
local class, shape = is_stairsplus(i.name, false)
minetest.override_item(i.name, {
groups = groups2,
paramtype2 = "colorfacedir",
palette = "unifieddyes_palette_greys.png",
airbrush_replacement_node = "coloredwood:"..class.."_wood_grey_"..shape
airbrush_replacement_node = "coloredwood:"..class.."_wood_grey"..shape,
drop = "moreblocks:"..class.."_wood"..shape,
})
end
end

View File

@ -1,2 +1,6 @@
name = coloredwood
title = Colored Wood
description = This mod provides a multitude of colors of wood, stairs and fences to Minetest, as per the palette outlined by my Unified Dyes mod.
depends = default,unifieddyes
optional_depends = moreblocks,signs_lib
min_minetest_version = 5.2.0