From 04ef9e3432c92d88cd69d54918ee68299532441c Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 29 Sep 2024 08:46:48 +0100 Subject: [PATCH] show when protection tool trying to place out of bounds or near bedrock --- tool.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tool.lua b/tool.lua index 38aca3f..56f859d 100644 --- a/tool.lua +++ b/tool.lua @@ -83,6 +83,9 @@ minetest.register_craftitem("protector:tool", { -- do not place protector out of map bounds if minetest.find_node_near(pos, 1, {"ignore", "mcl_core:bedrock"}) then + + minetest.chat_send_player(name, S("Out of bounds!")) + return end