Mineuniverse
Log in Register
Mods

Mcfunction Debug

Debugging Tools for Mcfunction
by Flytre7
Claim this project
289 downloads
0 likes
Updated Jun 30, 2026
0 hypes

This mod eases development of mcfunction by adding debugging tools for mcfunction!

 

/breakpoint: Stops execution of a function at the line with the breakpoint. During a breakpoint, no tick or load functions will run and execution will be paused at the current command but manually entered and command block entered commands will still run so its easy to debug. You can view the stack trace at the breakpoint.

Conditional breakpoint: Use /execute if ... run breakpoint

 

/resume: Resume execution after a breakpoint.

 

/step: After a breakpoint, can run /step to trigger the next line. This can be chained until the entire root function is executed for line by line debugging. You can view the stack trace after the step.

 

/print: Used for quick and dirty print statements. Automatically broadcasts results to all operators so they can be run in functions and still have the debugger see the output.

 

    /print context: Prints the context of execution. This consists of the entity executor (execute as), location (execute at), and rotation (execute facing).

 

    /print score [target(s)] [objective]: Prints the scores of the selected entities or targets in an objective

 

    /print selector [selector]: Prints all entities targeted by the selector. Similar to say [selector]

 

    /print data [data target] [optional: path]: Prints the data of the given target, with the option to filter by path. Similar to data get.

 

Printing entities with commands (i.e. /say) is now much more descriptive. Typing /print selector @e[type=slime] or /say @e[type=slime] will indicate the tags and location of each entity.

 

 By default, Minecraft's suppressed errors when running functions are unsuppressed. You can disable this in the config. You can view the stacktrace for each of these errors.

 

 

No files available for download.

More from Flytre7

Giant AI
9,037
Terran Expansion
8,016
Chat+
75,407
Grass Bypass
716,723
World Properties
644
Aim Plus
6,355

You Might Also Like

APTweaks: Items (11.x Classic)
Item clustering (fallen blocks, experience orbs, ...) and garbage cleanup.
9,884,514
VanillaDeathChest (Fabric)
Places containers when players die that contain their items.
994,762
Styled Nicknames
Simple, but configurable nicknaming mod allowing your server's players (and admins) to change their nickname with full formatting support
989,499
Tiquality
Make server lag the problem of the source player.
99,489
Blame (Fabric)
Those gosh darn crashlogs not saying which worldgen feature is crashing!
99,012
Weathering with You
Forecast Minecraft weather with a radar or a hat!
98,579