Skip to content

Commit

Permalink
more modonomicon stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thepigcat76 committed Sep 28, 2024
1 parent e3b9519 commit f554490
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// 1.21.1 2024-09-28T20:17:41.861681171 Books: nautec
// 1.21.1 2024-09-28T20:56:17.976132855 Books: nautec
6d944fd1b3f4f8d8baf18317dbdea1e50476ed05 data/nautec/modonomicon/books/nautec_guide/book.json
ea5fe754ad19a1903e7a9d19f39e3b1488e59cfe data/nautec/modonomicon/books/nautec_guide/categories/getting_started.json
3025c1f954bcbae17b5500c8814af26ccda6cf0a data/nautec/modonomicon/books/nautec_guide/entries/getting_started/introduction.json
8e55c554d8896f32632aaad063beaba831d75644 data/nautec/modonomicon/books/nautec_guide/entries/getting_started/item_transformation.json
2b6551f897bf62b0c6c530060f73781a3918a0ac data/nautec/modonomicon/books/nautec_guide/entries/getting_started/laser_power.json
9ef82ed92a8e5c5f818404156175b9cdc80a2061 data/nautec/modonomicon/books/nautec_guide/entries/getting_started/monocle.json
59304fbce9bea134575c0e21bc9f7e826a11be83 data/nautec/modonomicon/books/nautec_guide/entries/getting_started/structures.json
80604d452710691c7e939631df1f0509f08c050e data/nautec/modonomicon/books/nautec_guide/entries/getting_started/utils.json
38e9d7cfe844eb960d55976f21fe3befeeb726d6 data/nautec/modonomicon/books/nautec_guide/entries/getting_started/item_transformation.json
40140193be4c48a3946a4eed262f6112a8b9d27d data/nautec/modonomicon/books/nautec_guide/entries/getting_started/laser_power.json
8398d49b3e4c5da90eead4a0e16b9abe687d40c2 data/nautec/modonomicon/books/nautec_guide/entries/getting_started/monocle.json
64e2f7b87ddb0f2dd0a3521147809265328217ee data/nautec/modonomicon/books/nautec_guide/entries/getting_started/structures.json
82141276595b779e1e93dbcde9cf146ce7799563 data/nautec/modonomicon/books/nautec_guide/entries/getting_started/utils.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
"use_markdown_in_title": false
}
],
"parents": [
{
"draw_arrow": true,
"entry": "getting_started/laser_power",
"line_enabled": true,
"line_reversed": false
}
],
"show_when_any_parent_unlocked": false,
"sort_number": 3,
"x": 4,
"x": 6,
"y": 0
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
"use_markdown_in_title": false
}
],
"parents": [
{
"draw_arrow": true,
"entry": "getting_started/structures",
"line_enabled": true,
"line_reversed": false
}
],
"show_when_any_parent_unlocked": false,
"sort_number": 2,
"x": 0,
"y": 2
"x": 4,
"y": 0
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
"use_markdown_in_title": false
}
],
"parents": [
{
"draw_arrow": true,
"entry": "getting_started/item_transformation",
"line_enabled": true,
"line_reversed": false
}
],
"show_when_any_parent_unlocked": false,
"sort_number": 5,
"x": 6,
"y": -2
"y": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
"use_markdown_in_title": false
}
],
"parents": [
{
"draw_arrow": true,
"entry": "getting_started/introduction",
"line_enabled": true,
"line_reversed": false
}
],
"show_when_any_parent_unlocked": false,
"sort_number": 1,
"x": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
"use_markdown_in_title": false
}
],
"parents": [
{
"draw_arrow": true,
"entry": "getting_started/introduction",
"line_enabled": true,
"line_reversed": false
}
],
"show_when_any_parent_unlocked": false,
"sort_number": 4,
"x": 6,
"y": 0
"x": 0,
"y": -2
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.klikli_dev.modonomicon.api.datagen.CategoryProvider;
import com.klikli_dev.modonomicon.api.datagen.ModonomiconProviderBase;
import com.klikli_dev.modonomicon.api.datagen.book.BookEntryModel;
import com.klikli_dev.modonomicon.api.datagen.book.BookIconModel;
import com.portingdeadmods.nautec.compat.modonomicon.datagen.book.nautec_guide.getting_started.*;
import com.portingdeadmods.nautec.registries.NTBlocks;
Expand All @@ -20,12 +21,24 @@ protected String[] generateEntryMap() {

@Override
protected void generateEntries() {
add(new IntroductionEntry(this).generate(new Vec2(0, 0)));
add(new StructuresEntry(this).generate(new Vec2(2, 0)));
add(new LaserPowerEntry(this).generate(new Vec2(0, 2)));
add(new ItemTransformationEntry(this).generate(new Vec2(4, 0)));
add(new UtilsEntry(this).generate(new Vec2(6, 0)));
add(new MonocleEntry(this).generate(new Vec2(6, -2)));
BookEntryModel introductionEntry = new IntroductionEntry(this)
.generate(new Vec2(0, 0));
add(introductionEntry);
BookEntryModel structuresEntry = new StructuresEntry(this)
.generate(new Vec2(2, 0));
add(structuresEntry.withParent(introductionEntry));
BookEntryModel laserPowerEntry = new LaserPowerEntry(this)
.generate(new Vec2(4, 0));
add(laserPowerEntry.withParent(structuresEntry));
BookEntryModel itemTransformationEntry = new ItemTransformationEntry(this)
.generate(new Vec2(6, 0));
add(itemTransformationEntry.withParent(laserPowerEntry));
BookEntryModel utilsEntry = new UtilsEntry(this)
.generate(new Vec2(0, -2));
add(utilsEntry.withParent(introductionEntry));
BookEntryModel monocleEntry = new MonocleEntry(this)
.generate(new Vec2(6, 2));
add(monocleEntry.withParent(itemTransformationEntry));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.klikli_dev.modonomicon.api.datagen.CategoryProvider;
import com.klikli_dev.modonomicon.api.datagen.ModonomiconProviderBase;
import com.klikli_dev.modonomicon.api.datagen.book.BookIconModel;
import com.portingdeadmods.nautec.registries.NTItems;

public class LaserChemistryCategory extends CategoryProvider {
public LaserChemistryCategory(ModonomiconProviderBase parent) {
Expand All @@ -21,16 +22,16 @@ protected void generateEntries() {

@Override
protected String categoryName() {
return "";
return "Laser Chemistry";
}

@Override
protected BookIconModel categoryIcon() {
return null;
return BookIconModel.create(NTItems.ELECTROLYTE_ALGAE_SERUM_VIAL);
}

@Override
public String categoryId() {
return "";
return "laser_chemistry";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ protected void generatePages() {
this.page("intro", () -> BookTextPageModel.create()
.withTitle(this.context().pageTitle())
.withText(this.context().pageText()));

this.pageTitle("Intro Title");
this.pageText("TEEEEEEXT");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.portingdeadmods.nautec.compat.modonomicon.datagen.book.nautec_guide.getting_started;

import com.klikli_dev.modonomicon.api.datagen.CategoryProviderBase;
import com.klikli_dev.modonomicon.api.datagen.ConditionHelper;
import com.klikli_dev.modonomicon.api.datagen.EntryBackground;
import com.klikli_dev.modonomicon.api.datagen.EntryProvider;
import com.klikli_dev.modonomicon.api.datagen.book.BookIconModel;
Expand Down

0 comments on commit f554490

Please sign in to comment.