mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2025-07-19 00:30:29 +02:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
30
init.lua
30
init.lua
@ -12,6 +12,11 @@ unifiedbricks.old_static_list = {}
|
||||
unifiedbricks.old_static_list_formals = {}
|
||||
unifiedbricks.old_colouredstonebrick_list = {}
|
||||
|
||||
minetest.register_alias("unifieddyes:white","unifieddyes:white_paint")
|
||||
minetest.register_alias("unifieddyes:lightgrey","unifieddyes:lightgrey_paint")
|
||||
minetest.register_alias("unifieddyes:grey","unifieddyes:grey_paint")
|
||||
minetest.register_alias("unifieddyes:darkgrey","unifieddyes:darkgrey_paint")
|
||||
|
||||
local HUES = {
|
||||
"red",
|
||||
"orange",
|
||||
@ -31,13 +36,6 @@ local HUES = {
|
||||
"lightgrey",
|
||||
"white"
|
||||
}
|
||||
local TYPES = {
|
||||
"clayblock_",
|
||||
"clay_",
|
||||
"brick_",
|
||||
"brickblock_",
|
||||
"multicolor_"
|
||||
}
|
||||
local SATURATION = {
|
||||
"_s50",
|
||||
""
|
||||
@ -68,13 +66,6 @@ local FORMALHUES = {
|
||||
"Light grey",
|
||||
"White"
|
||||
}
|
||||
local FORMALTYPES = {
|
||||
" clay",
|
||||
" clay lump",
|
||||
" brick",
|
||||
" bricks",
|
||||
" multicolor bricks"
|
||||
}
|
||||
local FORMALSATURATION = {
|
||||
" (low saturation)",
|
||||
""
|
||||
@ -190,7 +181,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", {
|
||||
"unifiedbricks_brickblock_multicolor_dark.png"
|
||||
},
|
||||
overlay_tiles = {
|
||||
{ name = "unifiedbricks_mortar2.png", color = "white" }
|
||||
{ name = "unifiedbricks_mortar.png", color = "white" }
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "color",
|
||||
@ -225,7 +216,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_medium", {
|
||||
"unifiedbricks_brickblock_multicolor_medium.png"
|
||||
},
|
||||
overlay_tiles = {
|
||||
{ name = "unifiedbricks_mortar3.png", color = "white" }
|
||||
{ name = "unifiedbricks_mortar.png", color = "white" }
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "color",
|
||||
@ -260,7 +251,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_light", {
|
||||
"unifiedbricks_brickblock_multicolor_light.png"
|
||||
},
|
||||
overlay_tiles = {
|
||||
{ name = "unifiedbricks_mortar4.png", color = "white" }
|
||||
{ name = "unifiedbricks_mortar.png", color = "white" }
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "color",
|
||||
@ -567,8 +558,8 @@ end
|
||||
for i = 1,17 do
|
||||
for j = 1,4 do
|
||||
if i > 12 then
|
||||
formalname = FORMALHUES[i]
|
||||
name = HUES[i]
|
||||
local formalname = FORMALHUES[i]
|
||||
local name = HUES[i]
|
||||
if j == 1 then
|
||||
unifiedbricks.register_old_static_block(name, formalname, "clayblock")
|
||||
elseif j == 4 then
|
||||
@ -576,6 +567,7 @@ for i = 1,17 do
|
||||
end
|
||||
else
|
||||
for k = 1,4 do
|
||||
local formalname, name
|
||||
if k == 4 then
|
||||
formalname = FORMALDARKNESS[k] .. FORMALHUES[i]
|
||||
name = DARKNESS[k] .. HUES[i]
|
||||
|
Reference in New Issue
Block a user