Crates.io | mcfunction-debug-adapter |
lib.rs | mcfunction-debug-adapter |
version | 1.0.3 |
source | src |
created_at | 2023-01-29 23:37:16.859987 |
updated_at | 2023-02-03 20:36:43.096856 |
description | A debugger for Minecraft's *.mcfunction files that does not require any Minecraft mods |
homepage | |
repository | https://github.com/vanilla-technologies/mcfunction-debugger |
max_upload_size | |
id | 771281 |
size | 142,721 |
The Debug Adapter Protocol implementation of McFunction-Debugger.
McFunction-Debug-Adapter only supports the single session mode with communication via stdin and stdout. To start executing an mcfunction file the development tool needs to send a launch
request (the attach
request is not supported).
The debugged function will be executed with a schedule
command, so it runs without an @s
entity at the world's origin position.
In order for the debug adapter to connect to Minecraft it needs a few arguments as part of the launch
request:
Path to the mcfunction file to debug. The mcfunction file must be contained in a datapack with a pack.mcmeta
file.
The directory containing the Minecraft world the debug adapter should connect to.
For single player this is typically a directory within the saves directory:
%appdata%\.minecraft\saves\
~/.minecraft/saves/
~/Library/Application Support/minecraft/saves/
For servers it is specified in server.properties
.
The path to Minecraft's log file.
For single player this is typically at these locations:
%appdata%\.minecraft\logs\latest.log
~/.minecraft/logs/latest.log
~/Library/Application Support/minecraft/logs/latest.log
For servers it is at logs/latest.log
in the server directory.
{
"program": "C:/Users/Herobrine/my_datapack/data/my_namespace/functions/main.mcfunction",
"minecraftWorldDir": "C:/Users/Herobrine/AppData/Roaming/.minecraft/saves/New World",
"minecraftLogFile": "C:/Users/Herobrine/AppData/Roaming/.minecraft/logs/latest.log"
}
mcfunction-debug-adapter [FLAGS] [OPTIONS] --input <DATAPACK> --output <DATAPACK>
Prints help information.
Prints version information.
Path to a log file. If specified the debug adapter will create this file on startup and write log messages to it.
The log level can also be configured via the environment variable LOG_LEVEL
. Defaults to INFO
.