CurseForge · Minecraft mod
Datapack Debugger
A fabric mod for Minecraft 1.21, which allows you to set breakpoints in datapacks
Quick answer
Which Datapack Debugger release should I use?
Datapack Debugger datapack-debugger-1.1.1.jar targets 1.21 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is Datapack Debugger required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Datapack Debugger datapack-debugger-1.1.1.jar need?
datapack-debugger-1.1.1.jar. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Datapack Debugger without breaking your instance.
Built for Datapack Debugger datapack-debugger-1.1.1.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use datapack-debugger-1.1.1.jar. It targets 1.21 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside datapack-debugger-1.1.1.jar. It opens that exact file at the source.
About this project
What does Datapack Debugger add?
Datapack Breakpoint
Introduce
This is a fabric mod for Minecraft 1.21, which allows you to set breakpoints in the game and "freeze" the game when the breakpoint is reached.
Usage
- Set a breakpoint
In datapack, you can insert #breakpoint into .mcfunction file to set a breakpoint. For example:
#test:test
say 1
say 2
#breakpoint
say 3
say 4
In this case, after the game executes say 2, the game will be "frozen" because it meets the breakpoint.
When the game is "frozen", you can still move around, do whatever you want, just like execute the command tick freeze. So you can check the game state, or do some debugging.
- Step
When the game is "frozen", you can use the command /breakpoint step to execute the next command. In above example, after the game meets the breakpoint, you can use /breakpoint step to execute say 3, and then use /breakpoint step to execute say 4. When all commands are executed, the game will be unfrozen and continue running.
- Continue
When the game is "frozen", you can use the command /breakpoint move to unfreeze the game and continue running.
- Get Macro Arguments
By using /breakpoint get <key>, you can get the value of the macro argument if the game is executing a macro function. For example:
#test:test_macro
say start
#breakpoint
$say $(msg)
say end
After executing function test:test_macro {"msg":"test"}, we passed the value test to the macro argument msg and then the game will pause before $say $(msg). At this time, you can use /breakpoint get msg to get the value test.
Project description from CurseForge.
Pick your setup
Datapack Debugger by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Datapack Debugger versions and loaders
datapack-debugger-1.1.1.jar
24 Jul 2024
datapack-debugger-1.1.0.jar
22 Jul 2024
datapack-debugger-1.0.1.jar
21 Jul 2024
datapack-debugger-1.0.0.jar
datapack-breakpoint-1.0.0.jar
20 Jul 2024
Looking for an older file? The official CurseForge project page is in Resources.