Skip to content

Custom Recipes

succ edited this page Nov 24, 2026 · 3 revisions

Custom Recipes

Modpacks can change what Solarpunk's machines make and burn, with KubeJS or with a plain datapack.

Recipes. Four machines use their own recipe types (the Solar Heater has two), so you can add, change or remove their recipes. New recipes show up in JEI.

Recipe type Machine
solarpunk:fermenting Fermentation Vat
solarpunk:solar_heating Solar Heater (melting)
solarpunk:evaporating Solar Heater (evaporation)
solarpunk:crystallizing Crystallizer
solarpunk:particle_accelerator Particle Accelerator

Fuels and heat values. These are data maps, so you can add new fuels or change the default ones.

Data map What it sets Default
solarpunk:turbine_fuels (fluids) What the Steam Turbine burns, and how much Steam 1 mB is worth Steam: steam_value 1.0 (and Northstar's Liquid Hydrogen)
solarpunk:gasifier_fuels (items) What the Biomass Gasifier burns, for how long, and how much Biochar it leaves #c:bio_fuels: burn_ticks 200, biochar 1; Biomass Pellet: 400 and 2
solarpunk:engine_fuels (fluids) What the Biofuel Engine burns, and how long a bucket lasts Biofuel: ticks_per_bucket 800
solarpunk:heat_battery_fluids (fluids) What the Heat Battery stores heat from Molten Salt: heat_per_mb 10

Everything else is either a Create recipe (crushing, mixing, compacting and so on, including Biomass, Fertilizer, Deuterium and the Lithium chain), which you change the usual Create way, or is built into the machine: Solar Power Tower output, the Electrolyzer, Fuel Cell and Bioreactor.

KubeJS

Put these in a server script, like kubejs/server_scripts/solarpunk.js, then run /reload.

Recipes

Every recipe is event.recipes.solarpunk.<type>(result, input), then any optional calls chained after it:

Recipe Result Input Optional calls (default)
fermenting a fluid, per footprint block an item or #tag .water(mB) (1000), .processingTime(ticks) (400), .aerobic(true) (false)
solar_heating a fluid an item or #tag none
evaporating an item a fluid .processingTime(ticks) (200)
crystallizing an item a fluid .secondInput(fluid), .byproduct(fluid), .processingTime(ticks) (100)
particle_accelerator an item a list of 1 to 9 items or tags with counts .minDiameter(n) (5), .minSpeed(rpm) (64), .stress(su) (4096), .processingTime(ticks) (200)

Any recipe can also take .id('kubejs:my_recipe') to set its ID. Fluids are written Fluid.of('id', mB), and items with a count '4x id'.

ServerEvents.recipes(event => {
  // Fermentation Vat: an item and Water ferment into a fluid. Amounts are per footprint
  // block; a bigger Vat scales them up. Optional: .water(mB), .processingTime(ticks), and
  // .aerobic(true) to let Oxygen speed it up (like Rich Fertilizer).
  event.recipes.solarpunk.fermenting(Fluid.of('solarpunk:biofuel', 1500), 'minecraft:sugar_cane')

  // Solar Heater: one item melts into a fluid
  event.recipes.solarpunk.solar_heating(Fluid.of('minecraft:lava', 250), 'minecraft:netherrack')

  // Solar Heater: a fluid dries into an item in the sun (Water -> Salt by default). The
  // amount is how much it uses for each result.
  event.recipes.solarpunk.evaporating('minecraft:obsidian', Fluid.of('minecraft:lava', 1000)).processingTime(100)

  // Crystallizer: a fluid (plus an optional second one) makes an item, with an optional
  // leftover fluid. Inputs are plain fluids, not fluid tags.
  event.recipes.solarpunk.crystallizing('minecraft:obsidian', Fluid.of('minecraft:lava', 250))
    .secondInput(Fluid.water(250))
    .byproduct(Fluid.of('solarpunk:steam', 50))
    .processingTime(100)

  // Particle Accelerator: up to 9 ingredients with counts make one item. minDiameter is the
  // smallest ring, minSpeed the RPM (1 to 256), stress the SU at min speed on a ring of
  // exactly minDiameter (bigger rings draw more).
  event.recipes.solarpunk.particle_accelerator('minecraft:nether_star', ['8x #c:dusts/lithium', 'minecraft:diamond'])
    .minDiameter(9)
    .minSpeed(128)
    .stress(16384)
    .processingTime(400)
})

Removing recipes

ServerEvents.recipes(event => {
  event.remove({ id: 'solarpunk:solar_heating/cobblestone_to_lava' })   // one recipe
  event.remove({ type: 'solarpunk:crystallizing' })                     // every Crystallizer recipe
})

Recipe IDs follow the recipe's file path in the mod, like solarpunk:fermenting/biofuel or solarpunk:particle_accelerator/diamond. To find one, turn on advanced tooltips (F3+H) and hover the recipe's output in JEI. Recipes added with KubeJS get IDs like solarpunk:kjs/diamond, unless you give one with .id('kubejs:my_recipe').

Fuels and heat values

Each data map has its own event. add takes an id or a #tag, and an object in the map's format (see the table above). remove takes an id or a tag, and also removes Solarpunk's own defaults.

SolarpunkEvents.turbineFuels(event => event.add('minecraft:lava', { steam_value: 0.5 }))
SolarpunkEvents.gasifierFuels(event => {
  event.add('#minecraft:logs', { burn_ticks: 300, biochar: 1 })   // biochar is optional, default 1
  event.remove('solarpunk:biomass')
})
SolarpunkEvents.engineFuels(event => event.add('minecraft:lava', { ticks_per_bucket: 400 }))
SolarpunkEvents.heatBatteryFluids(event => event.add('minecraft:lava', { heat_per_mb: 5 }))

A wrong id or value shows up as a KubeJS script error that names the data map.

Datapacks

Recipes

Save a recipe as data/<namespace>/recipe/<name>.json:

{
  "type": "solarpunk:fermenting",
  "ingredient": { "item": "minecraft:sugar_cane" },
  "result": { "id": "solarpunk:biofuel", "amount": 1500 },
  "water": 1000,
  "processing_time": 400,
  "aerobic": false
}

water, processing_time and aerobic are optional; the values above are the defaults.

The other types look like this:

{ "type": "solarpunk:solar_heating", "ingredient": { "item": "minecraft:netherrack" }, "result": { "id": "minecraft:lava", "amount": 250 } }
{ "type": "solarpunk:evaporating", "ingredient": { "id": "minecraft:lava", "amount": 1000 }, "result": { "id": "minecraft:obsidian", "count": 1 }, "processing_time": 200 }
{
  "type": "solarpunk:crystallizing",
  "input_a": { "id": "minecraft:lava", "amount": 250 },
  "input_b": { "id": "minecraft:water", "amount": 250 },
  "result": { "id": "minecraft:obsidian", "count": 1 },
  "byproduct": { "id": "solarpunk:steam", "amount": 50 },
  "processing_time": 100
}
{
  "type": "solarpunk:particle_accelerator",
  "ingredients": [ { "tag": "c:dusts/lithium", "count": 8 }, { "item": "minecraft:diamond", "count": 1 } ],
  "result": { "id": "minecraft:nether_star", "count": 1 },
  "min_diameter": 9, "min_speed": 128, "stress": 16384.0, "processing_time": 400
}

For the Crystallizer, input_b and byproduct are optional.

To remove one of Solarpunk's recipes, put a file at the same path under data/solarpunk/recipe/ containing { "neoforge:conditions": [ { "type": "neoforge:false" } ] }.

Fuels and heat values

Data maps live at data/solarpunk/data_maps/<fluid|item>/<name>.json, and your file is added on top of Solarpunk's:

{
  "values": {
    "minecraft:lava": { "steam_value": 0.5 },
    "#c:steam": { "steam_value": 1.0 }
  }
}

That's data/solarpunk/data_maps/fluid/turbine_fuels.json. Add "replace": true at the top to drop Solarpunk's defaults, or a "remove": ["solarpunk:biomass"] list to take entries out.

Clone this wiki locally