diff --git a/init.lua b/init.lua index d6eb8bb..2eca367 100644 --- a/init.lua +++ b/init.lua @@ -104,9 +104,16 @@ local item_entity = minetest.registered_entities["__builtin:item"] local old_on_step = item_entity.on_step or function()end item_entity.makes_footstep_sound = true +item_entity.bt_timer = 0 item_entity.on_step = function(self, dtime) old_on_step(self, dtime) + self.bt_timer = self.bt_timer+dtime + if self.bt_timer < 1 then + return + end + self.bt_timer = 0 + local p = self.object:getpos() local name = minetest.get_node(p).name