Skip to content

Customization

george8188625 edited this page Dec 16, 2023 · 6 revisions

Adding Custom Fuel Types

Note

That system is only supported from version 1.2e

There is already a compatibility with most fuels that use forge tags, but you can add your own fuel types

1. Create a data pack

2. Add a data/namespace/diesel_engine_fuel_types directory

3. Add a JSON file that looks like this

{
  "fluid": "#forge:diesel",
  "sound_speed": 1,
  "normal": {
    "speed": 96.0,
    "strength": 2048.0,
    "burn_rate": 2
  },
  "modular": {
    "speed": 96.0,
    "strength": 3072.0,
    "burn_rate": 2
  },
  "huge": {
    "speed": 128.0,
    "strength": 4096.0,
    "burn_rate": 2
  }
}

fluid property contains the tag of a fluid ( starting with '#' example: #forge:gasoline ) or a fluid ( example: minecraft:lava )

sound_speed property contains the numbers of tick between the piston sounds

normal property contains the fuel stats for a normal diesel engine

modular property contains the fuel stats for a modular diesel engine

huge property contains the fuel stats for a huge diesel engine

Adding Custom Lighter Skins

There are already some skins in the base mod, but you can add a skin in these few steps.

1. Create a texture pack

2. Create lighter_skins.json in your namespace ( example: assets/examplepack/lighter_skins.json )

This file should contain a JSON array like this:

[
  {
    "name": "pizza",
    "id": "pizza_skin"
  },
  {
    "name": "pizza lighter",
    "id": "pizza_skin"
  }
]

name property should contain the name that a lighter should have.

id property should contain the id of the lighter.

3. Create your lighter models

These models should be located in assets/createdieselgenerators/models/item/lighter, their name must be <skin-id>.json, <skin-id>_open.json or <skin-id>_ignited.json

4. Load your texture pack

You should see your skins after renaming the lighter

Clone this wiki locally