I have a an area with lots of armour stands. Under each one is a dispenser with 1 - 54 items in the first slot, which is its sort of 'id'. I need to temporarily save the number of items in each of those dispensers to a scoreboard which I am doing like so:
execute as @e[tag=char] at @e[tag=char] store result score @s temp run data get block ~ ~-1 ~ Items.Count
execute as @e[tag=getblock] at @e[tag=getblock] unless block ~ ~-1 ~ minecraft:air store result score blockCount load run data get block ~ ~-1 ~ Items.Count
and this runs perfectly. There is only one amour stand with that tag but that shouldn't matter because I am running the other command using
@s which will just use the UUID of the entity.
What could be the reason for this?