1

Crossbow loading detection

Avitopia 4/16/20 8:25 pm
926
4/17/2020 10:14 am
I just come across a problem with what I have been making... I don't know how to detect when a player loads a crossbow... Is this possible?
Posted by
Avitopia
Level 5 : Apprentice Artist
7

  Have something to say?

JoinSign in

2

set_135
04/16/2020 9:12 pm
Level 39 : Artisan Blacksmith
history
/execute as @a[​nbt={Inventory:[{id:"minecraft:crossbow",tag:{Charged:1b}}]}] run say hi

did this in 1.15.2 and it worked (only when it was fully charged)
3
Avitopia
04/17/2020 10:14 am
Level 5 : Apprentice Artist
Ok. I think I can work with this.
1

Welcome