Voxyl Learn Open the editor

Learn › Building

Prefabs

Keep pieces you build often and place them in any project.

A prefab is a piece of a build you keep under a name: a cottage, a lamp post, a bridge arch. It lives outside any one project, so a piece built once can be placed in every build you make afterwards, as often as you like.

Keep a piece

Use the Selection tool to select what you want to keep (see Selecting), then press Ctrl + P or use the prefab button at the top of the selection panel. That brings up the prefab panel:

  • Name is a name to remember it by. Saving under a name that is taken replaces that prefab.
  • Tags, separated by commas, are extra words the search matches, such as house, quay.
  • Handle sets what anchors the prefab: the cell that lands on your aim when you place it, and the point it turns about. The middle of the bottom is the default, and usually right; you see a preview before anything is placed.

Under those, the window lists the semantics in the piece, counted, with a tick for each. Untick one to leave it out of the prefab, so a tree can be kept without the ground under it, or a cottage without its roof; the preview and the counts follow. The first line of the list gives the size and the total in blocks, and the Blocks tab counts the same piece by block instead. Leave Shrink the box to what is kept on to drop the empty rows around it.

Place it

Open the inventory (E (or Delete)) and choose Prefabs, the first button in the left column. Each prefab is a picture card; click one and it is in hand as a ghost, exactly as when you paste a copy. Everything on Copy & Paste applies: aim it, turn it, mirror it, and right click to place it again and again.

In any build

A prefab holds semantics, not materials, like everything in Voxyl. When you drop one into a project, it uses that project's own palettes and their semantics, matched by name, so a cottage kept from a stone village comes out timber in a timber one. A semantic the project does not have yet is added to it, with the look the prefab was saved with.

There is more to palettes than this: how one inherits from another, and how to pull one in from another project or prefab. See Palettes.

That is why a prefab is worth keeping in meanings that read the same everywhere: a Wall and a Roof fit any build, while a name that describes how something looks does not.

Look after them

Home (the Voxyl button at the top left) has a Prefabs tab. Click a card to see that prefab turning in 3D, and search by name or tag. Under each card:

  • Details shows what it holds, semantic by semantic, and lets you see it in another of its looks. Export there writes it out as a file; the format decides what it is for (see below).
  • Edit opens its cells in the editor on their own. Changes save back into the prefab, and affect where you place it from then on. Places you already used it are not changed.
  • Delete removes it for good, after asking.

The file formats of Export: Sponge .schem is for modern Minecraft (1.13 and later) and works with WorldEdit, FastAsyncWorldEdit and Litematica; Schematica .schematic is for modpacks on older versions of Minecraft, such as Gregtech New Horizons (1.7.10); Voxyl .voxyl keeps the semantics with their palettes and looks, for backups. A semantic becomes a block only in the Minecraft files, at the moment of export. You can import from these file types as well, which makes it easy to bring Voxyl builds into Minecraft and Minecraft builds into Voxyl.

While you are signed in, a new prefab is kept on your account and follows you to any browser; otherwise it stays in this browser. Each card says which.

Good to know

  • Saving a prefab does not take it out of the build: the original stays where it is.
  • A prefab remembers which way it was built facing, so it keeps north where north is in each project's settings.
  • Agents can list, save and place prefabs too, with the same names. See Build with an AI agent.

Keys on this page

Copying and pasting Copy and cut use the selection
ActionBindingAlternate
CopyCtrl + C
CutCtrl + X
Begin paste · shows a ghost overlayCtrl + V
Place ghostRight click
Rotate ghost · Shift rotates the other wayRNum 0
Mirror ghostMNum .
Save as prefab · saves the selectionCtrl + P

The editor's Keys panel lists every key and mouse button, not just these.