c0de paint 0.2.0Diese Seite auf Deutsch

EXPORT_SCHEMATIC ​

Writes a canvas as a schematic into the folder schematics, so that Litematica, Create or Axiom can place it. The extension of the name decides the format: .litematic, .nbt or .bp. The minimum corner of the canvas becomes the corner of the schematic. Voxels that aren't set stay empty, so the blocks of the world remain there when the schematic is placed; air is written as air, which removes blocks. The blocks keep their states and data, and the file has the data version of the server, so newer versions of Minecraft upgrade it. Blueprints of Axiom get a gray picture; Axiom draws a new one when you save the blueprint again. Note that the structure blocks of Minecraft only load structures of up to 48 blocks on every axis; Create and the other mods build larger ones.

A file that exists is only replaced with overwrite TRUE (SCHEMATIC_EXISTS). An empty canvas raises CANVAS_EMPTY, a file larger than maxSchematicSize SCHEMATIC_TOO_LARGE. The client of the player must allow writing (allowSchematicWrites).

Parameters and results

  • canvas TYPE c0de_paint/cpaint/CANVAS: the canvas
  • file STRING: the name of the schematic
  • overwrite BOOLEAN: replace a file that exists (optional, default FALSE)

Example

c0de
CALL c0de_paint/schematics/EXPORT_SCHEMATIC
    PARAMETER canvas copy ;
    PARAMETER file "town_hall.litematic" ;
    PARAMETER overwrite TRUE ;

Used in the tutorials ​