You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Put item in player's inventory. In this first int is container id and second is slot. Slot range is 0 - 35. 0 - 10 are also player's hotbar slots. 10 - 35 the rest inventory slots that are visable only when opening inventory.
This example is showing how to put item in player's inventorys 2nd slot that is also hotbar 2nd slot. 0 is 1st slot.
Inventory.Set(0, 1, new Items.VanillaItems.DiamondLeggings());
Send(int, int, Item);
Similar to set but difference between Set and Send is that Send wont save item in player's inventory but just send it for visual effects.
Inventory.Send(0, 1, new Items.VanillaItems.DiamondLeggings());