This script automatically updates most json files to be compatible with 24w09a's item component system.
MINECRAFT:ENTITY_DATA
andMINECRAFT:BEES
useUNKNOWN_ENTITY
whenid
wasn't present in the originalEntityTag
.MINECRAFT:ENTITY_DATA
is always used instead ofMINECRAFT:BUCKET_ENTITY_DATA
MINECRAFT:BANNER_PATTERNS
still use the old 3 character pattern id
- Clone the repo
git clone https://github.com/TheNuclearNexus/ItemComponentUpdater
cd ItemComponentUpdater/
- Install requirements
pip install -r requirements.txt
or
pip3 install -r requirements.txt
- Run the script
python main.py -h
or
python3 main.py -h
The script will also output a functions.yaml
file within the datapack.
This file shows all occurences of item
nbt it could find as well as potential fixes for the path.
It can be wrong so copying and pasting directly is not recommended.
This doesn't account for all cases such as item nbt hiding within storage.
- Updating
give
,item
, andclear
commands - Detecting
data
commands referencing the olditem.tag
Check out my main project over at https://smithed.net