Prevent constructing arrow boxes

This commit is contained in:
Wuzzy 2019-09-19 12:27:27 +02:00
parent 1aac4713a4
commit 67f33c9256
2 changed files with 22 additions and 4 deletions

View file

@ -67,6 +67,12 @@ minetest.register_node("mcl_bows:arrow_box", {
paramtype2 = "facedir",
sunlight_propagates = true,
groups = {not_in_creative_inventory=1, dig_immediate=3},
drop = "",
node_placement_prediction = "",
on_construct = function(pos)
minetest.log("error", "[mcl_bows] Trying to construct mcl_bows:arrow_box at "..minetest.pos_to_string(pos))
minetest.remove_node(pos)
end,
})
local ARROW_ENTITY={