Skip to content

Commit

Permalink
Fix use_texture_alpha issues in mt 5.9 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 authored Dec 15, 2023
1 parent 27f582b commit fce192d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
3 changes: 2 additions & 1 deletion modpack.conf
Original file line number Diff line number Diff line change
@@ -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
title = Display Modpack
min_minetest_version = 5.4.0
3 changes: 3 additions & 0 deletions ontime_clocks/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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 },
Expand Down Expand Up @@ -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 },
Expand Down
1 change: 1 addition & 0 deletions signs/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
23 changes: 21 additions & 2 deletions signs_road/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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,
Expand All @@ -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",
Expand All @@ -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 } },
},
Expand All @@ -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 },
Expand All @@ -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 } },
},
Expand All @@ -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 },
Expand All @@ -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 } },
},
Expand All @@ -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 },
Expand All @@ -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 } },
},
Expand All @@ -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 },
Expand All @@ -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 } },
},
Expand All @@ -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 },
Expand All @@ -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

0 comments on commit fce192d

Please sign in to comment.