From 2fcc03872d7fd18416033ee61538ae6d1fd09e1d Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 6 Sep 2025 20:47:56 +0200 Subject: [PATCH] error message of threshing floor full is now a hud message as well --- nodes_straw.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nodes_straw.lua b/nodes_straw.lua index 5f289ff..f01eb0f 100644 --- a/nodes_straw.lua +++ b/nodes_straw.lua @@ -323,7 +323,20 @@ minetest.register_node("cottages:threshing_floor", { if( not(inv:room_for_item('straw','cottages:straw_mat '..tostring( anz_straw ))) or not(inv:room_for_item('seeds', seed_name..' '..tostring( anz_seeds )))) then - minetest.chat_send_player(name, S('The output slots are full. Please make room before threshing more!')) + local hud_list = {{ + name = "cottages_threshing_floor_full", + direction = 0, + z_index = 115, + type = "text", + text = tostring(S('The output slots are full. Please make room before threshing more!')), +-- number = 0x00CC00, + number = 0xFFFFFF, + alignment = {x = 0, y = 0}, + scale = {x = 2, y = 2}, -- bounding rectangle of the text + position = {x = 0.5, y = 0.65}, + }} + -- show those huds to the player (and hide them after 2 secons) + cottages.add_hud_list(puncher, 2, hud_list) return end