介绍
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.
常见问题
Mcfunction Debug 支持哪些 Minecraft 版本?
Mcfunction Debug 支持 Minecraft Java 版 1.19–1.19.1,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Mcfunction Debug 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分