-- PRESSURE PLATE WOOD minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", { drawtype = "nodebox", tiles = {"jeija_pressure_plate_wood_off.png"}, inventory_image = "jeija_pressure_plate_wood_off.png", wield_image = "jeija_pressure_plate_wood_off.png", paramtype = "light", is_ground_content = true, walkable = true, selection_box = { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, }, node_box = { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, }, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, mesecon = 2}, description="Wood Pressure Plate", }) minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", { drawtype = "nodebox", tiles = {"jeija_pressure_plate_wood_on.png"}, paramtype = "light", is_ground_content = true, walkable = true, selection_box = { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, }, node_box = { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -31/64, 7/16 }, }, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1, mesecon = 2}, drop='"mesecons_pressureplates:pressure_plate_wood_off" 1', }) minetest.register_craft({ output = '"mesecons_pressureplates:pressure_plate_wood_off" 1', recipe = { {'"default:wood"', '"default:wood"'}, } }) minetest.register_abm( {nodenames = {"mesecons_pressureplates:pressure_plate_wood_off"}, interval = 1.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) local objs = minetest.env:get_objects_inside_radius(pos, 1) for k, obj in pairs(objs) do local objpos=obj:getpos() if objpos.y>pos.y-1 and objpos.ypos.y-1 and objpos.y