1 (edited by PilzAdam 2012-09-08 08:53:35)

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

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:

2 (edited by Bas080 2013-02-26 10:57:17)

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

init lua:3: bar argument #1 to

EDIT: Works great. I use the pickup functionality. Not the drop on dig.

My mods
Try my mod pack at 31.151.189.3:30001
Donate if you like what I do

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

Bas080 wrote:

init lua:3: bar argument #1 to

Is this an error message?

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

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

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

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

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

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.

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

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

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

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

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

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.

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

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

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

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

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.

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

Splizard wrote:

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

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

Fixed that.

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

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.

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

Sorry, another bug :(

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: The Hungry Games.
Mods: Snow Biomes and Gates.
Also checkout my texture pack Gridtoon!

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

Splizard wrote:

Sorry, another bug :(

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 :(

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

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
?

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

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.

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

All bugs fixed in version 3.

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

Good!

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

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

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

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

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

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

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

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

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

Splizard wrote:

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

minetest/item_drop/init.lua:90: attempt to index a nil value

Fixed. Ill upload it with version 4.

24 (edited by PilzAdam 2012-08-05 10:34:58)

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

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

25 (edited by Myu 2012-08-05 11:28:30)

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

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