TransWikia.com

How can I detect if a player doesn't wear a diamond chestplate?

Arqade Asked by Cat135 on July 3, 2021

I’m making a datapack that makes a new enchantment. and I didn’t find a way to detect if player does not wear a diamond chestplate with predicate. if someone knows what should I do please answer.

me and my friends did it we found a way.

One Answer

as simple as follows:

enter image description here

the purple command block has:

/execute as @a[nbt={Inventory:[{id:"minecraft:diamond_chestplate",Slot:102b}]}] run help

basically, the command block will turn on the comparator when someone has a chestplate, and we can just flip the signal.

enter image description here

Answered by lawrencfgsdfg on July 3, 2021

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