
This mod adds (currently) 13 different generators which can be used entirely from your inventory. When right-clicking, these items open a GUI within which you can place fuel to generate energy. With this generated energy you can charge other items within your inventory (or curios slots) such as jetpacks. You can toggle between a generator being on and off by sneak right-clicking and toggle between charging and non-charging mode by pressing the change mode key while holding the generator (default M).
The mod also comes with data pack support for modifying generator fuel recipes. This allows you to modify the fuels a generator accepts and how much energy those fuels will generate within the generator.
Example: Within the mod's own recipes we have a file named bone_blocks.json within ~data/inventorygenerators/recipe/death_generator:
{
"type": "inventorygenerators:generator_recipe",
"generator": {
"item": "inventorygenerators:inventory_death_generator"
},
"fuels": [
{
"tag": "c:storage_blocks/bone_meal"
}
],
"burnTime": 400,
"RF": 120
}
The type of all Inventory Generator recipes is inventorygenerators:generator_recipe.
Generator refers to a single ingredient object which matches a generator item within the game.
fuels is a list of ingredient objects which are acceptable fuels within the generator recipe
burnTime refers to how many ticks the fuels should generate energy for
RF refers to how much energy the generator should generate each tick for these fuels
