Summon a magical floating skull companion pet that smoothly bobs up and down in mid-air while orbiting its owner and trailing sparkling particles.
Pets & CompanionsMysticEndCutePurpleWhiteBlackServer LobbyAdventure MapDecorationBlock displaysItem displaysArmor standsSmooth animation (interpolation)Rotation math13-20 commands
This command creation adds a floating companion pet to Minecraft Java Edition without using any mods or resource packs. In the demonstration, an armored mannequin stands in for the player while a miniature glowing dragon head orbits around their shoulders, bobbing smoothly up and down using display entity interpolation.
As the companion glides through the air, it leaves a colorful trail of amethyst dust, end rod sparkles, and swirling enchant glyphs. Because it uses a lightweight item_display entity paired with an invisible armor stand anchor, the motion stays silky smooth without causing lag.
/scoreboard objectives add c9_timer dummy/summon armor_stand ~ ~ ~ {Tags:["c9_actor","c9_clean"],ShowArms:1b,NoBasePlate:1b,CustomName:'{"text":"Pet Owner","color":"aqua"}',CustomNameVisible:1b,equipment:{head:{id:"minecraft:golden_helmet"},chest:{id:"minecraft:diamond_chestplate"},legs:{id:"minecraft:diamond_leggings"},feet:{id:"minecraft:diamond_boots"},mainhand:{id:"minecraft:amethyst_shard"}}}/summon armor_stand ~ ~1.6 ~ {Tags:["c9_pet_anchor","c9_clean"],Invisible:1b,NoGravity:1b,Marker:1b}/summon item_display ~ ~1.6 ~ {Tags:["c9_pet","c9_clean"],item:{id:"minecraft:dragon_head"},Glowing:1b,glow_color_override:11141375,teleport_duration:2,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.1f,0f],scale:[0.55f,0.55f,0.55f]}}/summon block_display ~ ~1.6 ~ {Tags:["c9_pet_halo","c9_clean"],block_state:{Name:"minecraft:amethyst_cluster"},teleport_duration:2,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.15f,0.45f,-0.15f],scale:[0.3f,0.3f,0.3f]}}/scoreboard players set #tick c9_timer 0/scoreboard players add #tick c9_timer 1/execute if score #tick c9_timer matches 31.. run scoreboard players set #tick c9_timer 1/execute as @e[tag=c9_actor] at @s run tp @s ~ ~ ~ ~2 ~/execute as @e[tag=c9_pet_anchor] at @s run tp @s ~ ~ ~ ~4.5 ~/execute at @e[tag=c9_pet_anchor] rotated ~ 0 positioned ^ ^ ^1.4 run tp @e[tag=c9_pet] ~ ~ ~ ~ ~/execute at @e[tag=c9_pet_anchor] rotated ~ 0 positioned ^ ^ ^1.4 run tp @e[tag=c9_pet_halo] ~ ~ ~ ~ ~/execute if score #tick c9_timer matches 1 as @e[tag=c9_pet] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0.08f,0.996f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.35f,0f],scale:[0.55f,0.55f,0.55f]}}/execute if score #tick c9_timer matches 16 as @e[tag=c9_pet] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0f,0f,-0.08f,0.996f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.15f,0f],scale:[0.55f,0.55f,0.55f]}}/execute if score #tick c9_timer matches 1 as @e[tag=c9_pet_halo] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.15f,0.65f,-0.15f],scale:[0.3f,0.3f,0.3f]}}/execute if score #tick c9_timer matches 16 as @e[tag=c9_pet_halo] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.15f,0.15f,-0.15f],scale:[0.3f,0.3f,0.3f]}}/execute at @e[tag=c9_pet] run particle end_rod ~ ~0.1 ~ 0.1 0.1 0.1 0.01 1 force/execute at @e[tag=c9_pet] run particle dust{color:[0.75,0.25,1.0],scale:1.2} ~ ~ ~ 0.15 0.15 0.15 0 2 force/execute at @e[tag=c9_pet] run particle enchant ~ ~0.2 ~ 0.2 0.2 0.2 0.5 3 forcesetup #4 Summons an <code>item_display</code> entity showing a scaled-down dragon head with purple glowing enabled and a <code>teleport_duration</code> of 2 ticks for smooth orbital movement.loop #5 Projects a position 1.4 blocks forward from the rotating anchor armor stand using local coordinates (<code>^ ^ ^1.4</code>) and teleports the pet display entity there.loop #7 Every 30-tick cycle, at tick 1, triggers a 15-tick transformation interpolation that smoothly slides the pet upward by 0.35 blocks and tilts it slightly.loop #8 At tick 16, reverses the transformation interpolation to smoothly glide the pet downward to -0.15 blocks over the next 15 ticks, creating a continuous bobbing wave.loop #12 Spawns vibrant purple dust particles at the pet's current location every tick to leave a magical trail as it orbits.


Recorded on our own test server: 50 frames at about 9.9 fps. Our image check saw: A miniature glowing dragon head orbits an armored stand, leaving a trail of white and purple particles, though the stand's nametag displays raw JSON code.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the floating companion follow you instead of the demo armor stand, skip the second setup command (which summons c9_actor) and add one extra repeating command block to your loop: /execute at @p run tp @e[tag=c9_pet_anchor] ~ ~1.5 ~ ~4.5 ~. This locks the rotating anchor right above the nearest player's shoulders so the bobbing pet orbits you wherever you walk.
/kill @e[tag=c9_clean]/scoreboard objectives remove c9_timerIn the fourth setup command, change item:{id:"minecraft:dragon_head"} to item:{id:"minecraft:player_head",components:{"minecraft:profile":{name:"Notch"}}} using any Minecraft username or profile texture you like.
It uses an item_display entity with teleport_duration set to 2 and interpolation_duration set to 15. Minecraft automatically blends the vertical movement and orbital movement across frames on the client side.
▶Wandering Terrarium Bottle Alchemist PetPets & CompanionsMedium24 cmds
▶Floating Origami Fortune-Teller FamiliarPets & CompanionsMedium22 cmds
▶Knitted Yarn-Ball Kitten FamiliarPets & CompanionsMedium24 cmds
▶Airborne CompanionsPets & CompanionsEasy24 cmds
▶Dapper Top-Hat Rabbit Illusionist CompanionPets & CompanionsMedium20 cmds