1
0
mirror of https://github.com/mt-mods/coloredwood.git synced 2025-07-02 08:00:36 +02:00

Version MFF.

This commit is contained in:
sys4-fr
2018-09-06 22:32:15 +02:00
parent efbb518145
commit 115f902164
275 changed files with 30 additions and 19 deletions

25
wood.lua Normal file → Executable file
View File

@ -14,8 +14,19 @@ local colored_block_description = "Wood Planks"
local neutral_block = "default:wood"
local colored_block_sunlight = "false"
local colored_block_walkable = "true"
local colored_block_groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2, not_in_creative_inventory=1}
local colored_block_sound = "default.node_sound_wood_defaults()"
local colored_block_groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2}
local colored_block_sound = default.node_sound_wood_defaults()
-- Show the wood planks in the crafting guide:
-- Value copy the groups table to another one to pass to stairsplus:register_all()
-- oherwise stairsplus:register_all() will add the ["not_in_creative_inventory"] = 1 key/value to the groups
-- of the original table and force the coloredwood planks to be removed from the crafting guide.
local stairsplus_groups = {}
if coloredwood.enable_stairsplus then
for k, v in pairs(colored_block_groups) do
stairsplus_groups[k] = v
end
end
for shade = 1, 3 do
@ -63,7 +74,7 @@ for shade = 1, 3 do
"wood_"..shadename..huename,
colorname,
{
groups = colored_block_groups,
groups = stairsplus_groups, -- Modif MFF
tiles = { pngname },
description = nodedesc,
drop = "wood_"..shadename..huename,
@ -75,7 +86,7 @@ for shade = 1, 3 do
"wood_"..shadename..huename.."_s50",
s50colorname,
{
groups = colored_block_groups,
groups = stairsplus_groups, -- Modif MFF
tiles = { s50pngname },
description = s50nodedesc,
drop = "wood_"..shadename..huename.."_s50",
@ -144,7 +155,7 @@ for hue = 1, 12 do
"wood_light_"..huename,
colorname,
{
groups = colored_block_groups,
groups = stairsplus_groups, -- Modif MFF
tiles = { pngname },
description = nodedesc,
drop = "wood_light_"..huename,
@ -168,7 +179,7 @@ for hue = 1, 12 do
},
})
end
-- ============================================================
-- The 5 levels of greyscale.
@ -203,7 +214,7 @@ for grey = 1,5 do
"wood_"..greyname,
greyshadename,
{
groups = colored_block_groups,
groups = stairsplus_groups, -- Modif MFF
tiles = { pngname },
description = nodedesc,
drop = "wood_"..greyname,