on_player_cursor_stack_changed and inventory source ?
Posted: Thu Aug 04, 2016 12:45 pm
Hi,
it would nice if in the on_player_cursor_stack_changed event, we could know where this stack comes from.
If it comes from an inventory, a inventory_source (and entity_source) would be nice
ex : if I pick from player main inventory, it will return
entity = player.character
inventory = player inventory
if I pick from a chest, it will return
entity = chest
inventory = the concerned inventory
If I pick from a furnace, etc...
PS : to avoid returning the entity, but just the inventory, it would be nice that LuaInventory contains "entity" : the entity that ows the inventory.
it would nice if in the on_player_cursor_stack_changed event, we could know where this stack comes from.
If it comes from an inventory, a inventory_source (and entity_source) would be nice
ex : if I pick from player main inventory, it will return
entity = player.character
inventory = player inventory
if I pick from a chest, it will return
entity = chest
inventory = the concerned inventory
If I pick from a furnace, etc...
PS : to avoid returning the entity, but just the inventory, it would be nice that LuaInventory contains "entity" : the entity that ows the inventory.