Skip to content

Examples

Felix Schreiber edited this page May 22, 2025 · 2 revisions

The project itself contains a collection of example source files. This includes a Hello World!, some tests for includes, try-catch and throw, and many other functionalities added over time. The most complex example in there is the sphere example. This function provides you with a way to generate a sphere of blocks with a given center position, radius, block type and block replacement mode.

three differently sized spheres floating over a flat world

The example shown in the screenshot are three spheres, one with radius 40 (the biggest one), 20 and 5. The one with 5 executed instantly, while the one with 20 took about 4 seconds and the 40 block radius took whole 40 seconds to appear. Those measurements may not be accurate anymore as the efficiency of the system changes all the time as new features are added and optimized later on. (also the appearence of the spheres changed: the program no longer sets the weird single block at the center of each side)

Clone this wiki locally