Page 1 of 1

Items Auto Remove

PostPosted: Tue Sep 25, 2012 03:03
by jordan4ibanez
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,":
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

PostPosted: Tue Sep 25, 2012 07:09
by Jordach
Wait. So there WERE useful things from Blockplanet.

PostPosted: Tue Sep 25, 2012 14:32
by jordan4ibanez
Jordach wrote:Wait. So there WERE useful things from Blockplanet.

there are a lot of things usefull from block planet, but i will release them to the minetest community slowwwwwwwlyyyy so every one is not overwhelmed

PostPosted: Tue Sep 25, 2012 15:46
by Mito551
jordan4ibanez wrote:
Jordach wrote:Wait. So there WERE useful things from Blockplanet.

there are a lot of things usefull from block planet, but i will release them to the minetest community slowwwwwwwlyyyy so every one is not overwhelmed


then please. be a lil' bit faster, would you?

PostPosted: Tue Sep 25, 2012 15:48
by Calinou
Maybe move this to modding general/mod releases, as this is more a mod, not really feature discussion? I bet celeron55 doesn't want item decay. :)

PostPosted: Wed Sep 26, 2012 03:19
by jordan4ibanez
Calinou wrote:Maybe move this to modding general/mod releases, as this is more a mod, not really feature discussion? I bet celeron55 doesn't want item decay. :)

well if he doesn't then that's an issue