TerrainPaint

Family: World · One form

What it does

TerrainPaint takes id (a string), x (a float), z (a float), layer (an integer) and optionsJson (a string), and answers an integer.

Syntax

TerrainPaint(id string, x float, z float, layer integer, optionsJson string) → integer

Parameters

NameType
idstring
xfloat
zfloat
layerinteger
optionsJsonstring

Every form returns

integer

Example · generated

DO  Print(TerrainPaint("value", 100.0, 100.0, 1, "{}"))  Sync()LOOP

TerrainPaint is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

40 commands in World