Items Auto Remove

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

Items Auto Remove

by jordan4ibanez » Tue Sep 25, 2012 03:03

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
If you can think it, you can make it.
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Tue Sep 25, 2012 07:09

Wait. So there WERE useful things from Blockplanet.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Tue Sep 25, 2012 14:32

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
If you can think it, you can make it.
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Tue Sep 25, 2012 15:46

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?
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Tue Sep 25, 2012 15:48

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. :)
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Wed Sep 26, 2012 03:19

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
If you can think it, you can make it.
 


Return to Minetest Features

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

cron