Saw 1 previously asked question, but didn't find answer for me.
(The only thing I understood is that you can't set variant via script).
Trying like this:
entity.getComponent('minecraft:mark_variant').value = 1
but here is readonly value. Also trying like this:
entity.setProperty('minecraft:mark_variant', 1)
Error: property 'minecraft:mark_variant' not found.
Both methods don't work.
Help me please, guys.