AdvancedPeripherals
AdvancedPeripherals copied to clipboard
return slot that items are in with inventoryManager.getItems
Describe your idea
Since it is currently possible to extract items from a specific slot with the inventory manager it would also be nice to know what slot every item is in to do some more advanced stuff like never touching stuff in hotbar or extracting items with specific damage values.
Describe alternatives you've considered if you've any
Add an additional argument to removeItemsFromPlayer to filter on a damage value. This might only be a bandaid fix tho so my proposed feature is prefered over this.
Additional context
I am trying to make a wireless ae like terminal but items with different damage values can not be properly handled without either having an additional argument to removeItemsFromPlayer or being able to see what slot some item is in.
below a possible code snippet of how it would work.
basicly instead of creating a table indexed to 0 index it to the slot an item is in

Linked Issues
No response