2022-01-02 00:21:15 -06:00
|
|
|
|
|
|
|
minetest.override_item("nether:lava_crust", {
|
|
|
|
on_place = function(stack, placer, pt)
|
|
|
|
p = minetest.get_pointed_thing_position(pt)
|
|
|
|
if p.y > 0 then
|
2022-01-02 00:35:55 -06:00
|
|
|
if placer and placer:get_player_name() ~= "" and
|
|
|
|
minetest.check_player_privs(placer:get_player_name(), "server") == false then
|
2022-01-02 00:21:15 -06:00
|
|
|
minetest.chat_send_player(placer:get_player_name(), "Unable to place lava crust above 0")
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
minetest.item_place(stack, placer, pt)
|
|
|
|
end
|
|
|
|
})
|