[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

by PilzAdam » Post

New sounds added.

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

by RAPHAEL » Post

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 » Post

Did you make the sounds from scratch?

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

by PilzAdam » Post

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
GitHub: restcoser
IRC: restcoser
In-game: restcoser

by restcoser » Post

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
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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/c ... e8c999e255

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

by Mito551 » Post

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
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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 » Post

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
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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

by Pavel_S » Post

brightness of drop doesn`t change at night.
Image

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

by Calinou » Post

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 » Post

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
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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 » Post

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
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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 » Post

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 » Post

Failed to load and run under 0.4.7
Image

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

by PilzAdam » Post

wenLiangcan wrote:Failed to load and run under 0.4.7
http://i.imgur.com/491Jwx2.png?2
viewtopic.php?id=6450
Rename the mod to "item_drop".

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

by wenLiangcan » Post

PilzAdam wrote:
wenLiangcan wrote:Failed to load and run under 0.4.7
viewtopic.php?id=6450
Rename the mod to "item_drop".
Thanks, it works now.

User avatar
onpon4
Member
Posts: 518
Joined: Thu Mar 21, 2013 01:54
GitHub: onpon4
In-game: diligentcircle
Contact:

by onpon4 » Post

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
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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

by ak399g » Post

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
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

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: 937
Joined: Sat May 21, 2011 22:31
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune
Location: Romania, Bucharest

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

by MirceaKitsune » Post

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?

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Lars and 12 guests