Sulfur cubes spawn in the sulfur caves biome. In Bedrock, version 26.40 enabled surface spawning within the biome and removed the light-level restriction. Mojang's Bedrock spawn file lists surface and underground spawns, Peaceful through Hard difficulty, and groups of two to four. Java 26.2 release notes · Bedrock 26.40 release notes · Bedrock spawn rules
Feeding slimeballs grows it into the larger form. Mojang's Bedrock definition sets maximum health to 4 HP (2 hearts).
Larger, empty
It can approach an eligible dropped block or follow a player holding one. Java's release notes specify that killing the larger form splits it into two small cubes. Bedrock's definition sets maximum health for the larger form to 8 HP (4 hearts).
Larger, carrying a block
Its usual autonomous movement stops. Pushing or striking it moves it according to the absorbed block's archetype. In Java, a block-filled cube is protected from player damage and fall damage. Use shears to remove the block and restore autonomous movement.
The archetype determines speed, bounce, friction, air drag and whether the cube floats. The following block groups are documented in Java's released archetype list. Java 26.2 release notes
Archetype
Absorbed block or group
Main effect
Regular
Loose mineral or soil blocks
Moderate speed and bounce, floats.
Bouncy
Wood
Moves fast, bounces high and floats.
Slow Bouncy
Stone-like blocks
Moves slowly and bounces high.
Slow Flat
Metal blocks
Moves slowly with little bounce.
Fast Flat
Organic blocks
Moves fast with little bounce.
Light
Wool
Bounces high, has high air drag and floats.
Fast Sliding
Ice
Slides fast with low friction and no bounce.
Slow Sliding
Mushroom blocks
Slides slowly with low friction and no bounce.
High Resistance
Soul sand or soul soil
Moves very slowly, with high friction and little bounce.
Sticky
Honeycomb block
Has very high ground friction and no bounce.
Explosive
TNT
Can be primed by redstone, fire or an explosion. In Java, detonation produces no small cubes.
The Java 26.3 death loot table has no item pools. The Bedrock entity definition gives 1–2 XP for a larger cube killed by a player. Splitting produces living small cubes in Java, and shearing removes the block from a living cube. Java 26.3 death loot table · Bedrock entity definition · Java 26.2 release notes
Introduced in 26.2. The release notes document two small cubes when the larger form is killed, and dispensers can insert or swap an eligible block, shear it out, or release a bucketed cube.
Bedrock Edition
Introduced in 26.30. Since 26.40, sulfur cubes no longer count as hostile, can spawn on the surface in sulfur caves and can spawn at any light level.