Glazed terracotta migration

This commit is contained in:
JoseDouglas26 2024-06-09 13:29:44 -03:00
parent cbe660857b
commit 2932fdff04
18 changed files with 30 additions and 1 deletions

View File

@ -104,6 +104,15 @@ local function set_tiles(mod_name, identifier, definitions)
definitions.tiles = {
top_base_image_name, top_base_image_name, base_image_name
}
elseif definitions.tiles.type == "modified" then
definitions.tiles = {
base_image_name..(definitions.tiles.modifiers.top or ""),
base_image_name..(definitions.tiles.modifiers.bottom or ""),
base_image_name..(definitions.tiles.modifiers.right or ""),
base_image_name..(definitions.tiles.modifiers.left or ""),
base_image_name..(definitions.tiles.modifiers.back or ""),
base_image_name..(definitions.tiles.modifiers.front or "")
}
end
end
else

View File

@ -8,7 +8,23 @@ local common_defs = {
groups = {colored_blocks = 1, handy = 1},
paramtype = "light",
sounds = mcl_sounds.node_sound_glass_defaults(),
sunlight_propagates = true
sunlight_propagates = true,
use_texture_alpha = "blend"
},
glazed_terracotta = {
_mcl_blast_resistance = 1.4,
_mcl_hardness = 1.4,
groups = {colored_blocks = 1, pickaxey = 1},
paramtype2 = "4dir",
sounds = mcl_sounds.node_sound_stone_defaults(),
tiles = {
modifiers = {
back = "^[transformR270",
front = "^[transformR90",
right = "^[transformR180",
},
type = "modified"
}
}
}
@ -16,4 +32,8 @@ for _, color in pairs(voxelibre.colors) do
local identifier = color.."_stained_glass"
voxelibre.register_block(identifier, table.copy(common_defs.glass))
identifier = color.."_glazed_terracotta"
voxelibre.register_block(identifier, table.copy(common_defs.glazed_terracotta))
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B