Download Inventory Generators — Minecraft Mods — ModStock

Inventory Generators

Active

Downloads

15

Last update

1 year ago
Client
Weapons and armor
Technological

Old versions of this mod are unsupported the current description is for versions 1.20.1+

 

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 adding fuels to the generators. The file should be a .json file named after the registry name of a generator. This file should be located in the ~data/(namespace)/inventorygenerators/generators folder of the data pack.

 

Example: Registering new fuels for the Inventory Nether Star Generator requires creating a inventory_nether_star_generator.json file located in ~data/(namespace)/inventorygenerators/generators so the final path should look like ~data/(namespace)/inventorygenerators/generators/inventory_nether_star_generator.json

This inventory_nether_star_generator.json file might look like the following JSON file. This file uses "replace": false to specify that this configuration should be merged with any other existing configurations instead of replacing them. Within "values" we specify all items to be added to the generator with the following format "[registry name]": [[burn time in ticks],[energy per tick]]

 

{
  "replace": false,
  "values": {
    "minecraft:black_wool": [100, 40]
  }
}
Akliz Promo
Project members
xkjmaster_1x

xkjmaster_1x