[Mod] Item features [builtin_item]

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

[Mod] Item features [builtin_item]

by PilzAdam » Post

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
Last edited by PilzAdam on Sun Jan 27, 2013 15:02, edited 1 time in total.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

If it can be tweaked in minetest.conf, this should definitely go into the default game. :)

User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

by RealBadAngel » Post

+1
shall be added to main

User avatar
Casimir
Member
Posts: 1207
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

I get an error. "dtime_s" is nil, maybe you mean "dtime"?

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

by Mito551 » Post

well done, finding and bringing stuff together. that is a really valuable skill. (no sarcasm meant)

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

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! =)
Last edited by cornernote on Wed Sep 26, 2012 06:16, edited 1 time in total.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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.

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

+1. Works like promised. Burning your items in the lava is satisfying thanks to the awesome sizzle sound

madarexxx
Member
Posts: 144
Joined: Sat Aug 04, 2012 06:49

by madarexxx » Post

I love pushing things with water, but i hate that lava destroying it! Could you make it configurable in next version?
Sorry for my bad English, please help me learn it - correct my worst mistakes :)

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

Nice mod, Mabe you could add inventory drop when die?
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

GJH105775 wrote:Nice mod, Mabe you could add inventory drop when die?
There are other mods for that (see MiniTest).

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

GJH105775 wrote:Nice mod, Mabe you could add inventory drop when die?
There are other mods for that (see MiniTest).

User avatar
dannydark
Member
Posts: 428
Joined: Fri Aug 12, 2011 21:28
Location: Manchester, UK

by dannydark » Post

+1 should be merged upstream with default game

sapier
Developer
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Post

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.
DON'T mention coding style!
(c) sapier all rights reserved

u34

by u34 » Post

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?

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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"))
Last edited by PilzAdam on Fri Aug 09, 2013 00:27, edited 1 time in total.

Dirk1980
Member
Posts: 21
Joined: Wed Aug 07, 2013 11:47

by Dirk1980 » Post

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 ?

sfan5
Moderator
Posts: 4095
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

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
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
LionsDen
Member
Posts: 530
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Post

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. :)
Last edited by LionsDen on Fri Aug 09, 2013 16:33, edited 1 time in total.

User avatar
webdesigner97
Member
Posts: 1328
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
Location: Cologne, Germany
Contact:

by webdesigner97 » Post

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?

User avatar
LionsDen
Member
Posts: 530
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Post

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.

u34

by u34 » Post

[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.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests