Glazed terracotta migration
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
After Width: | Height: | Size: 329 B |
After Width: | Height: | Size: 231 B |
After Width: | Height: | Size: 256 B |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 314 B |
After Width: | Height: | Size: 248 B |
After Width: | Height: | Size: 223 B |
After Width: | Height: | Size: 330 B |
After Width: | Height: | Size: 258 B |
After Width: | Height: | Size: 230 B |
After Width: | Height: | Size: 265 B |
After Width: | Height: | Size: 242 B |
After Width: | Height: | Size: 242 B |
After Width: | Height: | Size: 234 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 251 B |