English | 简体中文
The project aims to upgrade your commands from 1.20.4 to the newer version of Minecraft (1.21).
Result example (Map conversion result): Map-Minigames
I'm still working on it.
Support Commands
-
/give
-
/item
-
/clear
-
/summon
for 'Firework' and 'Item' -
/setblock
-
/fill
-
/execute if block
-
/execute if data
-
/data
- Other commands only for selector(Texts that start with
@
like@a[nbt={...}]
) - Loot Table
- Item modifier
Command Arguments:
[Commands 1] [Commands2] ...
Supported commands:
-h Show help texts(This).
-i <input(File)> <Output File> Transform a File.
[-y] Overwrite the existed file.
-i <input(Folder)> <Output Folder> Transform a Folder.
[-y] Overwrite the existed file.
-debug Show debug messages
-c <commands> Transform a command. Use '\\n' to transform multiline commands.`);
You can simply download zip file from GitHub.
Or use git command:
git clone https://github.com/wifi-left/Datapack-Upgrader.git
You must install Node.js to use the project.
Then run:
npm install
node index.js -c "<Your commands here>"
For example
node index.js -c "give @s[distance=0..5] diamond_sword{Enchantments:[{id:\"sweeping\",lvl:1s}],display:{Name:'\"sss\"',color:114514,Lore:['\"Hello world!\\u00a7a1\"','\"\\u00a7cThis is wifi_left!\"']},Unbreakable:1b,Damage:1s}"
The output:
give @s[distance=0..5] diamond_sword[enchantments={levels:{sweeping_edge:1s}},custom_name="\"sss\"",lore=["\"Hello world!\\u00a7a1\"","\"\\u00a7cThis is wifi_left!\""],dyed_color={rgb:114514},unbreakable={},damage=1]