Add Oxidation Transformation
Add Oxidation Transformation
Caution
The datapacks are only supported to versions superior or equal to 1.5.0
Creating the file
Oxidiation transformation is pretty simple to implement. Also if you add an oxidation for an item to an other, than the oxidized item can be scraped to the unoxidized item. (See the Scraping Mechanic) First you need to create a oxidation_transformation folder in your namespace folder. Then create a simple .json file like your creating a custom recipe.
The structure should looks like this:
- pack.mcmeta
- pack.png
- example.json
The data format
An Oxidation transformation json file looks like this:
data/example_datapack/oxidiation_transformation/example.json
{
"base": "<namespace>:<before_waxing_item_id>",
"oxidized": "<namespace>:<after_waxing_item_id>",
"chanceMultiplier": 1.0
}| property | description | optional |
|---|---|---|
base | The item/block before it’s oxidized it. | no |
waxed | The oxidized item/block. | no |
chanceMultiplier | The chance for the base item to oxidize. Between 0 and 100. | yes |
replace | If you want to overide an already existing waxing transformation (use it with caution) | yes |
Here’s an example of a oxidation transformation json file which permits a diamond item oxidize into a gold ingot.
data/example_datapack/oxidation_transformation/example.json
{
"base": "minecraft:diamond",
"oxidized": "minecraft:gold_ingot",
"chanceMultiplier": 10.0
}