No results
2
Home
Victor Westerlund edited this page 2026-08-22 10:25:40 +02:00
Table of Contents
mcfstd
mcfstd is a small standard library for Minecraft Java datapacks. It adds named integer variables, arithmetic, comparisons, callback helpers, area triggers, block triggers, and debug utilities on top of vanilla mcfunction commands.
The public API is made of normal datapack functions in namespaces such as var:, call:, trigger:, stdout:, and debug:. Functions under z_std: are internal implementation details.
Contents
Start here
- Getting Started - Install, enable, and call mcfstd functions.
- Function Reference - Compact list of every public function.
Core API
- Variables - Set, unset, copy, move, increment, decrement, and test variables.
- Arithmetic - Add, subtract, multiply, divide, and modulo variables.
- Comparisons - Compare variables against integers or other variables.
- Function Calls - Pass variable values into macro functions.
- Standard Output - Read boolean results from previous comparisons.
Triggers and tooling
- Triggers - Area callbacks and block placement callbacks.
- Debugging - Trace output and scoreboard inspection helpers.
- Internal Model - Scoreboards, markers, scheduled scans, and macro storage.