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

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

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Wed Dec 19, 2012 09:21

So how does one remove this mod? I tried deleting mod folder and restarting server (many times since removal of folder) and item drop still happens.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

Vincentius_Maximus
Member
 
Posts: 14
Joined: Mon Nov 05, 2012 13:52

by Vincentius_Maximus » Thu Dec 20, 2012 03:05

Did you make the sounds from scratch?
 

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

by PilzAdam » Thu Dec 20, 2012 16:31

Vincentius_Maximus wrote:Did you make the sounds from scratch?

No, they are from the blockplanet alias Minetest++ fork.
 

restcoser
New member
 
Posts: 1
Joined: Wed Apr 10, 2013 14:48

by restcoser » Wed Apr 10, 2013 14:49

I changed the mod for me to have a gain of 0.4, seems much better, could it be modified in the original as well?
 

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

by PilzAdam » Wed Apr 10, 2013 14:53

restcoser wrote:I changed the mod for me to have a gain of 0.4, seems much better, could it be modified in the original as well?

Done: https://github.com/PilzAdam/item_drop/commit/d59ec6005808cf1d35c14f428fb5d0e8c999e255
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Wed Apr 10, 2013 16:01

excuse me, what part of code does the dig-drop part and what part does the pickup part?
 

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

by PilzAdam » Wed Apr 10, 2013 16:12

Mito551 wrote:excuse me, what part of code does the dig-drop part and what part does the pickup part?

The globalstep function handles the pickup and the handle_node_drops() function does the drop.
Last edited by PilzAdam on Wed Apr 10, 2013 16:13, edited 1 time in total.
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Wed Apr 10, 2013 16:16

PilzAdam wrote:
Mito551 wrote:excuse me, what part of code does the dig-drop part and what part does the pickup part?

The globalstep function handles the pickup and the handle_node_drops() function does the drop.


thank you! so that means if i comment out the handle_node_drops() function, i will be picking up stuff which is on the floor already, but getting it directly in my inventory if i dig a node?
 

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

by PilzAdam » Wed Apr 10, 2013 18:24

Mito551 wrote:
PilzAdam wrote:
Mito551 wrote:excuse me, what part of code does the dig-drop part and what part does the pickup part?

The globalstep function handles the pickup and the handle_node_drops() function does the drop.


thank you! so that means if i comment out the handle_node_drops() function, i will be picking up stuff which is on the floor already, but getting it directly in my inventory if i dig a node?

Yes.
 

User avatar
Pavel_S
Member
 
Posts: 131
Joined: Sat Apr 06, 2013 11:43
 

User avatar
Calinou
Moderator
 
Posts: 3159
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Fri Apr 26, 2013 06:50

Pavel_S wrote:brightness of drop doesn`t change at night.
Image


This also happens in the default game, entity brightness values are incorrect.
 

ndjdjksisksk
Member
 
Posts: 130
Joined: Mon May 06, 2013 04:11

by ndjdjksisksk » Mon May 06, 2013 04:14

this does not work for somereason it doesn't load and now none of my mods in the folder are loading
nvm about me leaving minetest but i probably will for a while because i have nothing to do in this comunity becaise i can't make a server. my username is going to change i will make a new acount called stormchaser3000
 

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

by PilzAdam » Mon May 06, 2013 08:31

ndjdjksisksk wrote:this does not work for somereason it doesn't load and now none of my mods in the folder are loading

Can you give more information about the error? (http://forum.minetest.net/viewtopic.php?id=5073)

Also make sure to rename the folder from "item_drop-master" (or whatever name github gave the file) to "item_drop".
 

User avatar
Cooper97
Member
 
Posts: 52
Joined: Thu Feb 21, 2013 19:55
Location: Germany

by Cooper97 » Wed Aug 07, 2013 06:38

I have tried this mod under 0.4.7, but it does not drop the nodes. Is that a bug or is it possible that it is an incompatibility to other mods?
Sorry for my bad english. (I am from germany.)
 

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

by PilzAdam » Wed Aug 07, 2013 11:22

Cooper97 wrote:I have tried this mod under 0.4.7, but it does not drop the nodes. Is that a bug or is it possible that it is an incompatibility to other mods?

I just tested it and it works fine.
Do you use technic (or technic_game) or creative mode?
 

User avatar
Cooper97
Member
 
Posts: 52
Joined: Thu Feb 21, 2013 19:55
Location: Germany

by Cooper97 » Wed Aug 07, 2013 11:28

Oh, no I do not use the technic mod but to build I use the creativ mode. I think that is the problem :D
Sorry for my bad english. (I am from germany.)
 

wenLiangcan
New member
 
Posts: 2
Joined: Wed Aug 07, 2013 13:51

by wenLiangcan » Wed Aug 07, 2013 13:58

Failed to load and run under 0.4.7
Image
 

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

wenLiangcan
New member
 
Posts: 2
Joined: Wed Aug 07, 2013 13:51

by wenLiangcan » Thu Aug 08, 2013 05:22

PilzAdam wrote:
wenLiangcan wrote:Failed to load and run under 0.4.7

https://forum.minetest.net/viewtopic.php?id=6450
Rename the mod to "item_drop".


Thanks, it works now.
 

User avatar
onpon4
Member
 
Posts: 517
Joined: Thu Mar 21, 2013 01:54

by onpon4 » Thu Sep 12, 2013 03:59

There's a typo in line 58 of init.lua:

Code: Select all
bject:get_luaentity().physical_state = true


It should be:

Code: Select all
object:get_luaentity().physical_state = true


This causes the server to crash if it gets to that point.
Last edited by onpon4 on Thu Sep 12, 2013 03:59, 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 » Thu Sep 12, 2013 11:46

onpon4 wrote:There's a typo in line 58 of init.lua:

Code: Select all
bject:get_luaentity().physical_state = true


It should be:

Code: Select all
object:get_luaentity().physical_state = true


This causes the server to crash if it gets to that point.

Fixed.
 

User avatar
ak399g
Member
 
Posts: 160
Joined: Tue Jul 30, 2013 02:36
In-game: SAFR

by ak399g » Fri Dec 27, 2013 17:06

If I only want the pickup function, not the drop on death or other stuff, which lines do I comment out?
aka SAFR
 

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

by PilzAdam » Fri Dec 27, 2013 17:09

ak399g wrote:If I only want the pickup function, not the drop on death or other stuff, which lines do I comment out?

Lines 1 to 71 are pickup, the rest is dropping.
 

User avatar
MirceaKitsune
Member
 
Posts: 860
Joined: Sat May 21, 2011 22:31
Location: Romania, Bucharest
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune

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

by MirceaKitsune » Sun Jun 15, 2014 16:01

I checked out the latest GIT version, and found an obvious problem: You can no longer drop items, because they're picked back up immediately after leaving your inventory. Can some sort of cooldown be added, so items can only be picked up a second after their entity appears in-world?
 

PreviousNext

Return to Mod Releases



Who is online

Users browsing this forum: MSN [Bot] and 5 guests