Adapt use_texture_alpha for MT 5.3 and 5.4

master
Joachim Stolberg 2021-03-20 10:58:49 +01:00
parent 71bfcfa6f8
commit 14610d57f3
14 changed files with 28 additions and 25 deletions

View File

@ -54,7 +54,7 @@ minetest.register_node("signs_bot:bot_sensor", {
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
is_ground_content = false,
groups = {sign_bot_sensor = 1, cracky = 1},
sounds = default.node_sound_metal_defaults(),
@ -98,7 +98,7 @@ minetest.register_node("signs_bot:bot_sensor_on", {
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
is_ground_content = false,
diggable = false,
groups = {sign_bot_sensor = 1, not_in_creative_inventory = 1},

View File

@ -92,7 +92,7 @@ minetest.register_node("signs_bot:cart_sensor", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
@ -123,7 +123,7 @@ minetest.register_node("signs_bot:cart_sensor_on", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,

View File

@ -145,7 +145,7 @@ for idx = 1,4 do
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,

View File

@ -422,7 +422,7 @@ minetest.register_node("signs_bot:torch", {
"group:bakedclay", "group:soil"},
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
walkable = false,
liquids_pointable = false,

View File

@ -172,7 +172,7 @@ minetest.register_node("signs_bot:sign_cmnd", {
after_dig_node = lib.after_dig_sign_node,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
is_ground_content = false,
drop = "",

View File

@ -85,7 +85,7 @@ minetest.register_node("signs_bot:crop_sensor", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
@ -116,7 +116,7 @@ minetest.register_node("signs_bot:crop_sensor_on", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,

View File

@ -169,7 +169,7 @@ minetest.register_node("signs_bot:delayer", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
@ -201,7 +201,7 @@ minetest.register_node("signs_bot:delayer_loaded", {
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
is_ground_content = false,
diggable = false,
groups = {sign_bot_sensor = 1, not_in_creative_inventory = 1},
@ -229,7 +229,7 @@ minetest.register_node("signs_bot:delayer_on", {
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
is_ground_content = false,
diggable = false,
groups = {sign_bot_sensor = 1, not_in_creative_inventory = 1},

View File

@ -56,7 +56,7 @@ minetest.register_node("signs_bot:sensor_extender", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
@ -105,7 +105,7 @@ minetest.register_node("signs_bot:sensor_extender_on", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,

View File

@ -17,6 +17,9 @@ signs_bot = {}
-- Version for compatibility checks, see readme.md/history
signs_bot.version = 1.06
-- Test for MT 5.4 new string mode
signs_bot.CLIP = minetest.features.use_texture_alpha_string_modes and "clip" or true
if minetest.global_exists("techage") and techage.version < 0.25 then
error("[signs_bot] Signs Bot requires techage version 0.25 or newer!")
end

View File

@ -169,7 +169,7 @@ minetest.register_node("signs_bot:and1", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
@ -197,7 +197,7 @@ minetest.register_node("signs_bot:and2", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
@ -224,7 +224,7 @@ minetest.register_node("signs_bot:and3", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,

View File

@ -147,7 +147,7 @@ minetest.register_node("signs_bot:node_sensor", {
on_receive_fields = on_receive_fields,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
@ -179,7 +179,7 @@ minetest.register_node("signs_bot:node_sensor_on", {
on_receive_fields = on_receive_fields,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,

View File

@ -71,7 +71,7 @@ minetest.register_node("signs_bot:robot", {
},
paramtype2 = "facedir",
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
is_ground_content = false,
drop = "",
@ -92,7 +92,7 @@ minetest.register_node("signs_bot:robot_leg", {
},
paramtype2 = "facedir",
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
is_ground_content = false,
drop = "",
@ -112,7 +112,7 @@ minetest.register_node("signs_bot:robot_foot", {
},
paramtype2 = "facedir",
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
is_ground_content = false,
drop = "",

View File

@ -53,7 +53,7 @@ local function register_sign(def)
end,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, sign_bot_sign = 1},

View File

@ -157,7 +157,7 @@ minetest.register_node("signs_bot:timer", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
@ -184,7 +184,7 @@ minetest.register_node("signs_bot:timer_on", {
update_infotext = update_infotext,
on_rotate = screwdriver.disallow,
paramtype = "light",
use_texture_alpha = "clip",
use_texture_alpha = signs_bot.CLIP,
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,