What it does
world.create brings a world object into being: it is how the rest of the script comes to have one. It takes id and recipe.
Signature
world.create(id, recipe)Arguments
idrecipe
Example · generated
function start() { world.create('main', 'plank');}world.create is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.