[Mod] Item features [builtin_item]

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

[Mod] Item features [builtin_item]

by PilzAdam » Tue Sep 25, 2012 17:24

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: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Tue Sep 25, 2012 17:32

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
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Tue Sep 25, 2012 17:34

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: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Tue Sep 25, 2012 17:41

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

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

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

by Casimir » Tue Sep 25, 2012 19:56

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 » Tue Sep 25, 2012 20:10

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 » Wed Sep 26, 2012 06:14

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
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Wed Sep 26, 2012 14:27

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
Location: Netherlands
GitHub: bas080
IRC: bas080
In-game: bas080

by Bas080 » Thu Sep 27, 2012 13:21

+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 » Sun Sep 30, 2012 13:37

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

by GJH105775 » Sun Sep 30, 2012 20:38

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
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Mon Oct 01, 2012 06:33

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
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Mon Oct 01, 2012 06:34

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 » Thu Dec 13, 2012 21:02

+1 should be merged upstream with default game
 

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

by sapier » Wed May 01, 2013 13:38

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
 

User avatar
cHyper
Member
 
Posts: 759
Joined: Fri May 06, 2011 08:49
Location: Austria
GitHub: cHyper-0815OL
IRC: cHyper
In-game: cHyper

by cHyper » Thu Aug 08, 2013 22:16

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?
___when_it's_done___ http://www.chyper.at_for_more_details___
 

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

by PilzAdam » Fri Aug 09, 2013 00:27

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 » Fri Aug 09, 2013 09:20

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 ?
 

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

by sfan5 » Fri Aug 09, 2013 09:21

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 » Fri Aug 09, 2013 16:32

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: 1323
Joined: Mon Jul 30, 2012 19:16
Location: Bergisch Gladbach, Germany
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Fri Aug 09, 2013 17:17

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 » Fri Aug 09, 2013 19:08

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.
 

User avatar
cHyper
Member
 
Posts: 759
Joined: Fri May 06, 2011 08:49
Location: Austria
GitHub: cHyper-0815OL
IRC: cHyper
In-game: cHyper

by cHyper » Sun Oct 27, 2013 04:36

[Game]Overcraft Origins[overcraft_origins][Minecraft-like Game]

error with this mod

https://forum.minetest.net/viewtopic.php?pid=115762#p115762

when i dig any block

thx.

maybe u can fix this problem.
___when_it's_done___ http://www.chyper.at_for_more_details___
 

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

by PilzAdam » Sun Oct 27, 2013 08:57

cHyper wrote:[Game]Overcraft Origins[overcraft_origins][Minecraft-like Game]

error with this mod

https://forum.minetest.net/viewtopic.php?pid=115762#p115762

when i dig any block

thx.

maybe u can fix this problem.

Done.
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 4 guests