Placed map improvements

- Make placed maps walkable
- Add proper hitbox for placed maps
- Let placed maps propagate sunlight
This commit is contained in:
Hugues Ross 2020-03-20 20:38:46 -04:00
parent 7bb3b544e2
commit bda796c101

View File

@ -25,6 +25,14 @@ minetest.register_node("cartographer:map", {
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
stack_max = 1, stack_max = 1,
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -7 / 16, 0.5},
},
},
on_use = function(stack, player, _) on_use = function(stack, player, _)
local pos = player:get_pos(); local pos = player:get_pos();
local name = player:get_player_name(); local name = player:get_player_name();