[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

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

by PilzAdam » Fri Aug 03, 2012 13:17

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

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
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
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

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
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
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
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
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: 220
Joined: Wed Jan 25, 2012 07:20
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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
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
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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: 220
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard

by Splizard » Sat Aug 04, 2012 10:19

Sorry, another bug :(
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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 :(
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
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
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sat Aug 04, 2012 15:18

All bugs fixed in version 3.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
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: 220
Joined: Wed Jan 25, 2012 07:20
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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

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
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

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.
 

User avatar
Splizard
Member
 
Posts: 220
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard

by Splizard » Sun Aug 05, 2012 22:14

With activating mesecon pistons this error occurs:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest/item_drop/init.lua:31: 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).
 

Spots
Member
 
Posts: 124
Joined: Tue Jul 24, 2012 12:12

by Spots » Mon Aug 06, 2012 00:21

minetest-0.4.1-win32 , Windows 7 ,item_drop v3
Last edited by Spots on Mon Aug 06, 2012 00:21, edited 1 time in total.
 

leo_rockway
Member
 
Posts: 131
Joined: Tue Jul 31, 2012 20:37

by leo_rockway » Tue Aug 07, 2012 02:28

In moreores' init.lua line 60, the drop has an additional "craft" in front of the name of the drop, which confuses your mod.
I believe that your mod is acting correctly, so I changed that line in moreores to this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
drop = item_base..'_lump 1'


It seems to work fine now.
 

User avatar
SegFault22
Member
 
Posts: 870
Joined: Mon May 21, 2012 03:17

by SegFault22 » Sat Aug 11, 2012 19:19

why limit stacks to 64? That's too Minecraft-like and slow.
Resources are abundant; only money is scarce. People should not have to work hard and remain poor just to pay for the needs of survival.
Society can thrive without money - but only if productive members of society are rewarded for being productive.
 

User avatar
cHyper
Member
 
Posts: 587
Joined: Fri May 06, 2011 08:49
IRC: cHyper
In-game: cHyper

by cHyper » Sat Aug 11, 2012 20:20

works fine with latest minecraft version (0.4.2) ... awesome ...
--------------------------------------------------------
 

Next

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 59 guests

cron