- Convert-NBT2JSON.ps1 .nbt --> .json
- Convert-JSON2Command.ps1 .json --> .command.txt
- Convert-Command2McFunction.ps1 .command.txt --> .mcfunction
Convert Minecraft nbt file to json file.
The nbt file must be created using the Structure Block in game.
C:\Users\<UserName>\AppData\Roaming\.minecraft\saves\<WorldName>\generated\minecraft\structures
Place the nbt file in the same directory as the ps1 file.
├── <nbt file name>.nbt
└── Convert-NBT2JSON.ps1
If there are multiple nbt files, the latest file will be processed.
After executing PowerShell Script, "<nbt file name>.json" will be output to the same directory.
Convert Minecraft json file to command txet file.
Place the json file in the same directory as the ps1 file. Create commands such as ”/setblock” and ”/summon”.
├── <json file name>.json
└── Convert-JSON2Command.ps1
If there are multiple json files, the latest file will be processed.
After executing PowerShell Script, "<json file name>.command.txt" will be output to the same directory.
Place the command txt file in the same directory as the ps1 file.
├── <command txt file name>.command.txt
├── Convert-Command2McFunction.ps1
└── Convert-Command2McFunction.ps1.Config.txt // base pos x y z info
If there are multiple command txt files, the latest file will be processed.
After executing PowerShell Script, "<command txt file name>.pos.<base pos x>.<base pos y>.<base pos z>.mcfunction" will be output to the same directory.