Quiero usar bloques de comandos para dar a un jugador un item (en este caso cgm:advanced_bullet) cada vez que se le acabe ese mismo item.
He intentado utilizar esta serie de comandos:
execute as @a if data entity @s {Inventory:[{id:"cgm:advanced_bullet",Count:0b}]} run tag add @s ammoRefill
give @a[tag=ammoRefill] cgm:advanced_bullet 64
tag remove @a[tag=ammoRefill] ammoRefill