Minecraft Shape Generator (Java & Bedrock)
Use this Shape Generator to create spheres, circles, cylinders, cones, pyramids, ellipsoids, domes, cubes/rectangles and arches/rings, hollow or solid, with radius, height, axis, position and block defined by you. Copy the /fill commands, download a ready .mcfunction file, or a ready-made datapack for Minecraft Java Edition.
Select your Minecraft edition:
Shape
Fill
Parameters
Center
Use "~" for relative coordinates (e.g. ~0) or an absolute number (e.g. 100).
Preview
Cross-section at layer 0 (Y axis)
Result
Generated Commands
click to copy all commandsGenerates optimized /fill commands (groups blocks in sequence). Much more efficient than one command per block.
Each line represents one command (click a line to copy just that one). Identical lines in adjacent layers are automatically grouped to reduce the number of commands.
Export
The datapack is only available for Java Edition and uses the folder structure
of Minecraft 1.21+. After downloading, place the folder/zip inside
saves/<world>/datapacks/, run /reload and execute
/function <namespace>:<name> at the desired position.
Want to create a cheap, lag-free Minecraft server?
I recommend Sparked Host: affordable plans, great performance, easy panel and fast support.
🚀 Create a server on Sparked HostHow to use the Shape Generator
The generator calculates, block by block, which positions belong to the chosen shape (using the
math of each geometry) and converts the result into /fill commands. Identical
consecutive lines are automatically grouped. You can copy the commands manually, download a ready
.mcfunction file, or download a complete datapack (Java) already
structured with pack.mcmeta and the function inside data/<namespace>/function/.
Supported Shapes
Sphere and Ellipsoid
Sphere uses a single radius; ellipsoid allows independent radii on X, Y and Z.
Circle and Arch/Ring
Flat shapes on one of three planes (XZ, XY or YZ). The ring accepts an inner and outer radius, plus an angle range to create partial arches.
Cylinder, Cone and Pyramid
Shapes extruded along a chosen axis (X, Y or Z), with customizable height. Cone and pyramid also have a direction (pointing up or down).
Dome
Half of a sphere, facing up (like an observatory) or down (like a crater).
Cube/Rectangle
Rectangular box with independent width, height and depth.
Frequently Asked Questions
Which shapes does the generator support?
Sphere, circle, cylinder, cone, pyramid, ellipsoid, dome, cube/rectangle and arch/ring, all with hollow or solid options.
What does the datapack download option do?
The generator creates a .zip file with the complete structure of a Minecraft Java Edition datapack, including the pack.mcmeta and the function ready to run with /function.
Does the datapack work on Bedrock Edition?
No, datapacks are exclusive to Java Edition. For Bedrock, use the function download button and manually adapt the commands into a behavior pack.
How do I choose the orientation of a cylinder or cone?
Use the axis buttons (X, Y or Z) to define which direction the shape's height extends toward.
Why does the hollow cylinder have a close caps option?
With closed caps the cylinder forms a tube with both ends filled in; without it, the result is a tube open on both sides.