Page 1 of 1

new `on_dropped_item` event?

Posted: Sat Oct 08, 2016 6:15 am
by aubergine18
Currently there's no easy way to determine if a player dropped an item using the Z key.

I have need to detect this situation and either replace item-on-ground entity with something else, or delete it.

Could we get new event when player drops item using Z key?

Event properties would include: player_index, entity (ref to the item-on-ground entity)

Aside: Would it be worth renaming on_picked_up_item to on_player_picked_up_item? (and likewise: on_player_dropped_item)

EDIT: See also: viewtopic.php?f=25&t=33935

Re: new `on_dropped_item` event?

Posted: Sat Oct 08, 2016 2:46 pm
by Rseding91
I can add that. However, when the player drops an item onto a belt there's no associated item entity so it's going to be blank in that instance.

Re: new `on_dropped_item` event?

Posted: Sat Oct 08, 2016 3:27 pm
by aubergine18
Yup, that's OK :)

Re: new `on_dropped_item` event?

Posted: Tue Oct 11, 2016 4:06 am
by Rseding91
Added for 0.15.

Re: new `on_dropped_item` event?

Posted: Tue Oct 11, 2016 2:36 pm
by aubergine18
<3