Magnetic Ferrofluid Spike Visualizer

Build a reactive ferrofluid basin in vanilla Minecraft using smooth-interpolating block display entities and glowing magnetic field poles.

Java EditionHolograms & Display EntitiesExpert24 commandsTested on a real 26.2 & 26.3 server
Glowing red and blue magnetic cubes pull up dark, outlined spikes from a ferrofluid basin in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksTechnologyRedBlueBlackDecorationLearningMap MakingBlock displaysItem displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

Ferrofluid is a metallic liquid that reacts strongly to magnetic fields, forming sharp geometric peaks along invisible lines of force. When the glowing red and blue magnetic poles orbit above the basin, the dark liquid surface surges upward into tall, shimmering crystalline spikes that lean and ripple with the field.

This command creation simulates a reactive ferrofluid pool in vanilla Minecraft using an 81-node grid of smooth-interpolating block display entities. Each spike dynamically shifts its height, thickness, block material, and glow color based on its proximity to the passing magnets.

1. Setup - type these once 10 commands

  1. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 minecraft:crying_obsidian
  2. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:black_concrete
  3. /summon minecraft:marker ~ ~ ~ {Tags:["c9_e","c9_hub"]}
  4. /summon minecraft:item_display ~ ~4.2 ~ {Tags:["c9_e","c9_p1"],Glowing:1b,glow_color_override:16724787,teleport_duration:2,item:{id:"minecraft:redstone_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0.35f,0.35f,0.15f,0.85f],translation:[0f,0f,0f],scale:[0.85f,0.85f,0.85f]}}
  5. /summon minecraft:item_display ~ ~4.2 ~ {Tags:["c9_e","c9_p2"],Glowing:1b,glow_color_override:3381759,teleport_duration:2,item:{id:"minecraft:lapis_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0.35f,0.35f,0.15f,0.85f],translation:[0f,0f,0f],scale:[0.85f,0.85f,0.85f]}}
  6. /execute positioned ~-4 ~ ~-4 run summon minecraft:marker ~ ~ ~ {Tags:["c9_e","c9_s"]}
  7. /execute at @e[tag=c9_s] run summon minecraft:marker ~3 ~ ~ {Tags:["c9_e","c9_s"]}
  8. /execute at @e[tag=c9_s] run summon minecraft:marker ~6 ~ ~ {Tags:["c9_e","c9_s"]}
  9. /execute at @e[tag=c9_s] run summon minecraft:marker ~1 ~ ~ {Tags:["c9_e","c9_s"]}
  10. /execute at @e[tag=c9_s] run summon minecraft:marker ~2 ~ ~ {Tags:["c9_e","c9_s"]}

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

  1. /execute if entity @e[tag=c9_s] at @e[tag=c9_s] run summon minecraft:marker ~ ~ ~3 {Tags:["c9_e","c9_s2"]}
  2. /execute if entity @e[tag=c9_s] at @e[tag=c9_s] run summon minecraft:marker ~ ~ ~6 {Tags:["c9_e","c9_s2"]}
  3. /execute if entity @e[tag=c9_s] at @e[tag=c9_s] run tag @s add c9_s2
  4. /execute if entity @e[tag=c9_s] at @e[tag=c9_s2] run summon minecraft:marker ~ ~ ~1 {Tags:["c9_e","c9_s3"]}
  5. /execute if entity @e[tag=c9_s] at @e[tag=c9_s2] run summon minecraft:marker ~ ~ ~2 {Tags:["c9_e","c9_s3"]}
  6. /execute if entity @e[tag=c9_s] at @e[tag=c9_s2] run tag @s add c9_s3
  7. /execute if entity @e[tag=c9_s] at @e[tag=c9_s3] run summon minecraft:block_display ~ ~ ~ {Tags:["c9_e","c9_f"],interpolation_duration:4,brightness:{sky:15,block:15},block_state:{Name:"minecraft:obsidian"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0.382f,0f,0.923f],translation:[0f,-0.5f,-0.5f],scale:[0.75f,0.6f,0.75f]}}
  8. /kill @e[tag=c9_s3]
  9. /execute as @e[tag=c9_hub] at @s run tp @s ~ ~ ~ ~5 ~
  10. /execute at @e[tag=c9_hub] rotated ~ 0 positioned ^ ^ ^2.6 run tp @e[tag=c9_p1,limit=1] ~ ~4.2 ~ ~10 ~
  11. /execute at @e[tag=c9_hub] rotated ~180 0 positioned ^ ^ ^2.6 run tp @e[tag=c9_p2,limit=1] ~ ~4.2 ~ ~-10 ~
  12. /execute as @e[tag=c9_f] run data merge entity @s {start_interpolation:0,Glowing:0b,block_state:{Name:"minecraft:coal_block"},transformation:{translation:[0f,-0.3f,-0.5f],scale:[0.72f,0.45f,0.72f]}}
  13. /execute at @e[tag=c9_p1] positioned ~ ~-4.2 ~ as @e[tag=c9_f,distance=..3.8] run data merge entity @s {start_interpolation:0,Glowing:1b,glow_color_override:16724787,block_state:{Name:"minecraft:obsidian"},transformation:{translation:[0f,-0.2f,-0.39f],scale:[0.55f,2.3f,0.55f]}}
  14. /execute at @e[tag=c9_p2] positioned ~ ~-4.2 ~ as @e[tag=c9_f,distance=..3.8] run data merge entity @s {start_interpolation:0,Glowing:1b,glow_color_override:3381759,block_state:{Name:"minecraft:obsidian"},transformation:{translation:[0f,-0.2f,-0.39f],scale:[0.55f,2.3f,0.55f]}}

How it works

Frames from the test run

Magnetic Ferrofluid Spike Visualizer - frame 1Magnetic Ferrofluid Spike Visualizer - frame 2Magnetic Ferrofluid Spike Visualizer - frame 3

Recorded on our own test server: 34 frames at about 5.4 fps. Our image check saw: A red and a blue glowing cube float above a dark pool, causing obsidian-like spikes with matching red and blue glowing outlines to rise up beneath them.

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 at the centre of a flat open area and run all 10 setup commands in chat to build the crying obsidian basin, summon the magnetic poles, and place the initial row of grid markers.
  2. Place a line of 14 repeating command blocks (or 1 repeating command block chained into 13 chain command blocks) nearby.
  3. Set all 14 command blocks to Always Active and paste the loop commands into them in exact order from 1 to 14.
  4. On the first tick, the markers will automatically expand into an 81-spike ferrofluid grid and clean themselves up.
  5. Watch as the red and blue magnetic cubes orbit over the basin, pulling glowing spikes out of the dark pool.

Use it with real players

To control the magnetic field yourself instead of using the automatic orbiting poles, replace @e[tag=c9_p1] in loop command 13 with @a[nbt={SelectedItem:{id:"minecraft:redstone_torch"}}] and change positioned ~ ~-4.2 ~ to positioned ~ ~ ~. Walking near or across the basin while holding a redstone torch will draw the ferrofluid spikes directly toward your feet.

Remove it again 2 commands

  1. /kill @e[tag=c9_e]
  2. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 minecraft:grass_block

FAQ

Why do the spikes animate smoothly instead of snapping between heights?

Each block display is summoned with interpolation_duration set to 4 ticks. Whenever start_interpolation:0 is merged into its data along with a new scale, Minecraft smoothly blends the size transition.

Will the marker expansion lag my server?

No. The marker expansion only runs on the very first tick while the c9_s tag exists, spawning exactly 81 block displays and immediately deleting all temporary setup markers.

Commands used

/data/execute/fill/kill/summon/tag/tp

Similar creations

Join 9Minecraft News & Guides