-- Thanks to sofar for helping with that code.
local plate = {}
+screwdriver = screwdriver or {}
function plate.construct(pos)
local timer = minetest.get_node_timer(pos)
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
sunlight_propagates = true,
+ on_rotate = screwdriver.rotate_simple,
on_construct = plate.construct,
on_timer = plate.timer
})
groups = {snappy=3, not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(),
drop = "xdecor:pressure_"..m.."_off",
- sunlight_propagates = true
+ sunlight_propagates = true,
+ on_rotate = screwdriver.rotate_simple
})
end