This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Oh, the title is kinda misleading. Anyway, how do I get the getInventorySlot thing to work?
What inventory? The storage one or the hotbar?
Oh, and is the Player prefix important?
Quote from SpeedHackedMCยป What inventory? The storage one or the hotbar? Oh, and is the Player prefix important?
The Player prefix is important and the slots 0-8 are the hotbar-slots and this are the functions you can use:
Player.getInventorySlot(slot)
Player.getInventorySlotCount(slot)
Player.getInventorySlotData(slot)
And if you want to know which item the player carries:
Player.getCarriedItem()
Player.getCarriedItemCount()
Player.getCarriedItemData()
Oh, the title is kinda misleading. Anyway, how do I get the getInventorySlot thing to work?
What inventory? The storage one or the hotbar?
Oh, and is the Player prefix important?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThe Player prefix is important and the slots 0-8 are the hotbar-slots and this are the functions you can use:
Player.getInventorySlot(slot)
Player.getInventorySlotCount(slot)
Player.getInventorySlotData(slot)
And if you want to know which item the player carries:
Player.getCarriedItem()
Player.getCarriedItemCount()
Player.getCarriedItemData()