Page 1 of 2

[Mod] Item features [builtin_item]

Posted: Tue Sep 25, 2012 17:24
by PilzAdam
Hello everyone!
In the last few days jordan4ibanez postet some topics that add new features to the items you can drop with 'Q' (builtin items). I looked at them, improved them and made a mod so you can easily install the feauters.
It contains:
  • The items are pushed by flowing water
  • The items are destroyed by lava
  • The items are removed after 300 seconds or the time that is specified by remove_items in minetest.conf ('0' disables it)
License:
WTFPL

Dependencies:
None.

GitHub:
https://github.com/PilzAdam/builtin_item

Download:
https://github.com/PilzAdam/builtin_item/zipball/master

Posted: Tue Sep 25, 2012 17:32
by Calinou
I like pushing items/lava destroying items, not a big fan of decaying items though (perhaps 2 hours would be ok, like the bones mod). :)

Posted: Tue Sep 25, 2012 17:34
by PilzAdam
Calinou wrote:I like pushing items/lava destroying items, not a big fan of decaying items though (perhaps 2 hours would be ok, like the bones mod). :)
Then add

Code: Select all

remove_items = 0
or

Code: Select all

remove_items = 7200
to minetest.conf

Posted: Tue Sep 25, 2012 17:41
by Calinou
If it can be tweaked in minetest.conf, this should definitely go into the default game. :)

Posted: Tue Sep 25, 2012 19:52
by RealBadAngel
+1
shall be added to main

Posted: Tue Sep 25, 2012 19:56
by Casimir
I get an error. "dtime_s" is nil, maybe you mean "dtime"?

Posted: Tue Sep 25, 2012 20:10
by Mito551
well done, finding and bringing stuff together. that is a really valuable skill. (no sarcasm meant)

Posted: Wed Sep 26, 2012 06:14
by cornernote
im trying to make a dispenser, but the item gets caught on the corner

this is a view looking down at it:

Code: Select all

XXXXXX
WFFFFX
XXXXPX
W = water source
F = water flowing
P = piston

leave the piston blocking the exit, and after the item gets there open it.. the item gets stuck

if the item has free passage the whole time then it doesnt get stuck

if that doesnt make sense let me know and i'll make a video

also, AWESOME MOD! =)

Posted: Wed Sep 26, 2012 14:27
by PilzAdam
Casimir wrote:I get an error. "dtime_s" is nil, maybe you mean "dtime"?
This needs a later version than 0.4.3
Maybe your version is too old.

Posted: Thu Sep 27, 2012 13:21
by Bas080
+1. Works like promised. Burning your items in the lava is satisfying thanks to the awesome sizzle sound

Posted: Sun Sep 30, 2012 13:37
by madarexxx
I love pushing things with water, but i hate that lava destroying it! Could you make it configurable in next version?

Posted: Sun Sep 30, 2012 20:38
by GJH105775
Nice mod, Mabe you could add inventory drop when die?

Posted: Mon Oct 01, 2012 06:33
by PilzAdam
GJH105775 wrote:Nice mod, Mabe you could add inventory drop when die?
There are other mods for that (see MiniTest).

Posted: Mon Oct 01, 2012 06:34
by PilzAdam
GJH105775 wrote:Nice mod, Mabe you could add inventory drop when die?
There are other mods for that (see MiniTest).

Posted: Thu Dec 13, 2012 21:02
by dannydark
+1 should be merged upstream with default game

Posted: Wed May 01, 2013 13:38
by sapier
this is great but did anyone have a look at performance impact?
There's no limit how often on_step is called, do we really need to update movement of a flowing item every 10us(just a example)?
You won't notice this while only few items are online in single player but it's very slow if there are more.

In mobf I use a 1s interval to recheck if something needs to be changed maybe adding something like that here would be good too.

Posted: Thu Aug 08, 2013 22:16
by u34
error with latest dev version:

Code: Select all

00:13:30: ERROR[main]: ServerError: LuaError: error running function 'on_step':
...nts\minetest\bin\..\mods\item_pack\builtin_item\init.lua:89: attempt to compa
re string with number
what to do now?

Posted: Fri Aug 09, 2013 00:27
by PilzAdam
cHyper wrote:error with latest dev version:

Code: Select all

00:13:30: ERROR[main]: ServerError: LuaError: error running function 'on_step':
...nts\minetest\bin\..\mods\item_pack\builtin_item\init.lua:89: attempt to compa
re string with number
what to do now?
Try changing line 81 to

Code: Select all

    local time = tonumber(minetest.setting_get("remove_items"))

Posted: Fri Aug 09, 2013 09:20
by Dirk1980
Schönes feature wenn du jetzt noch machen könntest das cactus und papyrus beim vorbei wachsen an glass zb
geschnitten wird man denke an die Cactus farm von MC das prinzip in kombination mit dem wasser was items
befördert da könnte man schon kleine farm Maschienen bauen was meinst du ?

Posted: Fri Aug 09, 2013 09:21
by sfan5
Dirk1980 wrote:Schönes feature wenn du jetzt noch machen könntest das cactus und papyrus beim vorbei wachsen an glass zb
geschnitten wird man denke an die Cactus farm von MC das prinzip in kombination mit dem wasser was items
befördert da könnte man schon kleine farm Maschienen bauen was meinst du ?
Please use English

Posted: Fri Aug 09, 2013 16:32
by LionsDen
Dirk1980 wrote:Schönes feature wenn du jetzt noch machen könntest das cactus und papyrus beim vorbei wachsen an glass zb
geschnitten wird man denke an die Cactus farm von MC das prinzip in kombination mit dem wasser was items
befördert da könnte man schon kleine farm Maschienen bauen was meinst du ?

Google Translate: Nice feature when you make now could the cactus and papyrus grow in the past eg glass
cut will think of the Cactus farm of the MC principle in combination with the water which items
promoted as one could even small farm Maschienen build what do you think?
Still pretty confusing to me. :)

Posted: Fri Aug 09, 2013 17:17
by webdesigner97
Maybe I should translate it:
It would be a nice feature if you could make cactus and papyrus be cut if they grow next to glass (Annotation: maybe he wants it to drop their item). It would be like the cactus farm in Minecraft, if you combine it with water that can move items. You could build some nice farming machines with it, couldn't you?

Posted: Fri Aug 09, 2013 19:08
by LionsDen
Ok, those translations sound a lot better. At least I can understand them somewhat. Since I have never played MineCraft I don't know about the farming machines but I think I get the idea.

Posted: Sun Oct 27, 2013 04:36
by u34
[Game]Overcraft Origins[overcraft_origins][Minecraft-like Game]

error with this mod

viewtopic.php?pid=115762#p115762

when i dig any block

thx.

maybe u can fix this problem.

Posted: Sun Oct 27, 2013 08:57
by PilzAdam
cHyper wrote:[Game]Overcraft Origins[overcraft_origins][Minecraft-like Game]

error with this mod

viewtopic.php?pid=115762#p115762

when i dig any block

thx.

maybe u can fix this problem.
Done.