← Назад к ресурсам

Mekanism Fission Recipe

A mod that allows you to add custom recipe for Mekanism Generators' Fission Reactor.

Modrinth game-mechanics technology utility

Описание

# Mekanism Fission Recipe A really unique addon for [Mekanism](https://modrinth.com/mod/mekanism) [Generators](https://modrinth.com/mod/mekanism-generators). ## What? With this mod installed, you can add actual recipes for Mekanism's Fission Reactor. Below is an example of converting hydrogen to oxygen with the fission reactor that generates no heat: ![hydrogen_to_oxygen](https://github.com/North-West-Wind/MekanismFissionRecipe/blob/main/resources/hydrogen.png?raw=true) ## How? This mod uses a dirty hack called [Mixins](https://github.com/SpongePowered/Mixin). It changes Mekanism's code at runtime. By creating a new recipe type and forcing the Fission Reactor to accept it, you can now add custom fission recipes to Mekanism. ### Fission Recipe You just need to create the recipe like a datapack. Here's how the recipe JSON file should look like: ```json { "type": "mekanism:fission", "input": { "chemical": "mekanism:fissile_fuel", "amount": 1 }, "output": { "id": "mekanism:nuclear_waste", "amount": 1 }, "heat": 1 } ``` - Type: Always use "mekanism:fission" if you are adding a fission recipe. - Input - Gas: The input gas. If you're making a mod you can add your own gas. - Amount: Input amount. - Output: Similar to input. - Heat: The amount of heat generated. 1 is the amount Fissile Fuel normally creates. - You can also use equations in this field with x as subject. For example, "x*x" will make burning 0.1mB of fuel generate 0.01 heat. With version 1.1.0, users can add coolant recipes. There are 2 types of coolant recipes: ### Fluid Coolant Recipe For all fluid (like water) cooling, use this. The following is a sample JSON: ```json { "type": "mekanism:fluid_coolant", "input": { "tag": "minecraft:water", "amount": 1 }, "output": { "id": "mekanism:steam", "amount": 1 }, "thermalEnthalpy": 10, "conductivity": 0.5, "efficiency": 0.2 } ``` - Type: Always use "mekanism:fluid_coolant" if you are adding a fluid coolant recipe. - Input - Fluid/Tag: The fluid to accept. It can be a single fluid type (change `tag` to `fluid`) or a fluid tag (`tag`). - Amount: Input amount. - Output: - Gas: The output gas. If you're making a mod you can add your own gas. - Amount: Output amount. - Thermal Enthalpy: Higher = Boil less & Cooler - Conductivity: Higher = Cooler - Efficiency: Higher = Boil more ### Gas Coolant Recipe For all chemical (like sodium) cooling, use this. The following is a sample JSON: ```json { "type": "mekanism:gas_coolant", "input": { "chemical": "mekanism:sodium", "amount": 1 }, "output": { "id": "mekanism:superheated_sodium", "amount": 1 }, "thermalEnthalpy": 5, "conductivity": 1 } ``` - Type: Always use "mekanism:fluid_coolant" if you are adding a fluid coolant recipe. - Input/Output: Refer to Fission Recipe. - Thermal Enthalpy & Conductivity: Refer to Fluid Coolant Recipe. [This code snippet](https://github.com/North-West-Wind/MekanismFissionRecipe/blob/main/src/main/java/in/northwestw/fissionrecipe/mixin/MixinFissionReactorMultiblockData.java#L136-L144) is the relationship between thermal enthalpy, conductivity and efficiency. ### For More Examples, Please take a look at the `test_recipes` directory. ## Why? This is originally implemented in [Sky Farm](https://www.curseforge.com/minecraft/modpacks/sky-farm-1-16), but I feel like this feature has its own potential, so I took it out, and made it a standalone mod. ## Help? If you find my projects great, you can support me on Ko-fi! [![An inkling girl drinking tea](https://files.catbox.moe/qlm7iq.png)](https://ko-fi.com/nww) ## License This mod is published under GNU GPLv3.