1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-10-15 16:45:35 +02:00

Fix use_texture_alpha issues in mt 5.9 (#11)

This commit is contained in:
Niklp
2023-12-16 00:11:41 +01:00
committed by GitHub
parent 27f582b041
commit fce192d288
5 changed files with 28 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
![](https://github.com/mt-mods/display_modpack/workflows/luacheck/badge.svg)
[![ContentDB](https://content.minetest.net/packages/mt-mods/display_modpack/shields/downloads/)](https://content.minetest.net/packages/mt-mods/display_modpack/)
Requires Minetest 5.0+
Requires Minetest 5.4+
This modpack provides mods with dynamic display. Mods are:

View File

@@ -1,3 +1,4 @@
name = display_modpack
description = Display modpack for Minetest, provides mods with dynamic display and font display: clocks, signs, and more.
title = Display Modpack
min_minetest_version = 5.4.0

View File

@@ -139,6 +139,7 @@ minetest.register_node("ontime_clocks:frameless_black", {
paramtype = "light",
paramtype2 = "wallmounted",
drawtype = "nodebox",
use_texture_alpha = "clip",
node_box = {
type = "wallmounted",
wall_side = { -0.5, -7/16, -7/16, -0.45, 7/16, 7/16 },
@@ -172,6 +173,7 @@ minetest.register_node("ontime_clocks:frameless_gold", {
paramtype = "light",
paramtype2 = "wallmounted",
drawtype = "nodebox",
use_texture_alpha = "clip",
node_box = {
type = "wallmounted",
wall_side = { -0.5, -7/16, -7/16, -0.45, 7/16, 7/16 },
@@ -205,6 +207,7 @@ minetest.register_node("ontime_clocks:frameless_white", {
paramtype = "light",
paramtype2 = "wallmounted",
drawtype = "nodebox",
use_texture_alpha = "clip",
node_box = {
type = "wallmounted",
wall_side = { -0.5, -7/16, -7/16, -0.45, 7/16, 7/16 },

View File

@@ -207,6 +207,7 @@ local models = {
"signs_poster_sides.png", "signs_poster_sides.png",
"signs_poster_sides.png", "signs_poster.png" },
inventory_image = "signs_poster_inventory.png",
use_texture_alpha = "clip",
groups= { dig_immediate = 3 },
on_construct = display_api.on_construct,
on_rightclick = display_poster,

View File

@@ -37,6 +37,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_blue_street.png" },
inventory_image = "signs_road_blue_street.png",
use_texture_alpha = "clip",
},
},
large_street_sign = {
@@ -54,6 +55,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_large_white.png" },
inventory_image = "signs_road_white.png",
use_texture_alpha = "clip",
},
},
red_street_sign = {
@@ -71,6 +73,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_red_white.png" },
inventory_image="signs_road_red_white.png",
use_texture_alpha = "clip",
},
},
white_sign = {
@@ -88,6 +91,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_white.png" },
inventory_image = "signs_road_white.png",
use_texture_alpha = "clip",
},
},
blue_sign = {
@@ -105,6 +109,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_blue.png" },
inventory_image = "signs_road_blue.png",
use_texture_alpha = "clip",
},
},
green_sign = {
@@ -122,6 +127,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_green.png" },
inventory_image = "signs_road_green.png",
use_texture_alpha = "clip",
},
},
yellow_sign = {
@@ -139,6 +145,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_yellow.png" },
inventory_image="signs_road_yellow.png",
use_texture_alpha = "clip",
},
},
red_sign = {
@@ -156,6 +163,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_red.png" },
inventory_image = "signs_road_red.png",
use_texture_alpha = "clip",
},
},
black_right_sign = {
@@ -174,6 +182,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_black_dir_right.png" },
inventory_image = "signs_road_black_dir_inventory.png",
use_texture_alpha = "clip",
signs_other_dir = "signs_road:black_left_sign",
on_place = signs_api.on_place_direction,
on_rightclick = signs_api.on_right_click_direction,
@@ -195,6 +204,7 @@ local models = {
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_black_dir_left.png" },
inventory_image = "signs_road_black_dir_inventory.png",
use_texture_alpha = "clip",
signs_other_dir = "signs_road:black_right_sign",
groups = { not_in_creative_inventory = 1 },
drop = "signs_road:black_right_sign",
@@ -221,6 +231,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_right.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
},
@@ -244,6 +255,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_left.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
groups = { not_in_creative_inventory = 1 },
@@ -269,6 +281,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_right.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
},
@@ -292,6 +305,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_left.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
groups = { not_in_creative_inventory = 1 },
@@ -317,6 +331,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_right.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
},
@@ -340,6 +355,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_left.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
groups = { not_in_creative_inventory = 1 },
@@ -365,6 +381,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_right.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
},
@@ -388,6 +405,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_left.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
groups = { not_in_creative_inventory = 1 },
@@ -413,6 +431,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_right.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
},
@@ -436,6 +455,7 @@ local models = {
on_rightclick = signs_api.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_left.obj",
use_texture_alpha = "clip",
selection_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
groups = { not_in_creative_inventory = 1 },
@@ -445,7 +465,6 @@ local models = {
}
-- Node registration
for name, model in pairs(models)
do
for name, model in pairs(models) do
signs_api.register_sign("signs_road", name, model)
end