added some stuff for wiki

This commit is contained in:
ticticboooom
2021-05-16 00:25:49 +01:00
parent 3c8df09147
commit 5c52a1aa99
8 changed files with 56 additions and 5 deletions

View File

@@ -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'

View File

@@ -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" >}}

View File

@@ -227,3 +227,8 @@ body {
.katex {
font-size: $font-size-md;
}
img {
max-width: 700px;
}

View File

@@ -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/"

View File

@@ -7,4 +7,3 @@ draft: true
images: []
---
{{< email user="hello" domain="getdoks.org" >}}

View File

@@ -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)

View File

@@ -17,6 +17,7 @@ toc: true
```json
{
"type": "masterfulmachinery:machine_structure"
"type": "masterfulmachinery:machine_structure",
"controllerId": [""]
}
```

View File

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB