replace the rest of the hard coded texture conversions to use homedecor.textures
This commit is contained in:
parent
f432c53117
commit
13e562986a
|
@ -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"),
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
local S = minetest.get_translator("homedecor_clocks")
|
||||
|
||||
local wood
|
||||
if minetest.get_modpath("default") then
|
||||
wood = "default_wood.png"
|
||||
else
|
||||
|
||||
wood = "[combine:16x16^[noalpha^[colorize:#563d2d"
|
||||
end
|
||||
local wood = homedecor.textures.wood.apple.planks
|
||||
|
||||
local plastic_craft = {
|
||||
output = "homedecor:analog_clock_plastic 2",
|
||||
|
|
|
@ -288,8 +288,7 @@ homedecor.register("swing_rope", {
|
|||
selection_box = homedecor.nodebox.null
|
||||
})
|
||||
|
||||
local water_tex = "default_water.png"
|
||||
if not minetest.get_modpath("default") then water_tex = "[combine:16x16^[noalpha^[colorize:#00008b" end
|
||||
local water_tex = homedecor.textures.water.tile
|
||||
local cobble_tex = minetest.registered_nodes["mapgen_stone"].tiles[1]
|
||||
local stone_drop = minetest.registered_nodes["mapgen_stone"].drop
|
||||
if stone_drop and type(stone_drop) == "string" then
|
||||
|
|
|
@ -80,8 +80,7 @@ local ib_cbox = {
|
|||
fixed = { -6/16, -8/16, -4/16, 17/16, 4/16, 4/16 }
|
||||
}
|
||||
|
||||
local wool_tex = "wool_grey.png"
|
||||
if not minetest.get_modpath("wool") then wool_tex = "[combine:16x16^[noalpha^[colorize:#3A3B3C" end
|
||||
local wool_tex = homedecor.textures.wool.grey
|
||||
|
||||
homedecor.register("ironing_board", {
|
||||
description = S("Ironing board"),
|
||||
|
|
|
@ -452,7 +452,7 @@ for brightness_level = 0, 14 do
|
|||
lighttex = "homedecor_plasma_lamp_off.png"
|
||||
end
|
||||
|
||||
local gtex=minetest.get_modpath("default") and "default_gold_block.png" or "[combine:16x16^[noalpha^[colorize:#FFD700"
|
||||
local gtex=homedecor.textures.metal.gold.block
|
||||
homedecor.register("plasma_lamp_"..brightness_level, {
|
||||
description = S("Plasma Lamp/Light"),
|
||||
drawtype = "mesh",
|
||||
|
@ -703,8 +703,7 @@ for brightness_level = 0, 14 do
|
|||
fixed = { -0.25, -0.5, -0.25, 0.25, 1.5, 0.25 }
|
||||
}
|
||||
|
||||
local wool_brightened=(minetest.get_modpath("wool") and "wool_grey.png" or "[combine:16x16^[noalpha6[colorize:#A9A9A9")
|
||||
.. "^[colorize:#ffffff:"..(brightness_level * 15)
|
||||
local wool_brightened=homedecor.textures.wool.grey .. "^[colorize:#ffffff:"..(brightness_level * 15)
|
||||
|
||||
homedecor.register("table_lamp_"..brightness_level, {
|
||||
description = S("Table Lamp/Light"),
|
||||
|
|
|
@ -336,8 +336,7 @@ homedecor_roofing.register_slope("homedecor", "glass",
|
|||
S("Glass Shingles")
|
||||
)
|
||||
|
||||
local brick_tex = "default_brick.png"
|
||||
if not minetest.get_modpath("default") then brick_tex = "[combine:16x16^[noalpha^[colorize:#AA4A44" end
|
||||
local brick_tex = homedecor.textures.brick
|
||||
|
||||
homedecor.register("chimney", {
|
||||
description = S("Chimney"),
|
||||
|
|
Loading…
Reference in New Issue