IntelligenceModding / Advanced-Peripherals-Features

A place for the feature request for Advanced Peripherals
0 stars 1 forks source link

Add `slot` info for `inventoryManager.getItemInHand` #67

Closed zyxkad closed 2 weeks ago

zyxkad commented 5 months ago

Describe your idea

As the title, return the slot that the player selecting, then we could easily figure out which slot should we operate for the player in some specific case (e.g. put the current handing item into the chest).

Describe alternatives you've considered if you've any

invoke both getItems() and getPlayerHand(), compare items name, count and nbt then we can get a slow and inaccurate response.

Additional context

No response

Linked Issues

No response

SirEndii commented 4 weeks ago

Reopen until released