From aeb7078c05ca113bc6d173484e87de74599633a2 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Thu, 18 Feb 2021 14:00:17 +0100 Subject: [PATCH] Update use_texture_alpha to the minetest 5.4 conventions --- mods/ENTITIES/mobs_mc/2_throwing.lua | 1 + mods/ITEMS/REDSTONE/mcl_comparators/init.lua | 1 + mods/ITEMS/REDSTONE/mesecons_delayer/init.lua | 12 ++++++++---- mods/ITEMS/REDSTONE/mesecons_walllever/init.lua | 2 ++ mods/ITEMS/REDSTONE/mesecons_wires/init.lua | 1 + mods/ITEMS/mcl_anvils/init.lua | 1 + mods/ITEMS/mcl_beds/api.lua | 2 ++ mods/ITEMS/mcl_bows/arrow.lua | 1 + mods/ITEMS/mcl_brewing/init.lua | 8 ++++++++ mods/ITEMS/mcl_cake/init.lua | 2 ++ mods/ITEMS/mcl_cauldrons/init.lua | 2 ++ mods/ITEMS/mcl_chests/init.lua | 8 ++++++++ mods/ITEMS/mcl_cocoas/init.lua | 1 + mods/ITEMS/mcl_core/nodes_base.lua | 1 + mods/ITEMS/mcl_core/nodes_cactuscane.lua | 1 + mods/ITEMS/mcl_doors/api_doors.lua | 4 ++++ mods/ITEMS/mcl_doors/api_trapdoors.lua | 2 ++ mods/ITEMS/mcl_enchanting/init.lua | 1 + mods/ITEMS/mcl_farming/shared_functions.lua | 1 + mods/ITEMS/mcl_flowerpots/init.lua | 3 +++ mods/ITEMS/mcl_flowers/init.lua | 1 + mods/ITEMS/mcl_heads/init.lua | 2 ++ mods/ITEMS/mcl_portals/portal_end.lua | 2 ++ mods/ITEMS/mcl_potions/tipped_arrow.lua | 1 + mods/ITEMS/mcl_signs/init.lua | 2 ++ mods/ITEMS/mcl_torches/init.lua | 2 ++ mods/ITEMS/mcl_walls/init.lua | 4 ++++ mods/ITEMS/xpanes/init.lua | 1 + mods/PLAYER/mcl_meshhand/init.lua | 1 + 29 files changed, 67 insertions(+), 4 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/2_throwing.lua b/mods/ENTITIES/mobs_mc/2_throwing.lua index e868cb060e..fd55fa32c2 100644 --- a/mods/ENTITIES/mobs_mc/2_throwing.lua +++ b/mods/ENTITIES/mobs_mc/2_throwing.lua @@ -39,6 +39,7 @@ minetest.register_node("mobs_mc:arrow_box", { } }, tiles = {"mcl_bows_arrow.png^[transformFX", "mcl_bows_arrow.png^[transformFX", "mcl_bows_arrow_back.png", "mcl_bows_arrow_front.png", "mcl_bows_arrow.png", "mcl_bows_arrow.png^[transformFX"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, diff --git a/mods/ITEMS/REDSTONE/mcl_comparators/init.lua b/mods/ITEMS/REDSTONE/mcl_comparators/init.lua index 48bd18bfe2..a8fab81d75 100644 --- a/mods/ITEMS/REDSTONE/mcl_comparators/init.lua +++ b/mods/ITEMS/REDSTONE/mcl_comparators/init.lua @@ -246,6 +246,7 @@ for _, state in pairs{mesecon.state.on, mesecon.state.off} do _doc_items_usagehelp = usagehelp, drawtype = "nodebox", tiles = get_tiles(state_strs[state], mode), + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, wield_image = "mcl_comparators_off.png", walkable = true, selection_box = collision_box, diff --git a/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua b/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua index 80489814be..caf5e96528 100644 --- a/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua @@ -246,7 +246,8 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), { "mesecons_delayer_sides_off.png", "mesecons_delayer_ends_off.png", "mesecons_delayer_ends_off.png", - }, + }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, wield_image = "mesecons_delayer_off.png", walkable = true, selection_box = { @@ -315,7 +316,8 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), { "mesecons_delayer_sides_on.png", "mesecons_delayer_ends_on.png", "mesecons_delayer_ends_on.png", - }, + }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, walkable = true, selection_box = { type = "fixed", @@ -391,7 +393,8 @@ minetest.register_node("mesecons_delayer:delayer_off_locked", { "mesecons_delayer_sides_locked_off.png", "mesecons_delayer_front_locked_off.png", "mesecons_delayer_end_locked_off.png", - }, + }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, wield_image = "mesecons_delayer_locked_off.png", walkable = true, selection_box = { @@ -443,7 +446,8 @@ minetest.register_node("mesecons_delayer:delayer_on_locked", { "mesecons_delayer_sides_locked_on.png", "mesecons_delayer_front_locked_on.png", "mesecons_delayer_end_locked_on.png", - }, + }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, walkable = true, selection_box = { type = "fixed", diff --git a/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua b/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua index f73ee0387e..a0ecf354da 100644 --- a/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua @@ -32,6 +32,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", { tiles = { "jeija_wall_lever_lever_light_on.png", }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, inventory_image = "jeija_wall_lever.png", wield_image = "jeija_wall_lever.png", paramtype = "light", @@ -136,6 +137,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", { tiles = { "jeija_wall_lever_lever_light_on.png", }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "facedir", mesh = "jeija_wall_lever_on.obj", diff --git a/mods/ITEMS/REDSTONE/mesecons_wires/init.lua b/mods/ITEMS/REDSTONE/mesecons_wires/init.lua index 75acd3ce03..e0c5ac5319 100644 --- a/mods/ITEMS/REDSTONE/mesecons_wires/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_wires/init.lua @@ -248,6 +248,7 @@ S("Read the help entries on the other redstone components to learn how redstone mesecon.register_node(":mesecons:wire_"..nodeid, { drawtype = "nodebox", paramtype = "light", + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, sunlight_propagates = true, selection_box = selectionbox, node_box = nodebox, diff --git a/mods/ITEMS/mcl_anvils/init.lua b/mods/ITEMS/mcl_anvils/init.lua index bf912c7a0f..91f4eaa80a 100644 --- a/mods/ITEMS/mcl_anvils/init.lua +++ b/mods/ITEMS/mcl_anvils/init.lua @@ -297,6 +297,7 @@ end local anvildef = { groups = {pickaxey=1, falling_node=1, falling_node_damage=1, crush_after_fall=1, deco_block=1, anvil=1}, tiles = {"mcl_anvils_anvil_top_damaged_0.png^[transformR90", "mcl_anvils_anvil_base.png", "mcl_anvils_anvil_side.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, _tt_help = S("Repair and rename items"), paramtype = "light", sunlight_propagates = true, diff --git a/mods/ITEMS/mcl_beds/api.lua b/mods/ITEMS/mcl_beds/api.lua index 7bc86d175a..c274a29a0d 100644 --- a/mods/ITEMS/mcl_beds/api.lua +++ b/mods/ITEMS/mcl_beds/api.lua @@ -76,6 +76,7 @@ function mcl_beds.register_bed(name, def) wield_image = def.wield_image, drawtype = "nodebox", tiles = def.tiles.bottom, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, @@ -198,6 +199,7 @@ function mcl_beds.register_bed(name, def) minetest.register_node(name .. "_top", { drawtype = "nodebox", tiles = def.tiles.top, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, diff --git a/mods/ITEMS/mcl_bows/arrow.lua b/mods/ITEMS/mcl_bows/arrow.lua index ff68757703..6a02f35c4d 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -64,6 +64,7 @@ minetest.register_node("mcl_bows:arrow_box", { } }, tiles = {"mcl_bows_arrow.png^[transformFX", "mcl_bows_arrow.png^[transformFX", "mcl_bows_arrow_back.png", "mcl_bows_arrow_front.png", "mcl_bows_arrow.png", "mcl_bows_arrow.png^[transformFX"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, diff --git a/mods/ITEMS/mcl_brewing/init.lua b/mods/ITEMS/mcl_brewing/init.lua index 7725acdfdb..617929ff73 100644 --- a/mods/ITEMS/mcl_brewing/init.lua +++ b/mods/ITEMS/mcl_brewing/init.lua @@ -378,6 +378,7 @@ minetest.register_node("mcl_brewing:stand_000", { _tt_help = S("Brew Potions"), groups = {pickaxey=1, brewitem=1 }, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, drop = "mcl_brewing:stand", paramtype = "light", sunlight_propagates = true, @@ -444,6 +445,7 @@ minetest.register_node("mcl_brewing:stand_100", { _tt_help = S("Brew Potions"), groups = {pickaxey=1, not_in_creative_inventory = 1, not_in_craft_guide = 1}, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, drop = "mcl_brewing:stand", paramtype = "light", sunlight_propagates = true, @@ -516,6 +518,7 @@ minetest.register_node("mcl_brewing:stand_010", { _tt_help = S("Brew Potions"), groups = {pickaxey=1, not_in_creative_inventory = 1, not_in_craft_guide = 1}, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, drop = "mcl_brewing:stand", paramtype = "light", sunlight_propagates = true, @@ -589,6 +592,7 @@ minetest.register_node("mcl_brewing:stand_001", { _tt_help = S("Brew Potions"), groups = {pickaxey=1, not_in_creative_inventory = 1, not_in_craft_guide = 1}, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, drop = "mcl_brewing:stand", paramtype = "light", sunlight_propagates = true, @@ -658,6 +662,7 @@ minetest.register_node("mcl_brewing:stand_110", { _tt_help = S("Brew Potions"), groups = {pickaxey=1, not_in_creative_inventory = 1, not_in_craft_guide = 1}, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, drop = "mcl_brewing:stand", paramtype = "light", sunlight_propagates = true, @@ -737,6 +742,7 @@ minetest.register_node("mcl_brewing:stand_101", { _tt_help = S("Brew Potions"), groups = {pickaxey=1, not_in_creative_inventory = 1, not_in_craft_guide = 1}, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, drop = "mcl_brewing:stand", paramtype = "light", sunlight_propagates = true, @@ -812,6 +818,7 @@ minetest.register_node("mcl_brewing:stand_011", { _tt_help = S("Brew Potions"), groups = {pickaxey=1, not_in_creative_inventory = 1, not_in_craft_guide = 1}, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, drop = "mcl_brewing:stand", paramtype = "light", sunlight_propagates = true, @@ -887,6 +894,7 @@ minetest.register_node("mcl_brewing:stand_111", { _tt_help = S("Brew Potions"), groups = {pickaxey=1, not_in_creative_inventory = 1, not_in_craft_guide = 1}, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, drop = "mcl_brewing:stand", paramtype = "light", sunlight_propagates = true, diff --git a/mods/ITEMS/mcl_cake/init.lua b/mods/ITEMS/mcl_cake/init.lua index cc6d506331..aeb706287e 100644 --- a/mods/ITEMS/mcl_cake/init.lua +++ b/mods/ITEMS/mcl_cake/init.lua @@ -37,6 +37,7 @@ minetest.register_node("mcl_cake:cake", { _doc_items_longdesc = S("Cakes can be placed and eaten to restore hunger points. A cake has 7 slices. Each slice restores 2 hunger points and 0.4 saturation points. Cakes will be destroyed when dug or when the block below them is broken."), _doc_items_usagehelp = S("Place the cake anywhere, then rightclick it to eat a single slice. You can't eat from the cake when your hunger bar is full."), tiles = {"cake_top.png","cake_bottom.png","cake_side.png","cake_side.png","cake_side.png","cake_side.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, inventory_image = "cake.png", wield_image = "cake.png", paramtype = "light", @@ -112,6 +113,7 @@ local register_slice = function(level, nodebox, desc) description = desc, _doc_items_create_entry = false, tiles = cake_texture, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", is_ground_content = false, drawtype = "nodebox", diff --git a/mods/ITEMS/mcl_cauldrons/init.lua b/mods/ITEMS/mcl_cauldrons/init.lua index a82a0b53a6..5c8d93160c 100644 --- a/mods/ITEMS/mcl_cauldrons/init.lua +++ b/mods/ITEMS/mcl_cauldrons/init.lua @@ -50,6 +50,7 @@ minetest.register_node("mcl_cauldrons:cauldron", { _doc_items_usagehelp = S("Place a water pucket into the cauldron to fill it with water. Place an empty bucket on a full cauldron to retrieve the water. Place a water bottle into the cauldron to fill the cauldron to one third with water. Place a glass bottle in a cauldron with water to retrieve one third of the water."), wield_image = "mcl_cauldrons_cauldron.png", inventory_image = "mcl_cauldrons_cauldron.png", + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, drawtype = "nodebox", paramtype = "light", is_ground_content = false, @@ -79,6 +80,7 @@ local register_filled_cauldron = function(water_level, description, river_water) minetest.register_node(id, { description = description, _doc_items_create_entry = false, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, drawtype = "nodebox", paramtype = "light", is_ground_content = false, diff --git a/mods/ITEMS/mcl_chests/init.lua b/mods/ITEMS/mcl_chests/init.lua index 91164c7b35..852a47fec5 100644 --- a/mods/ITEMS/mcl_chests/init.lua +++ b/mods/ITEMS/mcl_chests/init.lua @@ -349,6 +349,7 @@ minetest.register_node("mcl_chests:"..basename, { drawtype = "mesh", mesh = "mcl_chests_chest.obj", tiles = small_textures, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "facedir", stack_max = 64, @@ -385,6 +386,7 @@ minetest.register_node(small_name, { fixed = {-0.4375, -0.5, -0.4375, 0.4375, 0.375, 0.4375}, }, tiles = {"mcl_chests_blank.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, _chest_entity_textures = small_textures, _chest_entity_sound = "default_chest", _chest_entity_mesh = "mcl_chests_chest", @@ -510,6 +512,7 @@ minetest.register_node(left_name, { fixed = {-0.4375, -0.5, -0.4375, 0.5, 0.375, 0.4375}, }, tiles = {"mcl_chests_blank.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, _chest_entity_textures = left_textures, _chest_entity_sound = "default_chest", _chest_entity_mesh = "mcl_chests_chest", @@ -664,6 +667,7 @@ minetest.register_node("mcl_chests:"..basename.."_right", { fixed = {-0.5, -0.5, -0.4375, 0.4375, 0.375, 0.4375}, }, tiles = {"mcl_chests_blank.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, groups = {handy=1,axey=1, container=6,not_in_creative_inventory=1, material_wood=1,flammable=-1,double_chest=2}, drop = drop, is_ground_content = false, @@ -973,6 +977,7 @@ minetest.register_node("mcl_chests:ender_chest", { drawtype = "mesh", mesh = "mcl_chests_chest.obj", tiles = {"mcl_chests_ender.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "facedir", stack_max = 64, @@ -1013,6 +1018,7 @@ minetest.register_node("mcl_chests:ender_chest_small", { _chest_entity_mesh = "mcl_chests_chest", _chest_entity_animation_type = "chest", tiles = {"mcl_chests_blank.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, --[[{"mcl_chests_ender_chest_top.png", "mcl_chests_ender_chest_bottom.png", "mcl_chests_ender_chest_right.png", "mcl_chests_ender_chest_left.png", "mcl_chests_ender_chest_back.png", "mcl_chests_ender_chest_front.png"},]]-- @@ -1146,6 +1152,7 @@ for color, desc in pairs(boxtypes) do _doc_items_longdesc = longdesc, _doc_items_usagehelp = usagehelp, tiles = {mob_texture}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, drawtype = "mesh", mesh = "mcl_chests_shulker.obj", --[["mcl_chests_"..color.."_shulker_box_top.png", -- top @@ -1210,6 +1217,7 @@ for color, desc in pairs(boxtypes) do _doc_items_usagehelp = usagehelp, drawtype = "nodebox", tiles = {"mcl_chests_blank.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, _chest_entity_textures = {mob_texture}, _chest_entity_sound = "mcl_chests_shulker", _chest_entity_mesh = "mcl_chests_shulker", diff --git a/mods/ITEMS/mcl_cocoas/init.lua b/mods/ITEMS/mcl_cocoas/init.lua index b02a168e58..4395b77792 100644 --- a/mods/ITEMS/mcl_cocoas/init.lua +++ b/mods/ITEMS/mcl_cocoas/init.lua @@ -81,6 +81,7 @@ local crop_def = { "mcl_cocoas_cocoa_stage_0.png", "mcl_cocoas_cocoa_stage_0.png^[transformFX", "[combine:16x16:-5,0=mcl_cocoas_cocoa_stage_0.png", "[combine:16x16:-5,0=mcl_cocoas_cocoa_stage_0.png", }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, paramtype = "light", sunlight_propagates = true, paramtype2 = "facedir", diff --git a/mods/ITEMS/mcl_core/nodes_base.lua b/mods/ITEMS/mcl_core/nodes_base.lua index a20fca6cb3..cc6a0e6ae1 100644 --- a/mods/ITEMS/mcl_core/nodes_base.lua +++ b/mods/ITEMS/mcl_core/nodes_base.lua @@ -391,6 +391,7 @@ minetest.register_node("mcl_core:grass_path", { _doc_items_longdesc = S("Grass paths are a decorative variant of grass blocks. Their top has a different color and they are a bit lower than grass blocks, making them useful to build footpaths. Grass paths can be created with a shovel. A grass path turns into dirt when it is below a solid block."), drop = "mcl_core:dirt", is_ground_content = true, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, drawtype = "nodebox", paramtype = "light", node_box = { diff --git a/mods/ITEMS/mcl_core/nodes_cactuscane.lua b/mods/ITEMS/mcl_core/nodes_cactuscane.lua index 9c0077ea2f..d1bcac011e 100644 --- a/mods/ITEMS/mcl_core/nodes_cactuscane.lua +++ b/mods/ITEMS/mcl_core/nodes_cactuscane.lua @@ -8,6 +8,7 @@ minetest.register_node("mcl_core:cactus", { _doc_items_longdesc = S("This is a piece of cactus commonly found in dry areas, especially deserts. Over time, cacti will grow up to 3 blocks high on sand or red sand. A cactus hurts living beings touching it with a damage of 1 HP every half second. When a cactus block is broken, all cactus blocks connected above it will break as well."), _doc_items_usagehelp = S("A cactus can only be placed on top of another cactus or any sand."), drawtype = "nodebox", + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, tiles = {"mcl_core_cactus_top.png", "mcl_core_cactus_bottom.png", "mcl_core_cactus_side.png"}, is_ground_content = true, stack_max = 64, diff --git a/mods/ITEMS/mcl_doors/api_doors.lua b/mods/ITEMS/mcl_doors/api_doors.lua index 07a5623f30..716fb22ec3 100644 --- a/mods/ITEMS/mcl_doors/api_doors.lua +++ b/mods/ITEMS/mcl_doors/api_doors.lua @@ -271,6 +271,7 @@ function mcl_doors:register_door(name, def) minetest.register_node(name.."_b_1", { tiles = {"blank.png", tt[2].."^[transformFXR90", tb[2], tb[2].."^[transformFX", tb[1], tb[1].."^[transformFX"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, @@ -331,6 +332,7 @@ function mcl_doors:register_door(name, def) minetest.register_node(name.."_t_1", { tiles = {tt[2].."^[transformR90", "blank.png", tt[2], tt[2].."^[transformFX", tt[1], tt[1].."^[transformFX"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, @@ -391,6 +393,7 @@ function mcl_doors:register_door(name, def) minetest.register_node(name.."_b_2", { tiles = {"blank.png", tt[2].."^[transformFXR90", tb[2].."^[transformI", tb[2].."^[transformFX", tb[1].."^[transformFX", tb[1]}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, @@ -451,6 +454,7 @@ function mcl_doors:register_door(name, def) minetest.register_node(name.."_t_2", { tiles = {tt[2].."^[transformR90", "blank.png", tt[2].."^[transformI", tt[2].."^[transformFX", tt[1].."^[transformFX", tt[1]}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, diff --git a/mods/ITEMS/mcl_doors/api_trapdoors.lua b/mods/ITEMS/mcl_doors/api_trapdoors.lua index a7ca6cb159..c8f769c670 100644 --- a/mods/ITEMS/mcl_doors/api_trapdoors.lua +++ b/mods/ITEMS/mcl_doors/api_trapdoors.lua @@ -130,6 +130,7 @@ function mcl_doors:register_trapdoor(name, def) _doc_items_usagehelp = usagehelp, drawtype = "nodebox", tiles = tiles_closed, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, inventory_image = def.inventory_image, wield_image = def.wield_image, is_ground_content = false, @@ -197,6 +198,7 @@ function mcl_doors:register_trapdoor(name, def) minetest.register_node(name.."_open", { drawtype = "nodebox", tiles = tiles_open, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, is_ground_content = false, paramtype = "light", paramtype2 = "facedir", diff --git a/mods/ITEMS/mcl_enchanting/init.lua b/mods/ITEMS/mcl_enchanting/init.lua index be1b187230..a53350a707 100644 --- a/mods/ITEMS/mcl_enchanting/init.lua +++ b/mods/ITEMS/mcl_enchanting/init.lua @@ -231,6 +231,7 @@ minetest.register_node("mcl_enchanting:table", { _doc_items_hidden = false, drawtype = "nodebox", tiles = {"mcl_enchanting_table_top.png", "mcl_enchanting_table_bottom.png", "mcl_enchanting_table_side.png", "mcl_enchanting_table_side.png", "mcl_enchanting_table_side.png", "mcl_enchanting_table_side.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, node_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0.25, 0.5}, diff --git a/mods/ITEMS/mcl_farming/shared_functions.lua b/mods/ITEMS/mcl_farming/shared_functions.lua index 6c682f839c..90f7d33739 100644 --- a/mods/ITEMS/mcl_farming/shared_functions.lua +++ b/mods/ITEMS/mcl_farming/shared_functions.lua @@ -361,6 +361,7 @@ function mcl_farming:add_gourd(full_unconnected_stem, connected_stem_basename, s fixed = connected_stem_selectionbox[i] }, tiles = connected_stem_tiles[i], + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, groups = {dig_immediate=3, not_in_creative_inventory=1, plant=1,attached_node=1, dig_by_water=1,destroy_by_lava_flow=1,}, sounds = mcl_sounds.node_sound_leaves_defaults(), _mcl_blast_resistance = 0, diff --git a/mods/ITEMS/mcl_flowerpots/init.lua b/mods/ITEMS/mcl_flowerpots/init.lua index 3e22346f7c..5a752c407f 100644 --- a/mods/ITEMS/mcl_flowerpots/init.lua +++ b/mods/ITEMS/mcl_flowerpots/init.lua @@ -37,6 +37,7 @@ minetest.register_node("mcl_flowerpots:flower_pot", { tiles = { "mcl_flowerpots_flowerpot.png", }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, visual_scale = 0.5, wield_image = "mcl_flowerpots_flowerpot_inventory.png", wield_scale = {x=1.0, y=1.0, z=1.0}, @@ -111,6 +112,7 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, { tiles = { "[combine:32x32:0,0=mcl_flowerpots_flowerpot.png:0,0="..texture[1], }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, visual_scale = 0.5, wield_scale = {x=1.0, y=1.0, z=1.0}, paramtype = "light", @@ -159,6 +161,7 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, { tiles = { "mcl_flowerpots_"..flower..".png", }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, visual_scale = 0.5, wield_scale = {x=1.0, y=1.0, z=1.0}, paramtype = "light", diff --git a/mods/ITEMS/mcl_flowers/init.lua b/mods/ITEMS/mcl_flowers/init.lua index d60cb1e3ba..4e6c438ded 100644 --- a/mods/ITEMS/mcl_flowers/init.lua +++ b/mods/ITEMS/mcl_flowers/init.lua @@ -385,6 +385,7 @@ minetest.register_node("mcl_flowers:waterlily", { paramtype = "light", paramtype2 = "facedir", tiles = {"flowers_waterlily.png", "flowers_waterlily.png^[transformFY"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, inventory_image = "flowers_waterlily.png", wield_image = "flowers_waterlily.png", liquids_pointable = true, diff --git a/mods/ITEMS/mcl_heads/init.lua b/mods/ITEMS/mcl_heads/init.lua index a8e9f2cb53..2000c70702 100644 --- a/mods/ITEMS/mcl_heads/init.lua +++ b/mods/ITEMS/mcl_heads/init.lua @@ -54,6 +54,7 @@ local function addhead(name, texture, desc, longdesc, rangemob, rangefactor) "[combine:16x16:-20,0="..texture, -- back "[combine:16x16:-4,0="..texture, -- front }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", stack_max = 64, paramtype2 = "facedir", @@ -136,6 +137,7 @@ local function addhead(name, texture, desc, longdesc, rangemob, rangefactor) { name = "([combine:16x16:-4,0="..texture..")^[transformR180", align_style = "node" }, -- top { name = "([combine:16x16:-4,8="..texture..")^([combine:16x16:-12,8="..texture..")", align_style = "node" }, -- bottom }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", stack_max = 64, paramtype2 = "wallmounted", diff --git a/mods/ITEMS/mcl_portals/portal_end.lua b/mods/ITEMS/mcl_portals/portal_end.lua index 6633c6cfd1..045993530a 100644 --- a/mods/ITEMS/mcl_portals/portal_end.lua +++ b/mods/ITEMS/mcl_portals/portal_end.lua @@ -282,6 +282,7 @@ minetest.register_node("mcl_portals:end_portal_frame", { _doc_items_usagehelp = S("To create an End portal, you need 12 end portal frames and 12 eyes of ender. The end portal frames have to be arranged around a horizontal 3×3 area with each block facing inward. Any other arrangement will fail.") .. "\n" .. S("Place an eye of ender into each block. The end portal appears in the middle after placing the final eye.") .. "\n" .. S("Once placed, an eye of ender can not be taken back."), groups = { creative_breakable = 1, deco_block = 1, end_portal_frame = 1 }, tiles = { "mcl_portals_endframe_top.png", "mcl_portals_endframe_bottom.png", "mcl_portals_endframe_side.png" }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype2 = "facedir", drawtype = "nodebox", node_box = { @@ -308,6 +309,7 @@ minetest.register_node("mcl_portals:end_portal_frame_eye", { _doc_items_create_entry = false, groups = { creative_breakable = 1, deco_block = 1, comparator_signal = 15, end_portal_frame = 2 }, tiles = { "mcl_portals_endframe_top.png^[lowpart:75:mcl_portals_endframe_eye.png", "mcl_portals_endframe_bottom.png", "mcl_portals_endframe_eye.png^mcl_portals_endframe_side.png" }, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype2 = "facedir", drawtype = "nodebox", node_box = { diff --git a/mods/ITEMS/mcl_potions/tipped_arrow.lua b/mods/ITEMS/mcl_potions/tipped_arrow.lua index 31e7c1dddd..2853487c9c 100644 --- a/mods/ITEMS/mcl_potions/tipped_arrow.lua +++ b/mods/ITEMS/mcl_potions/tipped_arrow.lua @@ -84,6 +84,7 @@ function mcl_potions.register_arrow(name, desc, color, def) } }, tiles = arrow_image(color, 100), + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, diff --git a/mods/ITEMS/mcl_signs/init.lua b/mods/ITEMS/mcl_signs/init.lua index d21b582423..e053c6e822 100644 --- a/mods/ITEMS/mcl_signs/init.lua +++ b/mods/ITEMS/mcl_signs/init.lua @@ -295,6 +295,7 @@ minetest.register_node("mcl_signs:wall_sign", { mesh = "mcl_signs_signonwallmount.obj", selection_box = {type = "wallmounted", wall_side = {-0.5, -7/28, -0.5, -23/56, 7/28, 0.5}}, tiles = {"mcl_signs_sign.png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, groups = sign_groups, stack_max = 16, sounds = node_sounds, @@ -425,6 +426,7 @@ minetest.register_node("mcl_signs:wall_sign", { -- 0° local ssign = { paramtype = "light", + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, sunlight_propagates = true, walkable = false, is_ground_content = false, diff --git a/mods/ITEMS/mcl_torches/init.lua b/mods/ITEMS/mcl_torches/init.lua index 179308358e..451a8dfad6 100644 --- a/mods/ITEMS/mcl_torches/init.lua +++ b/mods/ITEMS/mcl_torches/init.lua @@ -165,6 +165,7 @@ mcl_torches.register_torch = function(substring, description, doc_items_longdesc inventory_image = icon, wield_image = icon, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "wallmounted", sunlight_propagates = true, @@ -250,6 +251,7 @@ mcl_torches.register_torch = function(substring, description, doc_items_longdesc drawtype = "mesh", mesh = mesh_wall, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", paramtype2 = "wallmounted", sunlight_propagates = true, diff --git a/mods/ITEMS/mcl_walls/init.lua b/mods/ITEMS/mcl_walls/init.lua index 5704309db9..36694c6f38 100644 --- a/mods/ITEMS/mcl_walls/init.lua +++ b/mods/ITEMS/mcl_walls/init.lua @@ -157,6 +157,7 @@ function mcl_walls.register_wall(nodename, description, source, tiles, inventory drawtype = "nodebox", is_ground_content = false, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", sunlight_propagates = true, groups = internal_groups, @@ -183,6 +184,7 @@ function mcl_walls.register_wall(nodename, description, source, tiles, inventory fixed = {-4/16, -0.5, -4/16, 4/16, 1, 4/16} }, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", sunlight_propagates = true, is_ground_content = false, @@ -208,6 +210,7 @@ function mcl_walls.register_wall(nodename, description, source, tiles, inventory fixed = {-4/16, -0.5, -4/16, 4/16, 1, 4/16} }, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, paramtype = "light", sunlight_propagates = true, is_ground_content = false, @@ -235,6 +238,7 @@ function mcl_walls.register_wall(nodename, description, source, tiles, inventory is_ground_content = false, groups = main_node_groups, tiles = tiles, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, inventory_image = inventory_image, stack_max = 64, drawtype = "nodebox", diff --git a/mods/ITEMS/xpanes/init.lua b/mods/ITEMS/xpanes/init.lua index 262ecdcf55..e1914a9ff2 100644 --- a/mods/ITEMS/xpanes/init.lua +++ b/mods/ITEMS/xpanes/init.lua @@ -224,6 +224,7 @@ xpanes.register_pane("bar", { wield_image = "xpanes_pane_iron.png", groups = {pickaxey=1}, sounds = mcl_sounds.node_sound_metal_defaults(), + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, recipe = { {"mcl_core:iron_ingot", "mcl_core:iron_ingot", "mcl_core:iron_ingot"}, {"mcl_core:iron_ingot", "mcl_core:iron_ingot", "mcl_core:iron_ingot"}, diff --git a/mods/PLAYER/mcl_meshhand/init.lua b/mods/PLAYER/mcl_meshhand/init.lua index 14bf100903..18eda9ec67 100644 --- a/mods/PLAYER/mcl_meshhand/init.lua +++ b/mods/PLAYER/mcl_meshhand/init.lua @@ -16,6 +16,7 @@ for _,texture in pairs(list) do minetest.register_node("mcl_meshhand:"..texture, { description = "", tiles = {texture..".png"}, + use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false, visual_scale = 1, wield_scale = {x=1,y=1,z=1}, paramtype = "light",