-
-
Notifications
You must be signed in to change notification settings - Fork 6
Datapack API
Forsteri123 edited this page Aug 5, 2023
·
3 revisions
Liquid blaze burner fuel can be added via a datapack. Before 2.0, types could only be added through datapack, but now it's automatically added to any item that have a default fluid capability, so some of the datapack are no longer necessary.
Adding a custom type is quite simple - just set up a basic datapack (more information here) and add some files under the data/[namespace]/blaze_burner_fuel directory. Files must end in .json but can be located in any sub-directory, as long as the full path does not violate Minecraft's ResourceLocation path check. The full specification for these JSON files can be found in the table below.
| Key | Value Type | Default Value | Description |
|---|---|---|---|
| fluid | string | N/A | String representing the namespaced identifier of an fluid if the liquid fuel |
| burnTime | integer | if superHeat 32 else 20 |
The amount of ticks that amountConsumedPerTickmB of that fluid will light the burner for |
| superHeat | boolean | false | If the fluid will superheat the burner |
| amountConsumedPerTick | integer | if superHeat 10 else 1 |
The amount of fluid in mB will be consumed per tick |
data/example_mod/blaze_burner_fuel/example_fluid.json
{
"fluid": "example_mod:example_fluid",
"burnTime": 20,
"superHeat": false,
"amountConsumedPerTick" : 1
}