dragnoz

test for items in player inventory

Mar 10th, 2014
3,694
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. /testfor @p {SelectedItemSlot:0}
  2.  
  3. testfor @p[r=10] {Inventory:[{id:"minecraft:diamond_sword"}]}
  4.  
  5. testfor @p[r=10] {Inventory:[{Slot:0b,id:"minecraft:diamond_sword"}]}
  6.  
  7. testfor @p[r=10] {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"minecraft:diamond_sword"}]}
  8.  
  9. testfor @p[r=10] {Inventory:[{tag:{display:{Name:"Ice Blade"}}}]}
  10.  
  11. testfor @p[r=10] {SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{display:{Name:"Ice Blade"}}}]}
Advertisement
Add Comment
Please, Sign In to add comment