Hello!
I customize the inventory and use inventory.offer (itemstack); add item to the inventory. But how do I add something to the specified slot?I customize the inventory and use inventory.offer (itemstack); add item to the inventory. But how do I add something to the specified slot?
Thank you first!
For example: how to add an apple to the position of diamond sword?
It’s my code.
The code at the red line can not be used. Which way should I use?