-
Notifications
You must be signed in to change notification settings - Fork 68
Modonomicon Pages
Spectrum's guidebook "Colorful World" is powered by Modonomicon starting with Spectrum 1.8.x, an extensible guidebook API. Spectrum adds new page types where necessary. All available new page types are available to be used by modpacks and all addons for Spectrum that want to add content to Spectrum's guidebook, or their own.
{
"type": "spectrum:link",
"text": "book.spectrum.guidebook.brown_is_weird.page1.text",
"url": "https://www.youtube.com/watch?v=wh4aWZRtTwU",
"link_text": "book.spectrum.guidebook.brown_is_weird.page1.link_text"
}
{
"type": "spectrum:nbt_spotlight",
"item": {
"item": "spectrum:memory",
"nbt": {
"EntityTag": {
"id": "minecraft:fox"
},
"TicksToManifest": 20
}
},
"text": "book.spectrum.guidebook.memories.page0.text"
}
Displays a list of items, 6 per line in up to 8 rows (less when you use text or a title).
{
"type": "spectrum:collection",
"title": "block.spectrum.fusion_shrine",
"items": [
"spectrum:fusion_shrine_basalt",
"spectrum:fusion_shrine_calcite"
],
"text": "book.spectrum.guidebook.fusion_shrine.page0.text"
}
Features obfuscated text, a button that displays a button with text and a given cost. By clicking on the button the text will be revealed, given the player has the required items in the inventory. Spectrum uses this page in its guidebooks "idea" pages, to allow players to buy some tips if they are stuck in progression.
Cost should always be set to never feel grindy to the player, just acting as a small fee to encourage discovering more by themselves.
{
"type": "spectrum:hint",
"title": "book.spectrum.guidebook.ideas.where_to_find",
"completion_advancement": "spectrum:triggers/hints/azurite_page0",
"cost": {
"item": "spectrum:neolith",
"count": 8
},
"text": "book.spectrum.guidebook.ideas.azurite.page0.text"
}
Displays any kind of image you supply it with by snipping out a part of a texture.
For that it needs that texture's location (resource_path
), the size of that image (resource_width
& resource_height
), the starting point (texture_x
& texture_y
), as well as it's size (texture_width
& texture_height
).
Also takes a text
property to display text below the image.
{
"type": "spectrum:snippet",
"title": "book.spectrum.guidebook.brewers_handbook.page0.title",
"resource_path": "spectrum:textures/gui/guidebook/taswell.png",
"resource_width": 116,
"resource_height": 116,
"texture_x": 0,
"texture_y": 0,
"texture_width": 116,
"texture_height": 116,
"border": false,
"text": "book.spectrum.guidebook.brewers_handbook.page0.text"
}
Displays the framed icon of a status effect and some text.
{
"type": "spectrum:status_effect",
"title": "effect.spectrum.swiftness",
"status_effect_id": "spectrum:swiftness",
"text": "book.spectrum.guidebook.swiftness.page0.text"
}
Automatically generates a checklist based on the advancements the player has.
The checklist
tag consists of a map of advancements to text. Advancements that the player has are displayed with strikethrough and a checkmark.
{
"type": "spectrum:checklist",
"checklist": {
"spectrum:hidden/collect_pigment/black": "book.spectrum.guidebook.pigment.page1.checklist.entry0",
"spectrum:hidden/collect_pigment/blue": "book.spectrum.guidebook.pigment.page1.checklist.entry1",
"spectrum:hidden/collect_pigment/brown": "book.spectrum.guidebook.pigment.page1.checklist.entry2",
"spectrum:hidden/collect_pigment/cyan": "book.spectrum.guidebook.pigment.page1.checklist.entry3",
"spectrum:hidden/collect_pigment/gray": "book.spectrum.guidebook.pigment.page1.checklist.entry4",
"spectrum:hidden/collect_pigment/green": "book.spectrum.guidebook.pigment.page1.checklist.entry5",
"spectrum:hidden/collect_pigment/light_blue": "book.spectrum.guidebook.pigment.page1.checklist.entry6",
"spectrum:hidden/collect_pigment/light_gray": "book.spectrum.guidebook.pigment.page1.checklist.entry7",
"spectrum:hidden/collect_pigment/lime": "book.spectrum.guidebook.pigment.page1.checklist.entry8",
"spectrum:hidden/collect_pigment/magenta": "book.spectrum.guidebook.pigment.page1.checklist.entry9",
"spectrum:hidden/collect_pigment/orange": "book.spectrum.guidebook.pigment.page1.checklist.entry10",
"spectrum:hidden/collect_pigment/pink": "book.spectrum.guidebook.pigment.page1.checklist.entry11",
"spectrum:hidden/collect_pigment/purple": "book.spectrum.guidebook.pigment.page1.checklist.entry12",
"spectrum:hidden/collect_pigment/red": "book.spectrum.guidebook.pigment.page1.checklist.entry13",
"spectrum:hidden/collect_pigment/white": "book.spectrum.guidebook.pigment.page1.checklist.entry14",
"spectrum:hidden/collect_pigment/yellow": "book.spectrum.guidebook.pigment.page1.checklist.entry15"
},
"text": "book.spectrum.guidebook.pigment.page1.text"
}
Displays a page containing a button that triggers an advancement criterion when pressed. Using this page type, you can actively query the player for confirmation, if they read an entry, understood something, or any other reason you would want some direct interaction.
-
checked_advancement
: The advancement that is queried for completion to determine if the button has been pressed already. -
button_text
: The button's text when pressed/player has the advancement -
button_text_confirmed
: The button's text when pressed/player has the advancement -
confirmation
: The name of the checked advancements criterion that will be unlocked pressing the button
The book page:
{
"type": "spectrum:confirmation_button",
"title": "book.spectrum.guidebook.the_art_of_brewing.drinking_age.title",
"checked_advancement": "spectrum:triggers/confirmed_drinking_age",
"button_text": "book.spectrum.guidebook.the_art_of_brewing.drinking_age.button_text",
"button_text_confirmed": "book.spectrum.guidebook.the_art_of_brewing.drinking_age.button_text_confirmed",
"confirmation": "confirm_drinking_age",
"text": "book.spectrum.guidebook.the_art_of_brewing.drinking_age.text"
}
The accompanying advancement spectrum:triggers/confirmed_drinking_age
:
{
"criteria": {
"confirmed_drinking_age": {
"trigger":"spectrum:confirmation_button_pressed",
"conditions": { "confirmation": "confirm_drinking_age" }
}
}
}
General
For Players
- Getting Started
- Mixing Colors
- Stuck on how to progress?
- Main Progression Steps (MAJOR SPOILERS)
For Server Admins / Modpack Creators
- Integrating into Modpacks
- Adjusting Progression
- Advancement Criteria
- 1.7.x: Patchouli Pages
- 1.7.x: Patchouli Recipe Pages
- 1.8.x: Modonomicon Pages
- 1.8.x: Modonomicon Recipe Pages
- Commands
- Type Specific Predicates
- JsonNBT
For Map Makers
Recipe Types
- Custom Pigment Pedestal Recipes
- Custom Anvil Crushing Recipes
- Custom Fusion Shrine Recipes
- Custom Enchanter Recipes
- Custom Enchantment Upgrade Recipes
- Custom Potion Workshop Brewing Recipes
- Custom Potion Workshop Crafting Recipes
- Custom Potion Workshop Reagents
- Custom Spirit Instiller Recipes
- Custom Liquid Dipping Recipes
- Custom Ink Converting Recipes
- Custom Crystallarieum Recipes
- Custom Cinderhearth Recipes
- Custom Titration Barrel Recipes
- Fluid Ingredients
Loot Tables
More Customisation
- Adding Nature's Staff Conversions
- Adding Entity Fishing Entries
- Adding Resonance Drops
- Adding Crystal Apothecary Harvestables
- Adding Particle Spawner Particles
For Contributors