Skip to main content
Tweeted twitter.com/#!/TheArqade/status/553775042438656000

how How can iI search for a specific item with attributes?

I want to test if a player has the following item:

minecraft:bow 1 0 {display:{Name:Bow I},ench:[{id:48,lvl:1}]}

A bow with a name of "Bow 1" and has a Power I enchantment.

I know this command works with normal items:

/testfor @p {Inventory:[{id:"minecraft:bow"}]}

But iI don't know how to add the attributes, or is. Is it possible to search for a specific item name? For For example, test to see if I have the item "Bow I" in my inventory?

how can i search for a specific item with attributes?

I want to test if a player has the following item:

minecraft:bow 1 0 {display:{Name:Bow I},ench:[{id:48,lvl:1}]}

A bow with a name of "Bow 1" and has a Power I enchantment.

I know this command works with normal items:

/testfor @p {Inventory:[{id:"minecraft:bow"}]}

But i don't know how to add the attributes, or is it possible to search for a specific item name? For example, test if I have the item "Bow I" in my inventory?

How can I search for a specific item with attributes?

I want to test if a player has the following item:

minecraft:bow 1 0 {display:{Name:Bow I},ench:[{id:48,lvl:1}]}

A bow with a name of "Bow 1" and has a Power I enchantment.

I know this command works with normal items:

/testfor @p {Inventory:[{id:"minecraft:bow"}]}

I don't know how to add the attributes. Is it possible to search for a specific item name? For example, test to see if I have the item "Bow I" in my inventory?

added 8 characters in body
Source Link
aytimothy
  • 17.8k
  • 17
  • 83
  • 140

iI want to test if a player has the following item:

minecraft:bow 1 0 {display:{Name:Bow I},ench:[{id:48,lvl:1}]}

minecraft:bow 1 0 {display:{Name:Bow I},ench:[{id:48,lvl:1}]}A bow with a name of "Bow 1" and has a Power I enchantment.

iI know this command works with normal items:

/testfor @p {Inventory:[{id:"minecraft:bow"}]}

/testfor @p {Inventory:[{id:"minecraft:bow"}]}

butBut i dontdon't know how to add the attributes

 , or is it possible to search for a specific item name? like For example, test if iI have the item "Bow I" in my inventory?

thanks

i want to test if a player has the following item:

minecraft:bow 1 0 {display:{Name:Bow I},ench:[{id:48,lvl:1}]}

i know this command works with normal items:

/testfor @p {Inventory:[{id:"minecraft:bow"}]}

but i dont know how to add the attributes

  or is it possible to search for a specific item name? like test if i have the item "Bow I" in my inventory?

thanks

I want to test if a player has the following item:

minecraft:bow 1 0 {display:{Name:Bow I},ench:[{id:48,lvl:1}]}

A bow with a name of "Bow 1" and has a Power I enchantment.

I know this command works with normal items:

/testfor @p {Inventory:[{id:"minecraft:bow"}]}

But i don't know how to add the attributes, or is it possible to search for a specific item name? For example, test if I have the item "Bow I" in my inventory?

Source Link
Wilmz
  • 53
  • 2
  • 7

how can i search for a specific item with attributes?

i want to test if a player has the following item:

minecraft:bow 1 0 {display:{Name:Bow I},ench:[{id:48,lvl:1}]}

i know this command works with normal items:

/testfor @p {Inventory:[{id:"minecraft:bow"}]}

but i dont know how to add the attributes

or is it possible to search for a specific item name? like test if i have the item "Bow I" in my inventory?

thanks