Merge pull request 'Optional connected glass support' (#1939) from AFCMS/MineClone2:connected_glass into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1939
|
@ -5,10 +5,11 @@ local mod_doc = minetest.get_modpath("doc")
|
|||
minetest.register_node("mcl_core:glass", {
|
||||
description = S("Glass"),
|
||||
_doc_items_longdesc = S("A decorative and mostly transparent block."),
|
||||
drawtype = "glasslike",
|
||||
drawtype = "glasslike_framed_optional",
|
||||
is_ground_content = false,
|
||||
tiles = {"default_glass.png"},
|
||||
tiles = {"default_glass.png", "default_glass_detail.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "glasslikeliquidlevel",
|
||||
sunlight_propagates = true,
|
||||
stack_max = 64,
|
||||
groups = {handy=1, glass=1, building_block=1, material_glass=1},
|
||||
|
@ -39,10 +40,11 @@ function mcl_core.add_stained_glass(desc, recipeitem, colorgroup, color)
|
|||
_doc_items_create_entry = create_entry,
|
||||
_doc_items_entry_name = entry_name,
|
||||
_doc_items_longdesc = longdesc,
|
||||
drawtype = "glasslike",
|
||||
drawtype = "glasslike_framed_optional",
|
||||
is_ground_content = false,
|
||||
tiles = {"mcl_core_glass_"..color..".png"},
|
||||
tiles = {"mcl_core_glass_"..color..".png", "mcl_core_glass_"..color.."_detail.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "glasslikeliquidlevel",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "blend" or true,
|
||||
stack_max = 64,
|
||||
|
|
BIN
mods/ITEMS/mcl_core/textures/default_glass_detail.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_black_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_blue_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_brown_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_cyan_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_gray_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_green_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_lime_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_magenta_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_orange_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_pink_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_purple_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_red_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_silver_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_white_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
mods/ITEMS/mcl_core/textures/mcl_core_glass_yellow_detail.png
Normal file
After Width: | Height: | Size: 4.6 KiB |