Place items in specific slots?
//ads -- adsterra.com -- native banner
?>
I'm trying to place items in certain slots in a players inventory and I know you can testfor an item in a specific slot:
/testfor @a[r=10] {Inventory[{Slot:103b,id:"minecraft:leather_helmet"}]}
This is actually a command I used in 1.8
Instead of the testfor to test for the item in a slot, place the item in a slot, using a command like the give command to place the item in the specific slot:
/give @a[r=10] {Inventory:[{Slot:103b,id:"minecraft:leather_helmet"}]}
Can I do this in Minecraft 1.9?
Pictures about "Place items in specific slots?"
Make An RPG: Inventory System Part 7[Placing Items in Slots]
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Cintia Siqueira, ANTONI SHKRABA, ANTONI SHKRABA, DS stories