Request: Event that fires when a robot inserts/extracts from a player's inventory
Posted: Fri Sep 11, 2020 7:52 pm
I would like an event to fire when a robot interacts with a player's inventory, hopefully including the following information:
-Player Index
-The itemStack that the robot takes/gives
-Some indicator if a robot is giving items or taking items (maybe one event for giving and one for taking?)
-I'm hoping this event will fire if a robot deposits directly into a player's hand as well
-Also, even though I don't personally require this, It may be useful for other modders if the robots name/type or something is also listed.
Robots interacting with a player's inventory is one of the few/only ways the player's inventory can change that doesn't have a dedicated event other than on_player_main_inventory_changed.
This isn't something that's critical for me to have or anything, but it would provide a performance boost whenever a robot interacts with a player's inventory as my mod would not need to loop through the entire inventory to update the information my mod displays.
-Player Index
-The itemStack that the robot takes/gives
-Some indicator if a robot is giving items or taking items (maybe one event for giving and one for taking?)
-I'm hoping this event will fire if a robot deposits directly into a player's hand as well
-Also, even though I don't personally require this, It may be useful for other modders if the robots name/type or something is also listed.
Robots interacting with a player's inventory is one of the few/only ways the player's inventory can change that doesn't have a dedicated event other than on_player_main_inventory_changed.
This isn't something that's critical for me to have or anything, but it would provide a performance boost whenever a robot interacts with a player's inventory as my mod would not need to loop through the entire inventory to update the information my mod displays.