Init better docs, datapacks
This commit is contained in:
parent
ea47cc0348
commit
660c738c16
5 changed files with 322 additions and 61 deletions
|
|
@ -3,7 +3,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { faLink } from '@fortawesome/free-solid-svg-icons';
|
import { faLink } from '@fortawesome/free-solid-svg-icons';
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
<div>
|
<div className="pb-5">
|
||||||
<div className="fluid container">
|
<div className="fluid container">
|
||||||
<h2>
|
<h2>
|
||||||
About
|
About
|
||||||
|
|
@ -62,8 +62,6 @@ export default () => (
|
||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="fluid container" />
|
|
||||||
|
|
||||||
<div className="fluid container">
|
<div className="fluid container">
|
||||||
<h3>
|
<h3>
|
||||||
<a rel="noopener noreferrer" href="https://www.curseforge.com/minecraft/mc-mods/geolosys" target="_blank">
|
<a rel="noopener noreferrer" href="https://www.curseforge.com/minecraft/mc-mods/geolosys" target="_blank">
|
||||||
|
|
@ -72,5 +70,52 @@ export default () => (
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="fluid container">
|
||||||
|
<h3>Ore Generation Changed by Geolosys</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The default configuration for Ore Generation has changed with Geolosys v3.0.0.
|
||||||
|
Many deposit configs remain unchanged, but a few have changed:
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Lapis is now found in Deserts of all types (hills and mutated)</li>
|
||||||
|
<li>Beryl is now found in Extreme Hills of all types, and Ice Mountains</li>
|
||||||
|
<li>Limonite is now found on Mushroom Islands and in Swamplands</li>
|
||||||
|
<li>
|
||||||
|
Azurite and Malachite now generate together, as in real life. Azurite generates at a
|
||||||
|
60% chance, where Malachite generates at a 40% chance.
|
||||||
|
</li>
|
||||||
|
<li>Cassiterite is now found in ocean biomes (may be changed)</li>
|
||||||
|
<li>
|
||||||
|
Teallite is now found in ocean biomes (may be changed) and has a small chance to
|
||||||
|
generate with Beryl, as in real life.
|
||||||
|
</li>
|
||||||
|
<li>Galena is now found in flat biomes, such as Plains and Ice Plains</li>
|
||||||
|
<li>Bauxite is now found in Jungle biomes and Savannah biomes</li>
|
||||||
|
<li>Autunite is now found in Extreme Hills of all types, and Ice Mountains</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
All of these changes are reflected in the Field Manual in versions for 1.15.2 and below.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<div className="fluid container">
|
||||||
|
<h3>Pluton Density</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
New to Version 3.0.0c and above, plutons can now have a density.
|
||||||
|
This density describes how much of the pluton is/are the defined ore block/blocks.
|
||||||
|
For example, a density of 1.0 means the pluton will generate exactly how it used to.
|
||||||
|
A density of 0.75 means that the pluton will take on the same shape,
|
||||||
|
but only 75% of the blocks within that shape will actually be the ore block(s) --
|
||||||
|
the rest will remain whatever block they were initially. This change is reflected in
|
||||||
|
the docs for CraftTweaker and the JSON config where applicable, and is also a part of
|
||||||
|
the datapack API built into Minecraft.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { faLink, faBook } from '@fortawesome/free-solid-svg-icons';
|
import { faLink } from '@fortawesome/free-solid-svg-icons';
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
<div className="pb-5">
|
<div className="pb-5">
|
||||||
|
|
|
||||||
273
src/components/mods/GeolosysComponents/Datapacks.jsx
Normal file
273
src/components/mods/GeolosysComponents/Datapacks.jsx
Normal file
|
|
@ -0,0 +1,273 @@
|
||||||
|
import React from 'react';
|
||||||
|
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
||||||
|
import { nord } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
||||||
|
|
||||||
|
export default () => (
|
||||||
|
<div className="pb-5">
|
||||||
|
<div className="fluid container pb-5">
|
||||||
|
<h2>Geolosys Datapacks (1.16 and Up)</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Starting as of Geolosys's port to Minecraft 1.16, all plutons in
|
||||||
|
Geolosys are now registered using Datapacks! Datapacks are a fantastic,
|
||||||
|
flexible way of adding or modifying content in Geolosys your heart's
|
||||||
|
desires!
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
On this page you will find documentation and tutorials on how to create
|
||||||
|
your own datapack in Geolosys for both modifying/removing default plutons,
|
||||||
|
as well as adding your very own! This tutorial will
|
||||||
|
{' '}
|
||||||
|
<i>not</i>
|
||||||
|
{' '}
|
||||||
|
teach you datapack fundamentals, nor will it teach you JSON -- you should be
|
||||||
|
able to learn that using resources such as
|
||||||
|
{' '}
|
||||||
|
<a
|
||||||
|
href="https://minecraft.fandom.com/wiki/Data_Pack"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
this one
|
||||||
|
</a>
|
||||||
|
|
||||||
|
. It will, however, teach you how to expand upon vanilla datapack knowledge
|
||||||
|
to manipulate Plutons 😊
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
For pack creators looking to have datapacks apply to any world that is created,
|
||||||
|
I suggest taking a look at
|
||||||
|
{' '}
|
||||||
|
<a
|
||||||
|
href="https://www.curseforge.com/minecraft/mc-mods/drp-global-datapack"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
this mod!
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="fluid container pb-5">
|
||||||
|
<h2>Geolosys Built-In Pluton Locations</h2>
|
||||||
|
<p>
|
||||||
|
In order to override or disable a pre-existing, built-in pluton that
|
||||||
|
comes with Geolosys by default, you'll need to know the exact
|
||||||
|
path of that
|
||||||
|
{' '}
|
||||||
|
<code>.json</code>
|
||||||
|
{' '}
|
||||||
|
file in order to successfully overwrite it. To help with this, a list
|
||||||
|
of all of Geoloys's built-in plutons can be found below:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<b>Ores: </b>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/ancient_debris_nether.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/bituminous_coal.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/gold_nether.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/malachite_and_azurite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/anthracitic_coal.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/cassiterite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/hematite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/platinum.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/assorted_quartz.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/cinnabar.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/kimberlite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/sphalerite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/autunite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/coal.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/lapis.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/teallite_and_emerald.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/bauxite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/galena.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/lignite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/beryl.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/gold.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/ore/limonite.json</code></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<b>Stones: </b>
|
||||||
|
<ul>
|
||||||
|
<li><code>/data/geolosys/deposits/stone/andesite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/stone/diorite.json</code></li>
|
||||||
|
<li><code>/data/geolosys/deposits/stone/granite.json</code></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<b>Other: </b>
|
||||||
|
<ul>
|
||||||
|
<li><code>/data/geolosys/deposits/other/peat.json</code></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="fluid container pb-5">
|
||||||
|
<h2>Disabling Default Plutons</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
First thing's first, most people will want to learn how to disable a
|
||||||
|
pluton added by Geolosys. This is easy enough to do, but it is important to
|
||||||
|
understand that in order to override a preexisting pluton you must replace the
|
||||||
|
file at the
|
||||||
|
{' '}
|
||||||
|
<i>exact</i>
|
||||||
|
{' '}
|
||||||
|
path that the original file is in, but in
|
||||||
|
{' '}
|
||||||
|
<i>your</i>
|
||||||
|
{' '}
|
||||||
|
datapack. For example, to override/disable a Sphalerite pluton you must place your new
|
||||||
|
{' '}
|
||||||
|
<code>.json</code>
|
||||||
|
{' '}
|
||||||
|
file in your datapack located in
|
||||||
|
{' '}
|
||||||
|
<code>data/geolosys/deposits/ore/</code>
|
||||||
|
{' '}
|
||||||
|
and named
|
||||||
|
{' '}
|
||||||
|
<code>sphalerite.json</code>
|
||||||
|
. Afterwards, all you must do is put an empty JSON object inside!
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="fluid container pb-5">
|
||||||
|
<h2>Modifying Default Plutons</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Similar to the instructions for removing them, follow every step but after
|
||||||
|
creating your empty JSON object, you will need to populate that JSON object.
|
||||||
|
I suggest starting with the original JSON object
|
||||||
|
{' '}
|
||||||
|
<a
|
||||||
|
href="http://oitsjustjo.se/u/iuwYjZ3fJ"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
(which you can find here)
|
||||||
|
</a>
|
||||||
|
{' '}
|
||||||
|
and then modifying it from there. If you wish to start from scratch, follow the
|
||||||
|
next section's tutorial on creating your own custom pluton!
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="fluid container pb-5">
|
||||||
|
<h2>Creating Custom Plutons</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Creating a custom pluton is a bit easier, but also harder, than locating
|
||||||
|
and disabling/overriding an existing pluton. There are a few different
|
||||||
|
types of pluton you can make, so the below
|
||||||
|
{' '}
|
||||||
|
<code>JSON5</code>
|
||||||
|
{' '}
|
||||||
|
object should well explain how to accomplish the creation of a new pluton entirely.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3><code>geolosys:ore_deposit</code></h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This would be used for an ore-deposit-like pluton (with a sample block, matchers, etc.).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<SyntaxHighlighter language="json5" style={nord}>
|
||||||
|
{`
|
||||||
|
{ /* Notes / Comments ↓ */
|
||||||
|
"type": "geolosys:ore_deposit", /* This is always the same for ore plutons */
|
||||||
|
"config": {
|
||||||
|
"block": "minecraft:ice", /* The ore block to generate */
|
||||||
|
"sample": "minecraft:ice", /* The surface sample to generate with the pluton */
|
||||||
|
"type": "sparse", /* Can be SPARSE, DENSE, DIKE, LAYER or TOP_LAYER */
|
||||||
|
"yMin": 1, /* The Minimum Y-level the deposit can gen */
|
||||||
|
"yMax": 255, /* The Maximum Y-level the deposit can gen */
|
||||||
|
"chance": 1, /* Out of all chances, cumulatively that the deposits gens */
|
||||||
|
"size": 24, /* The size of pluton - # blocks dependent on type of dep */
|
||||||
|
"dimensions": { /* Control over which dimensions the pluton can gen */
|
||||||
|
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
|
||||||
|
"filter": [ /* The dimensions you wish to filter */
|
||||||
|
"the_nether",
|
||||||
|
"the_end"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"biomes" :[ /* OPTIONAL: which biomes this can/can't gen in */
|
||||||
|
"minecraft:plains"
|
||||||
|
],
|
||||||
|
"isWhitelist": true, /* OPTIONAL (Req'd if biomes key is present) */
|
||||||
|
"density": 0.75 /* Float w/ Range 0.0 - 1.0. Density of ores in pluton */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`}
|
||||||
|
</SyntaxHighlighter>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<b>NOTE:</b>
|
||||||
|
{' '}
|
||||||
|
It is possible to have more than one Ore Block, Sample Block, or both!
|
||||||
|
If you decide to have multiple sample blocks or multiple ore blocks,
|
||||||
|
you must use the syntax below for both samples and blocks, not just one.
|
||||||
|
That is, if you decide you want 2+ ore blocks but only one sample (or vice-versa),
|
||||||
|
you must use the below syntax and just put your one sample/ore (just as is shown in
|
||||||
|
the JSON sample below) alone in the array with a chance of 100.
|
||||||
|
</p>
|
||||||
|
<SyntaxHighlighter language="json5" style={nord}>
|
||||||
|
{`
|
||||||
|
{
|
||||||
|
.
|
||||||
|
.
|
||||||
|
.
|
||||||
|
"blocks": [{ /* The block(s) that will generate in the pluton */
|
||||||
|
"block": "minecraft:dirt", /* NOTE: only 1 minimum block is required. Chances MUST */
|
||||||
|
"chance": 90 /* Add up to equal 100 */
|
||||||
|
}, {
|
||||||
|
"block": "minecraft:diamond_ore",
|
||||||
|
"chance": 10
|
||||||
|
}],
|
||||||
|
"samples": [{
|
||||||
|
"block": "minecraft:grass",
|
||||||
|
"chance": 100
|
||||||
|
}],
|
||||||
|
.
|
||||||
|
.
|
||||||
|
.
|
||||||
|
}
|
||||||
|
`}
|
||||||
|
</SyntaxHighlighter>
|
||||||
|
|
||||||
|
<h3><code>geolosys:stone_deposit</code></h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This would be used for an stone-like pluton. No sample block,
|
||||||
|
no choice in matchers, just another stone type.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<SyntaxHighlighter language="json5" style={nord}>
|
||||||
|
{`
|
||||||
|
{ /* Notes / Comments ↓ */
|
||||||
|
"type": "geolosys:stone_deposit", /* This is always the same for all stone plutons */
|
||||||
|
"config": {
|
||||||
|
"block": "minecraft:ice", /* The stone block to generate */
|
||||||
|
"size": 24, /* The size of pluton, in this case max-radius */
|
||||||
|
"chance": 1, /* Out of all chances, cumulatively that the deposits gens */
|
||||||
|
"yMin": 1, /* The Minimum Y-level the deposit can gen */
|
||||||
|
"yMax": 255, /* The Maximum Y-level the deposit can gen */
|
||||||
|
"dimensions": { /* Control over which dimensions the pluton can gen */
|
||||||
|
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
|
||||||
|
"filter": [ /* The dimensions you wish to filter */
|
||||||
|
"the_nether",
|
||||||
|
"the_end"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`}
|
||||||
|
|
||||||
|
</SyntaxHighlighter>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
import React from 'react';
|
|
||||||
|
|
||||||
export default () => (
|
|
||||||
<div className="pb-5">
|
|
||||||
<div className="fluid container">
|
|
||||||
<h2>Ore Generation - What's Changed?</h2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The default configuration for Ore Generation has changed with Geolosys v3.0.0.
|
|
||||||
Many deposit configs remain unchanged, but a few have changed:
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>Lapis is now found in Deserts of all types (hills and mutated)</li>
|
|
||||||
<li>Beryl is now found in Extreme Hills of all types, and Ice Mountains</li>
|
|
||||||
<li>Limonite is now found on Mushroom Islands and in Swamplands</li>
|
|
||||||
<li>
|
|
||||||
Azurite and Malachite now generate together, as in real life. Azurite generates at a
|
|
||||||
60% chance, where Malachite generates at a 40% chance.
|
|
||||||
</li>
|
|
||||||
<li>Cassiterite is now found in ocean biomes (may be changed)</li>
|
|
||||||
<li>
|
|
||||||
Teallite is now found in ocean biomes (may be changed) and has a small chance to
|
|
||||||
generate with Beryl, as in real life.
|
|
||||||
</li>
|
|
||||||
<li>Galena is now found in flat biomes, such as Plains and Ice Plains</li>
|
|
||||||
<li>Bauxite is now found in Jungle biomes and Savannah biomes</li>
|
|
||||||
<li>Autunite is now found in Extreme Hills of all types, and Ice Mountains</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
All of these changes are reflected in the Field Manual in versions for 1.15.2 and below.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="fluid container">
|
|
||||||
<h3>Pluton Density</h3>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
New to Version 3.0.0c and above, plutons can now have a density.
|
|
||||||
This density describes how much of the pluton is/are the defined ore block/blocks.
|
|
||||||
For example, a density of 1.0 means the pluton will generate exactly how it used to.
|
|
||||||
A density of 0.75 means that the pluton will take on the same shape,
|
|
||||||
but only 75% of the blocks within that shape will actually be the ore block(s) --
|
|
||||||
the rest will remain whatever block they were initially. This change is reflected in
|
|
||||||
the docs for CraftTweaker and the JSON config where applicable, and is also a part of
|
|
||||||
the datapack API built into Minecraft.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
|
|
@ -79,14 +79,6 @@
|
||||||
background-color: red;
|
background-color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.nav-link.nav-btn {
|
|
||||||
appearance: none;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
-moz-appearance: none;
|
|
||||||
background-color: transparent;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-item.active {
|
.dropdown-item.active {
|
||||||
color: #1e2125;
|
color: #1e2125;
|
||||||
background-color: #c2c3c4;
|
background-color: #c2c3c4;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue