#as 対象のプレイヤー entity_uuid/player/convert/{PlayerIntID:(保存対象のプレイヤーID)int}
#指定したPlayerINTIDのUUIDを16進数に変更して保存する
###unlicense Simple UUID Converter by gibbsly

#初期化
data merge storage untwo:temp {convert_uuid:{temp:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,a:0,b:0,c:0,d:0,e:0,f:0}}}
#演算
$function untwo:entity_uuid/player/convert/operate_uuid {PlayerIntID:$(PlayerIntID)}
#"16進数"一覧から各桁をtempに割り当て
function untwo:entity_uuid/player/convert/get_hexes with storage untwo:temp convert_uuid.temp
#割り当てられたtempからハイフン付きの値に変換
function untwo:entity_uuid/player/convert/concat_uuid with storage untwo:temp convert_uuid.temp

#コンテナtemp.convert_uuid.outにIDとUUID16を収納
$data modify storage untwo:temp convert_uuid.out.PlayerIntID set value $(PlayerIntID)
#outのデータをプレイヤーリストに加える
function untwo:entity_uuid/player/convert/storage_save with storage untwo:temp convert_uuid.out
