## Summon entities
execute run summon item_display ~ ~0.8 ~ {Tags:["vb.custom_mob.oceanic_orb","vb.custom_mob","vb.new_summon"],Rotation:[0F,0F],item:{id:"minecraft:paper",count:1,components:{"minecraft:item_model":"vb:custom_mob/oceanic_orb","minecraft:custom_model_data":{flags:[0 f]}}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.5f,1.5f,1.5f]}}
summon slime ~ ~ ~ {Tags:["vb.custom_mob.oceanic_orb_core","vb.custom_mob","vb.new_summon"],DeathLootTable:"vb:entities/oceanic_orb",NoAI:1b,PersistenceRequired:1b,Size:0}

## Stats
effect give @n[tag=vb.new_summon,tag=vb.custom_mob.oceanic_orb_core] resistance infinite 200 true
effect give @n[tag=vb.new_summon,tag=vb.custom_mob.oceanic_orb_core] instant_health infinite 200 true
effect give @n[tag=vb.new_summon,tag=vb.custom_mob.oceanic_orb_core] invisibility infinite 0 true

## ID the entities
scoreboard players add #VB vb.id.oceanic_orb 1
scoreboard players operation @n[tag=vb.new_summon,tag=vb.custom_mob.oceanic_orb] vb.id.oceanic_orb = #VB vb.id.oceanic_orb
scoreboard players operation @n[tag=vb.new_summon,tag=vb.custom_mob.oceanic_orb_core] vb.id.oceanic_orb = #VB vb.id.oceanic_orb

## Remove new summon tag
tag @n[tag=vb.new_summon] remove vb.new_summon