Limits
The sizes and counts a mini-script has to stay inside.
Files
What | Limit |
|---|---|
One file | 64 KiB of UTF-8 text |
Mini-scripts on a server | 64 |
A name | 1 to 32 characters |
Code in one file
What | Limit |
|---|---|
Blocks (commands, events, timers and others) | 256 |
Timers | 32 |
Shortest timer | 1 second |
Variables in one block | 256 |
Blocks inside each other | 32 |
Length of the compiled code | 65,536 instructions |
Model item blocks | 64 |
Problems listed for one file | 50 |
One run
What | Limit |
|---|---|
Steps until the next | 20,000 (an action, a function call or a |
Values built | 256 KiB |
Depth of an expression | 256 |
| 10,000 times |
| 10,000 rounds |
Items in a list | 1,024 |
One text | 4,096 bytes |
Translated texts inside each other | 4 |
Items in one | 2,304 |
One | 1 hour |
Actions of one model item block | 16 |
The whole server
What | Limit |
|---|---|
Steps of all runs in one tick | 200,000 |
Paused runs | 64 per mini-script, 512 in all |
Timers and paused runs started in one tick | 64 (the rest start in the next tick) |
Console lines for problems while running | 5 per mini-script per minute |
Problems kept under While running | 10 per mini-script |
Buttons and moves
What | Limit |
|---|---|
Values a button hands over | 8, each up to 256 characters |
Button presses that run | 4 per player per second |
Text sent with a move | 3 KiB |
Moves under way at once, all mini-scripts together | 4 |
Moves asked in one minute, all mini-scripts together | 30 |
Saved values
What | Limit |
|---|---|
Values | 10,000 per mini-script, 50,000 per server |
Size | 1 MiB per mini-script, 8 MiB per server |
What happens at a limit
- A file that is too big or has too much code does not load.
- In the charge, cooldown, particle, damage, heal and effect lines of model items, a number you write that is out of range is an error when the file loads.
- Everything else is checked while it runs. The run stops with an error, and the server goes on.