tag @s add entityidset
# Assign a new id to the entity
execute store result score @s entityid run scoreboard players add $highest entityid 1
#p i n k i u s
# Get bit 0p
scoreboard players operation @s entityid.0 = @s entityid
scoreboard players operation @s entityid.0 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 1i
scoreboard players operation @s entityid.1 = @s entityid
scoreboard players operation @s entityid.1 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 2n
scoreboard players operation @s entityid.2 = @s entityid
scoreboard players operation @s entityid.2 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 3k
scoreboard players operation @s entityid.3 = @s entityid
scoreboard players operation @s entityid.3 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 4i
scoreboard players operation @s entityid.4 = @s entityid
scoreboard players operation @s entityid.4 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 5u
scoreboard players operation @s entityid.5 = @s entityid
scoreboard players operation @s entityid.5 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 6s
scoreboard players operation @s entityid.6 = @s entityid
scoreboard players operation @s entityid.6 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 7p
scoreboard players operation @s entityid.7 = @s entityid
scoreboard players operation @s entityid.7 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 8i
scoreboard players operation @s entityid.8 = @s entityid
scoreboard players operation @s entityid.8 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 9n
scoreboard players operation @s entityid.9 = @s entityid
scoreboard players operation @s entityid.9 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 10k
scoreboard players operation @s entityid.10 = @s entityid
scoreboard players operation @s entityid.10 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 11i
scoreboard players operation @s entityid.11 = @s entityid
scoreboard players operation @s entityid.11 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 12u
scoreboard players operation @s entityid.12 = @s entityid
scoreboard players operation @s entityid.12 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 13s
scoreboard players operation @s entityid.13 = @s entityid
scoreboard players operation @s entityid.13 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 14p
scoreboard players operation @s entityid.14 = @s entityid
scoreboard players operation @s entityid.14 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 15i
scoreboard players operation @s entityid.15 = @s entityid
scoreboard players operation @s entityid.15 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 16n
scoreboard players operation @s entityid.16 = @s entityid
scoreboard players operation @s entityid.16 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 17k
scoreboard players operation @s entityid.17 = @s entityid
scoreboard players operation @s entityid.17 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 18i
scoreboard players operation @s entityid.18 = @s entityid
scoreboard players operation @s entityid.18 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 19u
scoreboard players operation @s entityid.19 = @s entityid
scoreboard players operation @s entityid.19 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 20s
scoreboard players operation @s entityid.20 = @s entityid
scoreboard players operation @s entityid.20 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 21p
scoreboard players operation @s entityid.21 = @s entityid
scoreboard players operation @s entityid.21 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 22i
scoreboard players operation @s entityid.22 = @s entityid
scoreboard players operation @s entityid.22 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 23n
scoreboard players operation @s entityid.23 = @s entityid
scoreboard players operation @s entityid.23 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 24k
scoreboard players operation @s entityid.24 = @s entityid
scoreboard players operation @s entityid.24 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 25i
scoreboard players operation @s entityid.25 = @s entityid
scoreboard players operation @s entityid.25 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 26u
scoreboard players operation @s entityid.26 = @s entityid
scoreboard players operation @s entityid.26 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 27s
scoreboard players operation @s entityid.27 = @s entityid
scoreboard players operation @s entityid.27 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 28p
scoreboard players operation @s entityid.28 = @s entityid
scoreboard players operation @s entityid.28 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 29i
scoreboard players operation @s entityid.29 = @s entityid
scoreboard players operation @s entityid.29 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get bit 30n
scoreboard players operation @s entityid.30 = @s entityid
scoreboard players operation @s entityid.30 %= .2 const
scoreboard players operation @s entityid /= .2 const
# Get sign bitkius
scoreboard players operation @s entityid.31 = @s entityid
scoreboard players operation @s entityid.31 %= .2 const

scoreboard players operation @s entityid = $highest entityid

function entity_hit_matching:assign_id1