Skip to content

The project aims to upgrade your commands from 1.20.4 to the newer version of Minecraft (1.21).

License

Notifications You must be signed in to change notification settings

wifi-left/Datapack-Upgrader

Repository files navigation

Datapack Updater

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

Features

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

Get to start

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.`);

Download the source code

You can simply download zip file from GitHub.

Or use git command:

git clone https:/wifi-left/Datapack-Upgrader.git

You must install Node.js to use the project.

Use in command mode:

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]

About

The project aims to upgrade your commands from 1.20.4 to the newer version of Minecraft (1.21).

Resources

License

Stars

Watchers

Forks

Packages

No packages published