Work on improved documentation
This commit is contained in:
parent
2ed62950ed
commit
572ee12976
6 changed files with 221 additions and 53 deletions
33
package-lock.json
generated
33
package-lock.json
generated
|
|
@ -3152,6 +3152,15 @@
|
|||
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
|
||||
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA=="
|
||||
},
|
||||
"bindings": {
|
||||
"version": "1.5.0",
|
||||
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
|
||||
"integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"file-uri-to-path": "1.0.0"
|
||||
}
|
||||
},
|
||||
"bluebird": {
|
||||
"version": "3.7.2",
|
||||
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
|
||||
|
|
@ -5892,6 +5901,12 @@
|
|||
"schema-utils": "^2.5.0"
|
||||
}
|
||||
},
|
||||
"file-uri-to-path": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
|
||||
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
|
||||
"optional": true
|
||||
},
|
||||
"filesize": {
|
||||
"version": "6.0.1",
|
||||
"resolved": "https://registry.npmjs.org/filesize/-/filesize-6.0.1.tgz",
|
||||
|
|
@ -7720,7 +7735,11 @@
|
|||
"version": "1.2.13",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz",
|
||||
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
|
||||
"optional": true
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"bindings": "^1.5.0",
|
||||
"nan": "^2.12.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -8831,6 +8850,12 @@
|
|||
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",
|
||||
"integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA=="
|
||||
},
|
||||
"nan": {
|
||||
"version": "2.14.2",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.14.2.tgz",
|
||||
"integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==",
|
||||
"optional": true
|
||||
},
|
||||
"nanomatch": {
|
||||
"version": "1.2.13",
|
||||
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
|
||||
|
|
@ -13812,7 +13837,11 @@
|
|||
"version": "1.2.13",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz",
|
||||
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
|
||||
"optional": true
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"bindings": "^1.5.0",
|
||||
"nan": "^2.12.1"
|
||||
}
|
||||
},
|
||||
"glob-parent": {
|
||||
"version": "3.1.0",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import { CSSTransition } from 'react-transition-group';
|
||||
import About from './GeolosysComponents/About';
|
||||
import Deposits from './GeolosysComponents/Deposits';
|
||||
import Plutons from './GeolosysComponents/Plutons';
|
||||
import Datapacks from './GeolosysComponents/Datapacks';
|
||||
import Config from './GeolosysComponents/Config';
|
||||
import CraftTweaker from './GeolosysComponents/CraftTweaker';
|
||||
|
|
@ -73,11 +73,11 @@ export default () => {
|
|||
<ul className="dropdown-menu" aria-labelledby="geolosysDocsDD">
|
||||
<li>
|
||||
<a
|
||||
className={`dropdown-item ${component === 'deposits' ? 'active' : ''}`}
|
||||
onClick={() => setComponent('deposits')}
|
||||
href="#deposits"
|
||||
className={`dropdown-item ${component === 'plutons' ? 'active' : ''}`}
|
||||
onClick={() => setComponent('plutons')}
|
||||
href="#plutons"
|
||||
>
|
||||
Deposits
|
||||
Plutons
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
|
|
@ -116,7 +116,7 @@ export default () => {
|
|||
</div>
|
||||
|
||||
{component === 'about' && (<About />)}
|
||||
{component === 'deposits' && (<Deposits />)}
|
||||
{component === 'plutons' && (<Plutons />)}
|
||||
{component === 'datapacks' && (<Datapacks />)}
|
||||
{component === 'config' && (<Config />)}
|
||||
{component === 'crafttweaker' && (<CraftTweaker />)}
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
export default `{ /* Notes / Comments ↓ */
|
||||
"type": "geolosys:ore_deposit", /* This is always the same for ore plutons */
|
||||
"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 */
|
||||
"block": "minecraft:diamond_ore", /* The ore block to generate */
|
||||
"sample": "minecraft:poppy", /* 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 */
|
||||
"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 */
|
||||
"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 */
|
||||
}
|
||||
}`;
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@ export default `{
|
|||
.
|
||||
.
|
||||
.
|
||||
"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 */
|
||||
"blocks": [{ /* The block(s) that will generate in the pluton */
|
||||
"block": "minecraft:emerald_ore", /* NOTE: only 1 minimum block is required. Chances MUST */
|
||||
"chance": 90 /* Added up, must all to equal 100 */
|
||||
}, {
|
||||
"block": "minecraft:diamond_ore",
|
||||
"chance": 10
|
||||
}],
|
||||
"samples": [{
|
||||
"block": "minecraft:grass",
|
||||
"block": "minecraft:poppy",
|
||||
"chance": 100
|
||||
}],
|
||||
.
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
import React from 'react';
|
||||
|
||||
export default () => (
|
||||
<div className="pb-5">
|
||||
<div className="fluid container pb-5">
|
||||
<h1>Plutons</h1>
|
||||
|
||||
<p>
|
||||
There are many specificities to plutons and how they're implemented
|
||||
in Geolosys, and knowing them could be helpful while creating your datapack,
|
||||
{' '}
|
||||
<code>geolosys.json</code>
|
||||
, or CraftTweaker Script.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h2>Types of Plutons</h2>
|
||||
|
||||
<p>
|
||||
In the Geolosys configuration tool and in the Datapack, you'll see mention
|
||||
of Ore- and Stone-type plutons. There are some key differences between the two,
|
||||
which are outlined below:
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
166
src/components/mods/GeolosysComponents/Plutons.jsx
Normal file
166
src/components/mods/GeolosysComponents/Plutons.jsx
Normal file
|
|
@ -0,0 +1,166 @@
|
|||
import React from 'react';
|
||||
|
||||
export default () => (
|
||||
<div className="pb-5">
|
||||
<div className="fluid container pb-5">
|
||||
<h1>Plutons</h1>
|
||||
|
||||
<p>
|
||||
There are many specificities to plutons and how they're implemented
|
||||
in Geolosys, and knowing them could be helpful while creating your datapack,
|
||||
{' '}
|
||||
<code>geolosys.json</code>
|
||||
, or CraftTweaker Script.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="fluid container pb-3">
|
||||
<h2>Types of Plutons</h2>
|
||||
|
||||
<p>
|
||||
In the Geolosys configuration tool and in the Datapack, you'll see mention
|
||||
of Ore- and Stone-type plutons. There are some key differences between the two,
|
||||
which are outlined below:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="fluid container pb-3">
|
||||
<h3>All Pluton Types</h3>
|
||||
|
||||
<p>
|
||||
All pluton types have the following attributes:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<code>yMin/yMax</code>
|
||||
: this is a range where the pluton can be found. Any
|
||||
Y-Level above sea level will generate only in hills/mountains where the pluton's
|
||||
block matchers are located. These values can range from 0 to worldheight.
|
||||
</li>
|
||||
<li>
|
||||
<code>size</code>
|
||||
: The size variable is dependent on the type of pluton. For example, a dike pluton
|
||||
uses the derivatives of the Size variable to determine the starting radius of the dike.
|
||||
</li>
|
||||
<li>
|
||||
<code>chance</code>
|
||||
: chance is always relative to the sum of all chances - that is to say, if you have
|
||||
three plutons X, Y and Z with chances 3, 5 and 10 respectively, then X will have a 3/18
|
||||
chance of generating, Y will have a 5/18 chance and Z will have a 10/18 chance -- see the
|
||||
below graphic if that helps:
|
||||
|
||||
<img
|
||||
src="/img/geolosys/generation.png"
|
||||
className="d-block m-auto w-75 py-3"
|
||||
alt=""
|
||||
/>
|
||||
</li>
|
||||
<li>
|
||||
<code>dimensions</code>
|
||||
: a way to choose which dimensions a pluton can generate in. For your
|
||||
convenience you can choose to treat the list of dimensions as a whitelist
|
||||
{' '}
|
||||
<i>or</i>
|
||||
{' '}
|
||||
a blacklist, depending on which is easier!
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className="fluid container pb-3">
|
||||
<h3>Ore Plutons</h3>
|
||||
<p>
|
||||
Ore plutons have a different possible attributes over all plutons in general.
|
||||
To start, ore plutons all have sample blocks -- these are blocks on that
|
||||
generate on the surface of the world above a pluton to indicate that a pluton
|
||||
is in that area. Secondly, ore plutons can replace any block you specify - grass,
|
||||
stone, air, gravel? No problem! Lastly, ore plutons can generate in different shapes,
|
||||
referred to as "types" in the config. These types can be:
|
||||
</p>
|
||||
|
||||
<div className="pb-1 w-100 d-block m-auto">
|
||||
<div className="d-flex justify-content-around align-items-center">
|
||||
<div className="w-100">
|
||||
<h4>Dense</h4>
|
||||
<p>
|
||||
This type of pluton generates in a spheroid structure:
|
||||
</p>
|
||||
</div>
|
||||
<img
|
||||
src="/img/geolosys/dense.png"
|
||||
style={{ borderRadius: '8px', width: '128px' }}
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="pb-1 w-100 d-block m-auto">
|
||||
<div className="d-flex justify-content-around align-items-center">
|
||||
<div className="w-100">
|
||||
<h4>Dike</h4>
|
||||
<p>
|
||||
This type of pluton generates as a pillar/column underground:
|
||||
</p>
|
||||
</div>
|
||||
<img
|
||||
src="/img/geolosys/dike.png"
|
||||
style={{ borderRadius: '8px', width: '128px' }}
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="pb-1 w-100 d-block m-auto">
|
||||
<div className="d-flex justify-content-around align-items-center">
|
||||
<div className="w-100">
|
||||
<h4>Sparse</h4>
|
||||
<p>
|
||||
This type of pluton spans an entire chunk, filling it with single
|
||||
blocks here and there:
|
||||
</p>
|
||||
</div>
|
||||
<img
|
||||
src="/img/geolosys/sparse.png"
|
||||
style={{ borderRadius: '8px', width: '128px' }}
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="pb-1 w-100 d-block m-auto">
|
||||
<div className="d-flex justify-content-around align-items-center">
|
||||
<div className="w-100">
|
||||
<h4>Layer</h4>
|
||||
<p>
|
||||
This type of pluton generates in layers (based on the size attribute):
|
||||
</p>
|
||||
</div>
|
||||
<img
|
||||
src="/img/geolosys/layer.png"
|
||||
style={{ borderRadius: '8px', width: '128px' }}
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="pb-1 w-100 d-block m-auto">
|
||||
<h4>Top Layer</h4>
|
||||
<p>
|
||||
This type of pluton generates in layers but on the surface instead of underground.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h3>Stone Plutons</h3>
|
||||
<p>
|
||||
Stone Plutons are essentially identical to Ore Plutons aside from the three things that
|
||||
were specified; stone plutons cannot have samples, specific block replacement matches or
|
||||
types. Stone plutons have
|
||||
{' '}
|
||||
<i>no</i>
|
||||
{' '}
|
||||
samples, take on a Dense formation and will only replace stone blocks, which cannot be
|
||||
configured or changed. Stone plutons are meant to be very basic methods of generating
|
||||
large amounts of stone of whatever type you'd like!
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
Loading…
Reference in a new issue