Wiki 9Minecraft Recurrent Complex Wiki

World Scripts

Prerequisite Knowledge

Required:
Items & Blocks.
Building A Structure In Depth.
Expressions & Generation Logic.
Structure Script Block.
Optional:
Structure Types.

World Scripts

World scripts are basically scripts that are run when a structure generates. So far we've explained the several types of world scripts that can be executed through the Script Block, but there is another way to execute these. World scripts can be run directly through the structure by utilizing the Transformer window. You can go inside it and add such a transformer by cycling to "world script" and then editing it.
Base room size
Inside this window you get the exact same GUI as a script block and can do all the same scripts (e.g running commands when a structure generates, generating a maze, etc). The only difference between this method and the script block method, is that here you must define a source for the script. I.e it will be run for every block in the structure that the script targets. If you only want it to run once, use a unique block in that structure as the target.