mirror of
https://github.com/ForeverPyrite/blast-furnace-extended.git
synced 2025-12-10 01:38:07 +00:00
50 lines
2.3 KiB
Markdown
50 lines
2.3 KiB
Markdown
# Blast Furnace Extended Datapack
|
|
|
|
This minor QoL datapack extends the functionality of the Blast Furnace by adding all possible smelting recipes (recipes that aren't in the Smoker) to it.
|
|
|
|
## How to Update This Datapack for a New Minecraft Version
|
|
|
|
This datapack can be automatically updated to include all the latest recipes from any new version of Minecraft.
|
|
|
|
### Prerequisites
|
|
|
|
* You must have Python 3 installed on your system.
|
|
* You need to download the official Minecraft Server `.jar` file for the version you want to support.
|
|
|
|
### Update Steps
|
|
|
|
1. **Download the Minecraft Server `.jar`**
|
|
* You can find the official server file on the [Minecraft website](https://www.minecraft.net/en-us/download/server).
|
|
* Once downloaded, place the file in this directory and rename it to `server.jar`.
|
|
|
|
2. **Run the Generation Script**
|
|
* Open a terminal or command prompt in this directory.
|
|
* Run the Python script with the following command:
|
|
```bash
|
|
python generate_recipes.py
|
|
```
|
|
* The script will automatically:
|
|
* Delete any old recipes in the `data/minecraft/recipes/` directory.
|
|
* Read all the "smelting" and "blasting" recipes from the `server.jar`.
|
|
* Create new "blasting" recipes for any that don't already have one.
|
|
* Save all the new recipes into the `data/minecraft/recipes/` directory.
|
|
|
|
3. **Update `pack.mcmeta`**
|
|
* Open the `pack.mcmeta` file.
|
|
* Find the `pack_format` number and update it to match the new version of Minecraft. You can find a list of `pack_format` versions on the [Minecraft Wiki](https://minecraft.wiki/Pack_format).
|
|
* For example, for Minecraft 1.21, the `pack_format` is `32`.
|
|
|
|
4. **Create the Datapack `.zip` file**
|
|
* You are now ready to distribute the datapack.
|
|
* Create a `.zip` file that contains the `data` directory and the `pack.mcmeta` file.
|
|
* This `.zip` file is what you will place in the `datapacks` folder of your Minecraft world.
|
|
|
|
This process *should* work until there are major changes to how Minecraft manages recipes, datapacks, ect.
|
|
|
|
|
|
## TODO
|
|
- [ ] Ensure everything works as expected on other devices
|
|
- [ ] Perhaps create a Dockerfile, if there is a "latest-release" style download link
|
|
- [ ] Publish on modpack sites (if there are no equivalents)
|
|
- [ ] Maybe some better inline documentation could be cool.
|