c0de paint 0.2.0Diese Seite auf Deutsch

CANVAS_REPLACE ​

Draws every voxel with the block id again with style, whatever the states of the block are. The new block keeps the states of the old one that it also has, so stairs keep their direction; the states of the style win. The data of the old block stays unless the new block has data of its own.

Parameters and results

  • canvas TYPE c0de_paint/cpaint/CANVAS: the canvas (a variable)
  • id STRING: the block, like "stone"
  • style TYPE c0de_paint/cpaint/STYLE: the new style

Example

c0de
CALL c0de_paint/cpaint/CANVAS_REPLACE
    PARAMETER canvas c ;
    PARAMETER id "cobblestone" ;
    PARAMETER style mossy ;

Used in the tutorials ​