Items Auto Remove
SICK of people spamming items all over the place to have them just sit there?! DISGUSTING RIGHT?! Well with this small line of code, after 5 minutes items will remove themself.
In Item_entity.lua add this line of code under the line "physical_state = true,":
And in the beginning of on_step add this in:
Jeija wrote this for blockplanet a while back, so thank HIM not me! :D
In Item_entity.lua add this line of code under the line "physical_state = true,":
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
timer = 0,
And in the beginning of on_step add this in:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
self.timer = self.timer + dtime
if (self.timer > 300) then
self.object:remove()
end
Jeija wrote this for blockplanet a while back, so thank HIM not me! :D