You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-26.1.2/advanced/custom-conditions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ In addition to implementing the interface methods that your IDE will suggest you
25
25
26
26
in `getType()` return your ResourceLocation.
27
27
28
-
See https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/common/src/main/java/com/klikli_dev/modonomicon/book/conditions/BookAdvancementCondition.java for an example condition.
28
+
See https://github.com/klikli-dev/modonomicon/blob/-/common/src/main/java/com/klikli_dev/modonomicon/book/conditions/BookAdvancementCondition.java for an example condition.
Copy file name to clipboardExpand all lines: versioned_docs/version-26.1.2/advanced/leaflets.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,4 +15,4 @@ To create a leaflet book, you need a normal book structure including `book.json`
15
15
The book needs to have `leaflet_entry` set to the ResourceLocation of the single entry in the single category.
16
16
Additional content can be added to the book, but will not be displayed.
17
17
18
-
The best way to create a leaflet is to use the leaflet datagen. It is demonstrated in (and can be copied from) https://github.com/klikli-dev/modonomicon/tree/version/1.21/common/src/main/java/com/klikli_dev/modonomicon/datagen/book/DemoLeaflet.java
18
+
The best way to create a leaflet is to use the leaflet datagen. It is demonstrated in (and can be copied from) https://github.com/klikli-dev/modonomicon/blob/-/common/src/main/java/com/klikli_dev/modonomicon/datagen/book/DemoLeaflet.java
Copy file name to clipboardExpand all lines: versioned_docs/version-26.1.2/advanced/localization.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@ sidebar_position: 10
6
6
7
7
All in-game texts should be supplied as DescriptionIds (= Translation Keys) with a corresponding entry in the language file to provide the actual content and (markdown) formatting. Modonomicon adds some helper functionality to make providing book texts more easy.
8
8
9
-
See for example https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/common/src/main/java/com/klikli_dev/modonomicon/datagen/book/demo/formatting/AdvancedFormattingEntry.java
9
+
See for example https://github.com/klikli-dev/modonomicon/blob/-/common/src/main/java/com/klikli_dev/modonomicon/datagen/book/demo/formatting/AdvancedFormattingEntry.java
Copy file name to clipboardExpand all lines: versioned_docs/version-26.1.2/getting-started/step-by-step-with-datagen/step-by-step-with-datagen.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ sidebar_position: 10
5
5
# Step by Step Guide for Book Datagen
6
6
7
7
This page will guide you through the recommended and most convenient way to create a book.
8
-
It uses the [Demo Book](https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/neo/src/generated/resources/data/modonomicon/modonomicon/books) modonomicon provides as a starting point.
8
+
It uses the [Demo Book](https://github.com/klikli-dev/modonomicon/blob/-/neo/src/generated/resources/data/modonomicon/modonomicon/books) modonomicon provides as a starting point.
9
9
10
10
:::tip
11
11
@@ -17,7 +17,7 @@ If you run into any issues or have any questions, join our Discord: **https://ds
17
17
18
18
To show how to create a book with datagen, we have created a demo book that showcases the most commonly used modonomicon features and you can use as a starting point for your own book.
19
19
20
-
You can find the files at *[*https://github.com/klikli-dev/modonomicon-demo-book](https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/common/src/main/java/com/klikli_dev/modonomicon/datagen/book)**
20
+
You can find the files at *[*https://github.com/klikli-dev/modonomicon-demo-book](https://github.com/klikli-dev/modonomicon/blob/-/common/src/main/java/com/klikli_dev/modonomicon/datagen/book)**
21
21
22
22
### For Mod Developers
23
23
@@ -50,7 +50,7 @@ Java programming knowledge will be helpful to get the most out of modonomicon da
50
50
Modonomicon provides a "BookProvider", which works much like the Loot Table provider. It generates book JSON files for a given book definition (book model). Neither mod developers nor pack developers needto change or subclass the book provider. Instead, it takes "Subproviders" that define the content of the book, and which it will convert into JSON files.
51
51
52
52
Modonomicon comes with "SingleBookSubProvider", which is a datagen helper class that comes with convenience methods for setting up a book.
53
-
The example modonomicon provides, https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/common/src/main/java/com/klikli_dev/modonomicon/datagen/book/DemoBook.java, uses this class to set up the demo book. It is recommended to simply copy this file (or modify it directly).
53
+
The example modonomicon provides, https://github.com/klikli-dev/modonomicon/blob/-/common/src/main/java/com/klikli_dev/modonomicon/datagen/book/DemoBook.java, uses this class to set up the demo book. It is recommended to simply copy this file (or modify it directly).
54
54
55
55
56
56
## Step 0: The Editor of your Choice
@@ -59,4 +59,4 @@ You can use any text editor you like to create the book.
59
59
60
60
For convenience, and if you are familiar with it, we recommend using [Intellij Community Version](https://www.jetbrains.com/idea/download/), however other Editors such as Eclipse and Visual Studio Code will work as well.
61
61
62
-
The guide will mostly be editor-agnostic, but we will provide some tips for Intellij users. Steps are very similar for users of other IDEs.
62
+
The guide will mostly be editor-agnostic, but we will provide some tips for Intellij users. Steps are very similar for users of other IDEs.
Copy file name to clipboardExpand all lines: versioned_docs/version-26.1.2/getting-started/step-by-step-with-datagen/step2.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar_position: 20
6
6
7
7
##File Structure
8
8
9
-
First, take a minute to look at the folder structure relevant for demo book, either locally if you downloaded it in the previous step, or on [GitHub](https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/common/src/main/java/com/klikli_dev/modonomicon/datagen/book).
9
+
First, take a minute to look at the folder structure relevant for demo book, either locally if you downloaded it in the previous step, or on [GitHub](https://github.com/klikli-dev/modonomicon/blob/-/common/src/main/java/com/klikli_dev/modonomicon/datagen/book).
10
10
```
11
11
.
12
12
└── modonomicon/
@@ -71,7 +71,7 @@ The data generator registration happens in three steps.
71
71
1. Additionally a DemoLeaflet is registered. A leaflet is a special book with just one entry and no categories. You can remove this line in your setup, unless you want to create a leaflet.
72
72
3. Finally, the language provider is registered, notice how it also receives the cache as parameter.
73
73
1. It is important that your main mod language provider takes all contents of the cache and adds them to its output.
74
-
2. To simplify this, make your language provider extend `AbstractModonomiconLanguageProvider`, like Modonomicon's [EnUsProvider](https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/common/src/main/java/com/klikli_dev/modonomicon/datagen/EnUsProvider.java) does. Then you can just leave your provider as-is.
74
+
2. To simplify this, make your language provider extend `AbstractModonomiconLanguageProvider`, like Modonomicon's [EnUsProvider](https://github.com/klikli-dev/modonomicon/blob/-/common/src/main/java/com/klikli_dev/modonomicon/datagen/EnUsProvider.java) does. Then you can just leave your provider as-is.
75
75
4. Modonomicon Datagen then also registers a datagen for multiblocks which you can look into if you want to generate multiblock definitions for your book.
76
76
5. Further an ItemModelProvider is registered, which you can ignore, unless you want to add additional item models.
77
77
@@ -119,4 +119,4 @@ If you want to translate in DataGen you can create additional language provider
119
119
120
120
You can then access the the other language providers in the book/category/entry providers with e.g. `this.add(this.lang("<LANG>"), "<KEY>", "<VALUE>");` where lang could be e.g. `ru_ru` or `fr_fr`, etc. This call allows you to access the modonomicon formatting helpers.
121
121
122
-
To access language provider functions directly instead, you can also use `this.lang("<LANG>").add("<KEY>", "<VALUE>");`.
122
+
To access language provider functions directly instead, you can also use `this.lang("<LANG>").add("<KEY>", "<VALUE>");`.
Copy file name to clipboardExpand all lines: versioned_docs/version-26.1.2/getting-started/step-by-step-with-datapack/step-by-step-with-datapack.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ sidebar_position: 10
5
5
# Step by Step Guide for a Book via Datapack
6
6
7
7
This section will guide you through a reasonably easy way to create a book _without_ datagen.
8
-
It uses the [Demo Book](https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/neo/src/generated/resources/data/modonomicon/modonomicon/books) modonomicon provides as a starting point.
8
+
It uses the [Demo Book](https://github.com/klikli-dev/modonomicon/blob/-/neo/src/generated/resources/data/modonomicon/modonomicon/books) modonomicon provides as a starting point.
9
9
10
10
:::tip
11
11
@@ -17,4 +17,4 @@ If you run into any issues or have any questions, join our Discord: **https://ds
17
17
18
18
It is not recommended to manually create books. It is much more convenient and error-free to use [datagen](../step-by-step-with-datagen/). JSON is not a great format for text editing, and can be annoying to properly format text.
Copy file name to clipboardExpand all lines: versioned_docs/version-26.1.2/getting-started/step-by-step-with-datapack/step1.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,6 @@ First, download the modonomicon source code, as it contains the demo book:
14
14
15
15
:::tip
16
16
17
-
If you are already well-versed with datapacks you can look at the demo book **[here](https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/neo/src/generated/resources/data/modonomicon/modonomicon/books)** and the demo multiblocks used by the book **[here](https://github.com/klikli-dev/modonomicon/tree/version/1.21.1/neo/src/generated/resources/data/modonomicon/modonomicon/multiblocks)** and simply download the individual files you want to use as a reference.
17
+
If you are already well-versed with datapacks you can look at the demo book **[here](https://github.com/klikli-dev/modonomicon/blob/-/neo/src/generated/resources/data/modonomicon/modonomicon/books)** and the demo multiblocks used by the book **[here](https://github.com/klikli-dev/modonomicon/blob/-/neo/src/generated/resources/data/modonomicon/modonomicon/multiblocks)** and simply download the individual files you want to use as a reference.
0 commit comments