This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I'm trying to make a zombies map and all I need is to test for a specific item in an item frame to make a pack a punch system. If possible test the enchantments the item has as well.
I found a command that works for half of this issue but I don't know if it is possible to use it to test for enchantments.
/execute if entity @e[type=item_frame,x=281,y=161,z=428,nbt={Item:{id:"minecraft:wooden_axe"}}]
you can
use testforblocks... And compare it to another frame with the item you want
yo, dis man still in 1.12.2
Quote from anime_watcher2» yo, dis man still in 1.12.2
Dis man is not in the right forums. You do realize this is the BEDROCK forums right? Not Java...
execute if entity @e[type=item_frame,x=281,y=161,z=428,nbt={Item:{id:"minecraft:wooden_axe",tag:{Enchantments:[{id:sharpness,lvl:1}]}}}]
this would detect if the axe had sharpness I replace everything in the tag:{} with the nbt data of the item
I'm trying to make a zombies map and all I need is to test for a specific item in an item frame to make a pack a punch system. If possible test the enchantments the item has as well.
I found a command that works for half of this issue but I don't know if it is possible to use it to test for enchantments.
/execute if entity @e[type=item_frame,x=281,y=161,z=428,nbt={Item:{id:"minecraft:wooden_axe"}}]
you can
use testforblocks... And compare it to another frame with the item you want
yo, dis man still in 1.12.2
Dis man is not in the right forums. You do realize this is the BEDROCK forums right? Not Java...
this would detect if the axe had sharpness I
replace everything in the tag:{} with the nbt data of the item