Skip to content

Instantly share code, notes, and snippets.

@cornernote
Created October 2, 2012 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cornernote/3818841 to your computer and use it in GitHub Desktop.
Save cornernote/3818841 to your computer and use it in GitHub Desktop.
Remove Items after 5 Minutes
-- Jeija wrote this for blockplanet a while back.
-- In item_entity.lua add timer = 0, under the line physical_state = true,
-- And in the beginning of on_step add this in:
self.timer = self.timer + dtime
if (self.timer > 300) then
self.object:remove()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment