show when protection tool trying to place out of bounds or near bedrock
This commit is contained in:
parent
72f4e36b7b
commit
04ef9e3432
1 changed files with 3 additions and 0 deletions
3
tool.lua
3
tool.lua
|
|
@ -83,6 +83,9 @@ minetest.register_craftitem("protector:tool", {
|
||||||
|
|
||||||
-- do not place protector out of map bounds
|
-- do not place protector out of map bounds
|
||||||
if minetest.find_node_near(pos, 1, {"ignore", "mcl_core:bedrock"}) then
|
if minetest.find_node_near(pos, 1, {"ignore", "mcl_core:bedrock"}) then
|
||||||
|
|
||||||
|
minetest.chat_send_player(name, S("Out of bounds!"))
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue