games/minetest_game/mods/doors/init.lua wrote:Beginning at line #63:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
if minetest.is_protected(pt, placer:get_player_name()) then
minetest.chat_send_player(placer:get_player_name(), "This area is protected. You can not place that node here.", true)
return itemstack
end
games/minetest_game/mods/bucket/init.lua wrote:Beginning at line #59:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
--A nice addon for lava griefers:
if pos.y > -5 and source == "default:lava_source" then
minetest.chat_send_player(user:get_player_name(), "Do not place lava over -5m, that could end really bad!", true)
return
end
if minetest.is_protected(pos, user:get_player_name()) then
minetest.record_protection_violation(pos, user:get_player_name())
return
end
mods/moreblocks/stairsplus.lua wrote:Beginning at line #110Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
if minetest.is_protected(above, placer:get_player_name()) then
minetest.chat_send_player(placer:get_player_name(), "This area is protected. You can not place that node here.", true)
return itemstack
end
Users browsing this forum: No registered users and 13 guests