Advanced Peripherals

Advanced Peripherals

29M Downloads

InventoryManager add/remove with NBT data

Erv00 opened this issue ยท 0 comments

commented

Describe your idea

Currently the InventoryManager's addItemToPlayer and removeItemFromPlayer function's item argument does not support NBT tags, thus we cannot add/remove enchanted items or rockets for example.
It would be nice to:

  • Add new functions, as to not change the existing API, or
  • Change the functions' signature to instead take a table, like the RS/ME bridges' exportItem

Describe alternatives you've considered if you've any

One alternative is to export from the RS/ME system to an empty chest, and don't filter while using the InventoryManager

Additional context

I think the second option is better even tho it changes API, because it would unify the ME and RS bridges and the InventoryManager

Linked Issues

No response