1

Help with commands plz

Comradeee 12/7/21 3:39 pm
67
12/8/2021 12:30 am
how to make an object, when holding in your hand, a command is executed or a command that is executed if you hold a certain object in your hand?
Posted by
Comradeee
Level 39 : Artisan System
26

  Have something to say?

JoinSign in

4

HoboMaggot
12/07/2021 9:11 pm
Level 55 : Grandmaster Blob
/execute if entity @p[nbt={SelectedItem:{id:"minecraft:dirt",Count:1b,tag:{optional_tag:1b}}}]
Or use a predicate

The selector generator
The predicate generator
2
Comradeee
12/08/2021 12:06 am
Level 39 : Artisan System
Oh, thanks, but how i can tag items?
1
HoboMaggot
12/08/2021 12:29 am
Level 55 : Grandmaster Blob
give @s dirt{custom_tag:1b}
2
Comradeee
12/08/2021 12:30 am
Level 39 : Artisan System
THANKS!
1

Welcome