Enchanted Floating Library

Build a magical study room where glowing enchanted books drift out of bookshelves and orbit a central lectern amidst swirling arcane particles.

Java EditionMagic & SpellsMedium26 commandsTested on a real 26.2 & 26.3 server
An open-air Minecraft library with floating enchanted books swirling around a central altar. Download the GIF Video & GIF © www.9minecraft.net

Arcane RunesMysticMedievalPurpleGoldOrangeDecorationServer LobbyAdventure MapItem displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

This command creation builds an open-air arcane sanctuary complete with dark oak bookshelves, glowing lanterns, and a central enchanting altar. Once active, glowing tomes and enchanted books pull themselves out of the shelves and float in two counter-rotating rings around the room.

Using item_display entities paired with smooth teleportation duration, the books glide and bob through the air while trailing runes, portal sparks, and golden magic dust.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-5 ~ ~-5 ~5 ~ ~5 minecraft:dark_oak_planks
  3. /fill ~-3 ~ ~-3 ~3 ~ ~3 minecraft:red_carpet
  4. /fill ~-5 ~1 ~-5 ~5 ~4 ~5 minecraft:bookshelf hollow
  5. /fill ~-4 ~1 ~-4 ~4 ~5 ~4 minecraft:air
  6. /fill ~-5 ~1 ~-1 ~5 ~3 ~1 minecraft:air
  7. /fill ~-1 ~1 ~-5 ~1 ~3 ~5 minecraft:air
  8. /setblock ~ ~1 ~ minecraft:enchanting_table
  9. /summon minecraft:marker ~ ~ ~ {Tags:["c9_lib","c9_core"]}
  10. /execute positioned ~-4 ~4 ~-4 run summon minecraft:item_display ~ ~ ~ {Tags:["c9_lib","c9_chandelier"],item:{id:"minecraft:lantern"}, glowing:1b}

2. Loop - one repeating command block each (Always Active) 16 commands

  1. /scoreboard players add @e[tag=c9_core] c9_timer 1
  2. /scoreboard players add @e[tag=c9_book] c9_timer 1
  3. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 1..240 at @e[tag=c9_core] if score @e[tag=c9_core,limit=1] c9_timer matches 20 run summon minecraft:item_display ~ ~1.8 ~ {Tags:["c9_lib","c9_book","c9_inner"],GlowColorOverride:16755200,glowing:1b,teleport_duration:2,item:{id:"minecraft:enchanted_book"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0.3f,0.5f,0f,0.8f],scale:[0.85f,0.85f,0.85f],translation:[0f,0f,0f]}}
  4. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 40 run summon minecraft:item_display ~ ~2.8 ~ {Tags:["c9_lib","c9_book","c9_outer"],GlowColorOverride:5636095,glowing:1b,teleport_duration:2,item:{id:"minecraft:writable_book"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[-0.3f,0.4f,0.2f,0.8f],scale:[0.9f,0.9f,0.9f],translation:[0f,0f,0f]}}
  5. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 60 run summon minecraft:item_display ~ ~2.2 ~ {Tags:["c9_lib","c9_book","c9_inner"],GlowColorOverride:16733695,glowing:1b,teleport_duration:2,item:{id:"minecraft:book"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0.4f,-0.3f,0.1f,0.85f],scale:[0.8f,0.8f,0.8f],translation:[0f,0f,0f]}}
  6. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 80 run summon minecraft:item_display ~ ~3.3 ~ {Tags:["c9_lib","c9_book","c9_outer"],GlowColorOverride:16755200,glowing:1b,teleport_duration:2,item:{id:"minecraft:enchanted_book"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0.2f,0.6f,-0.2f,0.75f],scale:[0.95f,0.95f,0.95f],translation:[0f,0f,0f]}}
  7. /execute if score @e[tag=c9_core,limit=1] c9_timer matches 81.. if entity @e[tag=c9_book,limit=12] run scoreboard players set @e[tag=c9_core] c9_timer 1
  8. /kill @e[tag=c9_book,scores={c9_timer=240..}]
  9. /execute as @e[tag=c9_inner] at @s run tp @s ~ ~ ~ ~4 ~
  10. /execute as @e[tag=c9_outer] at @s run tp @s ~ ~ ~ ~-3 ~
  11. /execute as @e[tag=c9_inner] at @e[tag=c9_core] rotated as @s run tp @s ^ ^1.8 ^2.3
  12. /execute as @e[tag=c9_outer] at @e[tag=c9_core] rotated as @s run tp @s ^ ^2.9 ^3.6
  13. /execute at @e[tag=c9_book] run particle minecraft:enchant ~ ~0.2 ~ 0.15 0.15 0.15 0.3 2
  14. /execute at @e[tag=c9_book] run particle minecraft:dust{color:[1.0,0.75,0.2],scale:0.8} ~ ~ ~ 0.1 0.1 0.1 0 1
  15. /execute at @e[tag=c9_core] run particle minecraft:end_rod ~ ~1.3 ~ 0.3 0.4 0.3 0.02 1
  16. /execute at @e[tag=c9_core] run particle minecraft:portal ~ ~1.2 ~ 1.5 0.5 1.5 0.4 6

How it works

Frames from the test run

Enchanted Floating Library - frame 1Enchanted Floating Library - frame 2Enchanted Floating Library - frame 3

Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: An exterior view of an open-air bookshelf structure at night, with floating enchanted books and particles visible through the doorway around a central enchanting table.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Build it in your world

  1. Stand in the center of a flat open area where you want your library room to appear.
  2. Run each command from the Setup list in chat in order to build the dark oak floor, red carpet, bookshelf archways, central enchanting table, and the <code>c9_core</code> marker.
  3. Place a column or line of 16 Repeating Command Blocks set to Always Active nearby.
  4. Paste one command from the Loop list into each repeating command block.
  5. Wait a few seconds for the timer to cycle and summon the full ring of 12 orbiting books.
  6. Switch the time to night so the gold, cyan, and pink glowing outlines on the books stand out against the bookshelves.

Use it with real players

To make the floating books orbit around a player instead of the room center, replace @e[tag=c9_core] in the last six loop commands with @p. The rings of glowing books will follow you as you walk around like a mage's personal library.

Remove it again 3 commands

  1. /kill @e[tag=c9_lib]
  2. /scoreboard objectives remove c9_timer
  3. /fill ~-5 ~ ~-5 ~5 ~5 ~5 minecraft:air

FAQ

Why do the books move smoothly instead of jittering every tick?

Each item_display entity is summoned with teleport_duration:2, which tells Minecraft to smoothly interpolate its movement between tick teleports.

Can I change the orbit radius or height of the books?

Yes! In the two local teleport commands (^ ^1.8 ^2.3 and ^ ^2.9 ^3.6), the second number controls the height above the floor and the third number controls the orbit radius in blocks.

Commands used

/execute/fill/kill/particle/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides