TransWikia.com

What is wrong about this command? (commandblocks)

Arqade Asked by Broken Fence on November 30, 2020

execute if entity @e[type=item_frame,x=124,y=65,z=81,nbt={Item:{id:"minecraft:paper"},tag:{display:{Name:'{"text":"Hwacha","color":"blue","italic":false}',Lore:['{"text":"Masterwork Schematic","color":"white","italic":false}']},Enchantments:[{}]}}]

I have this in a repeating command block. I’m trying to test for a specific named piece of paper in an item frame. When I put the specified item in the item frame at the specified coordinates, it does nothing.
The command shows up in blue so I don’t know why it is not working? Any Ideas? Java edition 1.16.3.

One Answer

tag goes inside Item.

Wrong way:

0: {
1:     Item:{
2:         id:"minecraft:paper"
3:     },
4:     tag:{
5:          display:{
6:              Name:'{"text":"Test"}'
7:          }
8:     }
9: }

Right way:

0: {
1:     Item:{
2:         id:"minecraft:paper",
3:         tag:{
4:             display:{
5:                 Name:'{"text":"Test"}'
6:             }
7:         }
8:     }
9: }

Answered by ExpertCoder14 on November 30, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP