14 lines
333 B
Lua
14 lines
333 B
Lua
minetest.register_abm({
|
|
label = 'Start running hoppers',
|
|
label = 'Hoppers',
|
|
nodenames = {'hopper:hopper', 'hopper:hopper_side'},
|
|
interval = 30,
|
|
chance = 1,
|
|
action = function(pos)
|
|
local timer1 = minetest.get_node_timer(pos)
|
|
if not timer1:is_started() then
|
|
timer1:start(1.0)
|
|
end
|
|
end,
|
|
})
|