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

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

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

by PilzAdam » Fri Aug 03, 2012 08:53

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

by Bas080 » Fri Aug 03, 2012 12:52

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
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam
 

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

by Spots » Fri Aug 03, 2012 13:47

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 » Fri Aug 03, 2012 15:11

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

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

by PilzAdam » Fri Aug 03, 2012 15:43

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 » Fri Aug 03, 2012 16:05

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
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri Aug 03, 2012 16:09

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: 3825
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Fri Aug 03, 2012 21:19

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 (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

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

by Splizard » Fri Aug 03, 2012 21:44

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: The Hungry Games.
Mods: Lifters (Simple Lifts), Snow Biomes and Gates.
Also checkout my texture pack Gridtoon!
View all of them plus more at http://minetest.splizard.com! (may not always be online).
 

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

by PilzAdam » Sat Aug 04, 2012 09:21

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
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sat Aug 04, 2012 09:21

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 » Sat Aug 04, 2012 09:46

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: 216
Joined: Wed Jan 25, 2012 07:20
Location: New Zealand
GitHub: Splizard
IRC: Splizard
In-game: Splizard

by Splizard » Sat Aug 04, 2012 10:19

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: The Hungry Games.
Mods: Lifters (Simple Lifts), Snow Biomes and Gates.
Also checkout my texture pack Gridtoon!
View all of them plus more at http://minetest.splizard.com! (may not always be online).
 

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

by Clahymore » Sat Aug 04, 2012 10:27

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 » Sat Aug 04, 2012 12:30

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
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sat Aug 04, 2012 12:47

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
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam
 

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

by sfan5 » Sat Aug 04, 2012 15:25

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

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

by Splizard » Sat Aug 04, 2012 22:38

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: The Hungry Games.
Mods: Lifters (Simple Lifts), Snow Biomes and Gates.
Also checkout my texture pack Gridtoon!
View all of them plus more at http://minetest.splizard.com! (may not always be online).
 

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

by Mallot1 » Sun Aug 05, 2012 02:08

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 » Sun Aug 05, 2012 03:08

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
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Aug 05, 2012 10:33

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
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Aug 05, 2012 10:34

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 » Sun Aug 05, 2012 11:17

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.
 

Next

Return to Mod Releases

Who is online

Users browsing this forum: AiTechEye, Google [Bot] and 3 guests