Modonomicon Documentation

website·Indexed 30 days ago

https://klikli-dev.github.io/modonomicon

Documentation for Modonomicon, a tool for creating in-game books and guides. It covers page types (entity, recipe, spotlight, multiblock, image, text, and empty), research node gating, data generation (datagen) wiring, and localization. Includes guides for creating leaflets and updating from version 1.21.1 to 26.1.2.

Tokens
64K
Snippets
283
Records
480
Agent score
67%

What's inside Modonomicon

  1. Overview of Modonomicon documentation mod

    Modonomicon is an in-game documentation mod for Minecraft (version 1.21.1) designed to create interactive guides. It combines features from Patchouli and Thaumcraft's Thaumonomicon, offering two primary navigation modes: a 2D 'Quest/Advancement' style view and a traditional 'Index' style view. Key capabilities include:

    • Data-driven creation: All books are created via datapacks, allowing both mod authors and modpack creators to add content.
    • Extensibility: Supports mod-added features, such as custom recipe pages for specific crafting methods.
    • Rich Text: Uses extended Markdown syntax for text styling.
    • Diverse Page Types: Supports pages for text, recipes, images, and items.
  2. Overview of Multiblocks in Modonomicon

    Multiblocks in Modonomicon serve two primary purposes for developers:

    1. Visual Documentation: They allow a multiblock structure to be displayed within a book and previewed in-world, helping players build specific shapes.
    2. Functional Verification: They can be used programmatically to verify if a multiblock structure has been correctly constructed in the world, enabling the creation of custom multiblock machines.
  3. Overview of Multiblocks in Modonomicon

    Multiblocks in Modonomicon serve two primary purposes:

    1. Visual Guidance: They allow you to display a multiblock structure within a book and provide an in-world preview to help players build specific shapes.
    2. Functional Verification: They can be used programmatically to verify if a multiblock has been correctly constructed, enabling the creation of custom multiblock machines.
  4. Overview of Modonomicon in-game documentation

    Modonomicon is an in-game documentation mod that allows developers and modpack creators to build books via datapacks. It combines features from Thaumcraft's Thaumonomicon and Patchouli, offering two primary navigation modes: a 2D 'Quest/Advancement'-style view and a traditional 'Index'-style view. Key capabilities include extended Markdown syntax for text styling and various page types for displaying recipes, images, and items.
  5. Overview of Multiblock functionality in Modonomicon

    Multiblocks in Modonomicon serve two primary purposes:

    1. Visual Representation: They allow a multiblock structure to be displayed in a book and previewed in-world, helping players build specific shapes.
    2. Functional Verification: They can be used to verify if a multiblock is correctly constructed, enabling the creation of custom multiblock machines. This is handled via the MultiblockVerification class and the MultiblockRegistry#checkMultiblock() method.
  6. Overview of Modonomicon in-game documentation

    Modonomicon is an in-game documentation mod for Minecraft (version 1.20.1) that combines features from Thaumcraft's Thaumonomicon and Patchouli. It allows mod developers and modpack creators to build interactive books using a data-driven approach via datapacks. Key capabilities include:

    • Data-Driven Content: All books are created via datapacks, allowing both mods and modpacks to add content.
    • Navigation Modes: Supports both a 2D "Quest/Advancement" style view and a traditional "Index" style view.
    • Extensibility: Mods can extend the system to add custom features, such as specialized recipe pages for unique crafting methods.
    • Rich Text & Media: Supports extended Markdown syntax for text styling and various page types for displaying recipes, images, and items.
  7. Understand Modonomicon content hierarchy

    Modonomicon content is structured in a four-tier hierarchy:

    1. Book: The top-level container defined by book.json.
    2. Categories: 2D 'Quest/Advancement'-style views that group multiple entries.
    3. Entries: Individual items within a category that can be linked to other entries and contain one or more pages.
    4. Pages: The actual content units within an entry used to display text, images, recipes, and other media.
  8. Understand Modonomicon datagen file structure

    The Modonomicon datagen setup is split between common logic and platform-specific registration:

    • Common Source (/common/src/main/java/.../datagen/book): Contains the source code used to generate the book. This code is mod-loader independent and can be copied directly into any mod's datagen folder.
    • Platform Registration (/neo/src/main/java/.../datagen/DataGenerators.java): Demonstrates how to register the book provider and link it to language providers. Similar files exist for Forge and Fabric.
    • Generated Resources (/neo/src/generated/resources/):
      • data/.../demo/...: Contains generated book definition JSON files.
      • assets/.../lang/en_us.json: Contains the generated book texts.

    Note for Modpack Creators: You only need to modify the files in the common folder. You can ignore DataGenerators.java and should remove Modonomicon-specific functionality texts from the final en_us.json before publishing as a resource pack.

  9. Understand the Modonomicon book hierarchy

    Modonomicon books are organized in a strict hierarchy: a Book consists of Categories, each Category contains Entries, and each Entry contains Pages.

    • Pages: Group closely related information (e.g., a furnace's description, its recipe, and an image).
    • Entries: Group related pages together.
    • Categories: Group related entries. Categories can be displayed in 'node mode' (node view), where entries appear as nodes on a 2D screen that can be connected with arrows to guide the player.
  10. Modonomicon Book structural components overview

    Modonomicon books are composed of four primary elements:

    • book.json: Located in the root of the book folder, containing general settings for the book.
    • Categories: 2D views (similar to Quest/Advancement screens) that group multiple entries together.
    • Entries: Individual items belonging to a specific category. Entries can contain multiple pages and can be linked to other entries.
    • Pages: The actual content containers within an entry used to display text, images, and recipes.
  11. Understand Modonomicon datagen file structure

    The Modonomicon datagen setup is split between common logic and platform-specific registration:

    • /common/src/main/java/.../datagen/book: Contains the source code used to generate the book. This code is mod-loader independent and can be copied into any mod's datagen folder.
    • /neo/src/main/java/.../datagen/DataGenerators.java: Handles the registration of the book provider and its connection to language providers. (Similar files exist for Forge and Fabric).
    • /neo/src/generated/resources/data/.../demo/...: Contains the generated book definition JSON files.
    • /neo/src/generated/resources/assets/.../lang/en_us.json: Contains the generated book texts. Note: Modpack creators should remove Modonomicon-specific functionality texts from this file before publishing as a resource pack.