# as rule marker # with rgb_op execute store result score @a[tag=rgb_op] rgb_R run data get entity @s data.events[{type:"set_red"}].value