1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-13 11:30:19 +02:00

replace the rest of the hard coded texture conversions to use homedecor.textures

This commit is contained in:
wsor4035
2024-03-03 14:48:55 -05:00
parent f432c53117
commit 13e562986a
6 changed files with 12 additions and 24 deletions

View File

@ -76,10 +76,11 @@ building_blocks_stairs("building_blocks:Adobe", {
key = "node_sound_stone_defaults",
},
})
local grasstex = {"[combine:16x16^[noalpha^[colorize:#006400"}
if minetest.get_modpath("default") then
grasstex = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}
end
local grasstex = {
homedecor.textures.grass.top,
homedecor.textures.grass.dirt,
homedecor.textures.grass.side
}
building_blocks_stairs("building_blocks:fakegrass", {
tiles = grasstex,
description = S("Fake Grass"),
@ -147,10 +148,7 @@ minetest.register_node("building_blocks:brobble_spread", {
})
if not minetest.get_modpath("moreblocks") or not minetest.get_modpath("gloopblocks") then
local graveltex = "[combine:16x16^[noalpha^[colorize:#3a3b3c"
if minetest.get_modpath("default") then
graveltex = "default_gravel.png"
end
local graveltex = homedecor.textures.gravel
minetest.register_node("building_blocks:gravel_spread", {
drawtype = "raillike",
description = S("Gravel Spread"),