diff --git a/build.gradle b/build.gradle index 875a3e8..d32b327 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ apply plugin: 'net.minecraftforge.gradle' apply plugin: 'eclipse' apply plugin: 'maven-publish' -version = '1.16.5-0.1.20-T' + System.currentTimeMillis() +version = '1.16.5-0.1.21-T' + System.currentTimeMillis() group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'MasterfulMachinery' diff --git a/wiki_src/archetypes/gallery.md b/wiki_src/archetypes/gallery.md new file mode 100644 index 0000000..7873351 --- /dev/null +++ b/wiki_src/archetypes/gallery.md @@ -0,0 +1,13 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +description: "" +lead: "" +date: {{ .Date }} +lastmod: {{ .Date }} +draft: true +weight: 50 +images: ["{{ .Name | urlize }}.jpg"] +contributors: [] +--- + +{{< img src="{{ .Name | urlize }}.jpg" alt="{{ replace .Name "-" " " | title }}" caption="{{ replace .Name "-" " " | title }}" class="wide" >}} diff --git a/wiki_src/assets/scss/common/_global.scss b/wiki_src/assets/scss/common/_global.scss index ad45503..00dc951 100644 --- a/wiki_src/assets/scss/common/_global.scss +++ b/wiki_src/assets/scss/common/_global.scss @@ -227,3 +227,8 @@ body { .katex { font-size: $font-size-md; } + + +img { + max-width: 700px; +} \ No newline at end of file diff --git a/wiki_src/config/_default/menus.toml b/wiki_src/config/_default/menus.toml index 121e04d..82b1e8e 100644 --- a/wiki_src/config/_default/menus.toml +++ b/wiki_src/config/_default/menus.toml @@ -6,10 +6,10 @@ url = "/docs/intro/" [[docs]] - name = "Config" + name = "Controllers & Ports" weight = 10 identifier = "config" - url = "/docs/controllers/" + url = "/docs/config/" [[docs]] name = "Process Recipes" @@ -22,6 +22,7 @@ weight = 60 identifier = "structures" url = "/docs/structures/" + [[main]] name = "Docs" url = "/docs/intro/welcome/" diff --git a/wiki_src/content/contact/index.md b/wiki_src/content/contact/index.md index 795089f..77419df 100644 --- a/wiki_src/content/contact/index.md +++ b/wiki_src/content/contact/index.md @@ -7,4 +7,3 @@ draft: true images: [] --- -{{< email user="hello" domain="getdoks.org" >}} diff --git a/wiki_src/content/docs/config/controller.md b/wiki_src/content/docs/config/controller.md new file mode 100644 index 0000000..32b6b25 --- /dev/null +++ b/wiki_src/content/docs/config/controller.md @@ -0,0 +1,32 @@ +--- +title: "Step By Step" +description: "Config for defining Controllers and Ports." +lead: "All config driven blocks must bge created in the modpack config folder under the masterful_machinery directory/folder." +date: 2020-10-06T08:49:31+00:00 +lastmod: 2020-10-06T08:49:31+00:00 +draft: false +images: [ '/assets/images/screenshot.png'] +menu: + docs: + parent: "config" +weight: 630 +toc: true +--- + +## Why not DataPack For The Blocks? + +In minecraft blocks and items are registered a long time before the datapack's are even loaded. This means that to register blocks and items from JSON files, the mod must have a non-datapack-driven way of creating and configuring those blocks and such. + +# Creating A Controller Block + +Firstly, we must create the block which controls and handles the machines and recipes. This block is called a Controller. + +To create a controller block you must navigate to the following directory/folder relative to the `.minecraft` or the equivalent root directory/folder for your modpack. + +Path: `/config/masterful_machinery/controllers`. + +Once you are inside the above directory. create a new JSON file, you can call it anything you want as long as it ends in `.json`. + +Open the JSON file in your favorite JSON supporting text editor + +![Image](/images/screenshot.png) \ No newline at end of file diff --git a/wiki_src/content/docs/structures/exmaples.md b/wiki_src/content/docs/structures/exmaples.md index 9273cf9..26dbe48 100644 --- a/wiki_src/content/docs/structures/exmaples.md +++ b/wiki_src/content/docs/structures/exmaples.md @@ -17,6 +17,7 @@ toc: true ```json { - "type": "masterfulmachinery:machine_structure" + "type": "masterfulmachinery:machine_structure", + "controllerId": [""] } ``` \ No newline at end of file diff --git a/wiki_src/images/screenshot.png b/wiki_src/static/images/screenshot.png similarity index 100% rename from wiki_src/images/screenshot.png rename to wiki_src/static/images/screenshot.png