[Mod] Minecraft like item drop/pick up [item_drop]

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

[Mod] Minecraft like item drop/pick up [item_drop]

by PilzAdam » Post

Hello everyone!
I have made a mod that adds Minecraft like item drop/pick up to Minetest. All you have to do is download and install the mod. Thats it!

License:
WTFPL applies to all parts

Dependencies:
None, you can use it with every mod/game/whatever.

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

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

Old versions:
Last edited by PilzAdam on Sat Sep 08, 2012 08:53, edited 1 time in total.

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

init lua:3: bar argument #1 to

EDIT: Works great. I use the pickup functionality. Not the drop on dig.
Last edited by Bas080 on Tue Feb 26, 2013 10:57, 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

Bas080 wrote:init lua:3: bar argument #1 to
Is this an error message?

Spots
Member
Posts: 124
Joined: Tue Jul 24, 2012 12:12
Location: Outta my mind someplace.

by Spots » Post

didn't get an error message but with this mod installed when i tried to craft it would reset what i had in the crafting area and wouldn't let me change any of it out to make new items

User avatar
Mallot1
Member
Posts: 85
Joined: Wed Jun 27, 2012 04:38

by Mallot1 » Post

i dont know what minecraft like item/drop is please be more specific.

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

by PilzAdam » Post

Mallot1 wrote:i dont know what minecraft like item/drop is please be more specific.
When you dig a block it dont appears in your inventory but it falls down as a item and you can pick it up by walking over it.

Spots
Member
Posts: 124
Joined: Tue Jul 24, 2012 12:12
Location: Outta my mind someplace.

by Spots » Post

it's really handy when cutting down trees and the decay kicks in you dont have to pick everyone up you just walk over them

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

by PilzAdam » Post

Spots wrote:it's really handy when cutting down trees and the decay kicks in you dont have to pick everyone up you just walk over them
With the timber mod its realy powerfull but a bit like "cheating".

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

This mod doesn't work the latest 0.4.2-rc1 release, or at least your latest update doesn't.

No errors are thrown and nothing visible happens; the world never appears after the initial node defs/media/etc screen.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

by Splizard » Post

Nice mod, did not know this was possible! Only one problem, the server crashes when I leave the game:

Code: Select all

minetest/item_drop/init.lua:32: bad argument #2 to 'remove' (number expected, got userdata)
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

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

by PilzAdam » Post

VanessaE wrote:This mod doesn't work the latest 0.4.2-rc1 release, or at least your latest update doesn't.

No errors are thrown and nothing visible happens; the world never appears after the initial node defs/media/etc screen.
For me it works with latest Minetest (0.4.2-rc1) on kubuntu 11.10.

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

by PilzAdam » Post

Splizard wrote:Nice mod, did not know this was possible! Only one problem, the server crashes when I leave the game:

Code: Select all

minetest/item_drop/init.lua:32: bad argument #2 to 'remove' (number expected, got userdata)
Fixed that.

Clahymore
Member
Posts: 11
Joined: Wed Jun 20, 2012 10:30

by Clahymore » Post

OMG!! I have been waiting for a mod like this. THANK YOU SO MUCH. It works fine with the latest 0.4.2 which is awesome.

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

by Splizard » Post

Sorry, another bug :(

Code: Select all

minetest/item_drop/init.lua:3: bad argument #1 to 'find' (string expected, got table)
This occurs when digging leaves (maybe since leaves have multiple node drop possibilities?).
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

Clahymore
Member
Posts: 11
Joined: Wed Jun 20, 2012 10:30

by Clahymore » Post

Splizard wrote:Sorry, another bug :(

Code: Select all

minetest/item_drop/init.lua:3: bad argument #1 to 'find' (string expected, got table)
This occurs when digging leaves (maybe since leaves have multiple node drop possibilities?).
Yeah I just noticed that too. I made a new world and spawned on leaves then dug down and crashed my game :(

Clahymore
Member
Posts: 11
Joined: Wed Jun 20, 2012 10:30

by Clahymore » Post

There is another bug with the moreores mod. When you dig it it crashes and says :
item_drop\init.lua:7: 'for' limit must be a number
?

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

by PilzAdam » Post

I will try to fix all the bugs but i am working on a secret mod now so it could take a while.
The next version will fix all the bugs. Please report new bugs here.

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

by PilzAdam » Post

All bugs fixed in version 3.

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

by sfan5 » Post

Good!
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

by Splizard » Post

I dropped a bucket of lava with right click and this error occurred:

Code: Select all

minetest/item_drop/init.lua:90: attempt to index a nil value
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

User avatar
Mallot1
Member
Posts: 85
Joined: Wed Jun 27, 2012 04:38

by Mallot1 » Post

PilzAdam wrote:
Mallot1 wrote:i dont know what minecraft like item/drop is please be more specific.
When you dig a block it dont appears in your inventory but it falls down as a item and you can pick it up by walking over it.
thx ill download it
aw man it crashs when i use my game use it 0.4.2

Spots
Member
Posts: 124
Joined: Tue Jul 24, 2012 12:12
Location: Outta my mind someplace.

by Spots » Post

yea i'm getting issues too not stacking right i get max stacks of 69 (nice number though)and i mine tin and it crashes

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

by PilzAdam » Post

Splizard wrote:I dropped a bucket of lava with right click and this error occurred:

Code: Select all

minetest/item_drop/init.lua:90: attempt to index a nil value
Fixed. Ill upload it with version 4.

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

by PilzAdam » Post

Spots wrote:yea i'm getting issues too not stacking right i get max stacks of 69 (nice number though)and i mine tin and it crashes
It should be 64. Can you give me more information (Minetest version, os, item_drop version (more information => more help)).
Last edited by PilzAdam on Sun Aug 05, 2012 10:34, edited 1 time in total.

User avatar
Myu
Member
Posts: 30
Joined: Thu Sep 22, 2011 09:08

by Myu » Post

When mining a lot, there's a stack issue as it seems

Here's the backtrace :

13:15:04: ERROR[main]: ServerError: LuaError: error: ...8331f0/bin/../games/minitest/mods/item_drop/init.lua:30: 'for' limit must be a number
13:15:04: ERROR[main]: stack traceback:

EDIT : oops, was using an old version under Minitest v5 Game, problem seems to be fixed when installing item_drop v3
but issue remains when mining ores from "moreores" mod
Last edited by Myu on Sun Aug 05, 2012 11:28, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests