$execute as $(name) run function mt:treasure/player/update/epic

setblock ~ ~ ~ minecraft:barrel[facing=up]{LootTable:"mt:chests/ice/epic",CustomName:{"text":"          Epic Ice Treasure","color":"dark_red","bold":false,"italic":false}} destroy

execute if entity @s[tag=mt.north] run summon item_display ~ ~0.545 ~ {CustomNameVisible:0b,Tags:["mt.entity","mt.marker","mt.e_skin","mt.skin","mt.legendary","smithed.entity","smithed.strict"],view_range:1f,width:0f,height:0f,interpolation_duration:10,item_display:"head",transformation:[-2.01f,0f,0f,0f,0f,2.11f,0f,0f,0f,0f,-2.01f,0f,0f,0f,0f,1f],brightness:{sky:10,block:10},item:{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1974477980,147736616,-1635819972,23806684],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmM2MjMzZDU3Yzk1ZTg1ZTExZDRkYmRjOGJhODIxMjUyZDE0ZDViZmFmY2NkNGViZmE2YWMyNzA3OWFiMzVmNyJ9fX0="}]}}}}
execute if entity @s[tag=mt.east] run summon item_display ~ ~0.575 ~ {CustomNameVisible:0b,Tags:["mt.entity","mt.marker","mt.e_skin","mt.skin","mt.epic","smithed.entity","smithed.strict"],view_range:1f,width:0f,height:0f,interpolation_duration:10,item_display:"head",transformation:[1.2307700331430898e-16f,0f,2.01f,0f,0f,2.11f,0f,-0.055f,2.01f,0f,1.2307700331430898e-16f,0f,0f,0f,0f,1f],brightness:{sky:10,block:10},item:{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1974477980,147736616,-1635819972,23806684],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmM2MjMzZDU3Yzk1ZTg1ZTExZDRkYmRjOGJhODIxMjUyZDE0ZDViZmFmY2NkNGViZmE2YWMyNzA3OWFiMzVmNyJ9fX0="}]}}}}
execute if entity @s[tag=mt.west] run summon item_display ~ ~0.575 ~ {CustomNameVisible:0b,Tags:["mt.entity","mt.marker","mt.e_skin","mt.skin","mt.epic","smithed.entity","smithed.strict"],view_range:1f,width:0f,height:0f,interpolation_duration:10,item_display:"head",transformation:[1.2307700331430898e-16f,0f,-2.01f,0f,0f,2.11f,0f,-0.055f,-2.01f,0f,1.2307700331430898e-16f,0f,0f,0f,0f,1f],brightness:{sky:10,block:10},item:{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1974477980,147736616,-1635819972,23806684],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmM2MjMzZDU3Yzk1ZTg1ZTExZDRkYmRjOGJhODIxMjUyZDE0ZDViZmFmY2NkNGViZmE2YWMyNzA3OWFiMzVmNyJ9fX0="}]}}}}
execute if entity @s[tag=mt.south] run summon item_display ~ ~0.545 ~ {CustomNameVisible:0b,Tags:["mt.entity","mt.marker","mt.e_skin","mt.skin","mt.legendary","smithed.entity","smithed.strict"],view_range:1f,width:0f,height:0f,interpolation_duration:10,item_display:"head",transformation:[-2.01f,0f,2.4492935982947064e-16f,0f,0f,2.11f,0f,0f,-2.4492935982947064e-16f,0f,-2.01f,0f,0f,0f,0f,1f],brightness:{sky:10,block:10},item:{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{id:[I;-1974477980,147736616,-1635819972,23806684],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmM2MjMzZDU3Yzk1ZTg1ZTExZDRkYmRjOGJhODIxMjUyZDE0ZDViZmFmY2NkNGViZmE2YWMyNzA3OWFiMzVmNyJ9fX0="}]}}}}

particle minecraft:white_ash ~ ~ ~ 0.5 0.5 0.5 0 500 force
particle minecraft:cloud ~ ~ ~ 0.5 0.5 0.5 0 100 force
playsound minecraft:entity.stray.death master @a[distance=..25] ~ ~ ~ 0.6 0.1 1
