Скачать Mcfunction Debug — Minecraft Моды — ModStock

Mcfunction Debug

Активный

Установок

2

Последнее обновление

2 года назад
Клиент
Fabric
Quilt
Forge
Neoforge
Утилиты

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.

 

 

Участники проекта
Flytre7

Flytre7