mycommand.yaml
change_screen:
command: /change_screen
type: RUN_COMMAND
runcmd:
- "data modify entity @e[nbt={TileX:-680, TileY:68, TileZ:-39}, limit=1] Item.tag.CustomModelData set value $randomnumber%240<to>244%"
/gamerule commandBlockOutput false