Skip to content

Commit 4222388

Browse files
committed
docs: point versioned modonomicon links at default branch
1 parent aded727 commit 4222388

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

versioned_docs/version-26.1.2/advanced/custom-conditions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In addition to implementing the interface methods that your IDE will suggest you
2525

2626
in `getType()` return your ResourceLocation.
2727

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.
2929

3030
## Condition Registration
3131

versioned_docs/version-26.1.2/advanced/leaflets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ To create a leaflet book, you need a normal book structure including `book.json`
1515
The book needs to have `leaflet_entry` set to the ResourceLocation of the single entry in the single category.
1616
Additional content can be added to the book, but will not be displayed.
1717

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

versioned_docs/version-26.1.2/advanced/localization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ sidebar_position: 10
66

77
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.
88

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

versioned_docs/version-26.1.2/getting-started/step-by-step-with-datagen/step-by-step-with-datagen.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_position: 10
55
# Step by Step Guide for Book Datagen
66

77
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.
99

1010
:::tip
1111

@@ -17,7 +17,7 @@ If you run into any issues or have any questions, join our Discord: **https://ds
1717

1818
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.
1919

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)**
2121

2222
### For Mod Developers
2323

@@ -50,7 +50,7 @@ Java programming knowledge will be helpful to get the most out of modonomicon da
5050
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.
5151

5252
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).
5454

5555

5656
## Step 0: The Editor of your Choice
@@ -59,4 +59,4 @@ You can use any text editor you like to create the book.
5959

6060
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.
6161

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.

versioned_docs/version-26.1.2/getting-started/step-by-step-with-datagen/step2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_position: 20
66

77
##File Structure
88

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).
1010
```
1111
.
1212
└── modonomicon/
@@ -71,7 +71,7 @@ The data generator registration happens in three steps.
7171
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.
7272
3. Finally, the language provider is registered, notice how it also receives the cache as parameter.
7373
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.
7575
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.
7676
5. Further an ItemModelProvider is registered, which you can ignore, unless you want to add additional item models.
7777

@@ -119,4 +119,4 @@ If you want to translate in DataGen you can create additional language provider
119119

120120
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.
121121

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>");`.

versioned_docs/version-26.1.2/getting-started/step-by-step-with-datapack/step-by-step-with-datapack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_position: 10
55
# Step by Step Guide for a Book via Datapack
66

77
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.
99

1010
:::tip
1111

@@ -17,4 +17,4 @@ If you run into any issues or have any questions, join our Discord: **https://ds
1717

1818
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.
1919

20-
:::
20+
:::

versioned_docs/version-26.1.2/getting-started/step-by-step-with-datapack/step1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ First, download the modonomicon source code, as it contains the demo book:
1414

1515
:::tip
1616

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.
1818

19-
:::
19+
:::

0 commit comments

Comments
 (0)