diff options
-rw-r--r-- | faregate.lua | 15 | ||||
-rw-r--r-- | init.lua | 2 |
2 files changed, 15 insertions, 2 deletions
diff --git a/faregate.lua b/faregate.lua index 2871e54..0a739a3 100644 --- a/faregate.lua +++ b/faregate.lua @@ -19,6 +19,14 @@ minetest.register_node("farebox:faregate", { {0.0625, -0.5, -0.0625, 0.4375, 0.6875, 0}, -- NodeBox7 } }, + collision_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.1, 0.5, 1.5, 0.1}, + {-0.5, -0.5, -0.4375, -0.4375, 1.5, 0.4375}, -- NodeBox3 + {0.4375, -0.5, -0.4375, 0.5, 1.5, 0.4375}, -- NodeBox5 + }, + }, mesecons = { effector = { rules = mesecon.rules.default, @@ -46,6 +54,7 @@ minetest.register_node("farebox:faregate", { allow_metadata_inventory_put = farebox.allow_metadata_inventory_put, allow_metadata_inventory_take = farebox.allow_metadata_inventory_take, allow_metadata_inventory_move = farebox.allow_metadata_inventory_move, + node_dig_prediction = "farebox:faregate", }) minetest.register_node("farebox:faregate_open", { @@ -73,7 +82,11 @@ minetest.register_node("farebox:faregate_open", { {0.375, -0.5, -0.0625, 0.4375, 0.6875, 0.3125}, -- NodeBox7 } }, - drop = "farebox:faregate" + drop = "farebox:faregate", + allow_metadata_inventory_put = farebox.allow_metadata_inventory_put, + allow_metadata_inventory_take = farebox.allow_metadata_inventory_take, + allow_metadata_inventory_move = farebox.allow_metadata_inventory_move, + node_dig_prediction = "farebox:faregate", }) minetest.register_craft({output = "farebox:faregate", @@ -186,7 +186,7 @@ minetest.register_node("farebox:farebox", { on_rightclick = function(pos, node, player, itemstack, pointed_thing) farebox.show_formspec(pos, player) end, - + node_dig_prediction = "farebox:farebox", }) minetest.register_craft({ |