Update site, add new dp format

This commit is contained in:
oitsjustjose 2021-12-09 12:01:50 -06:00
commit 0882a5d742
11 changed files with 610 additions and 40 deletions

View file

@ -1,9 +1,9 @@
import React from 'react';
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
import { nord } from 'react-syntax-highlighter/dist/esm/styles/prism';
import OreDeposit from './DatapackTemplates/OreDeposit';
import OreDepositMulti from './DatapackTemplates/OreDepositMulti';
import StoneDeposit from './DatapackTemplates/StoneDeposit';
import OreDeposit from './Templates/OreDeposit';
import OreDepositMulti from './Templates/OreDepositMulti';
import StoneDeposit from './Templates/StoneDeposit';
export default () => (
<div className="pb-5">

View file

@ -0,0 +1,217 @@
import React from 'react';
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
import { nord } from 'react-syntax-highlighter/dist/esm/styles/prism';
import Version6Dp from './Templates/Version6Dp';
import Version7Dp from './Templates/Version7Dp';
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&apos;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&apos;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="noopener 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="noopener 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&apos;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&apos;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&apos;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="https://github.com/oitsjustjose/Geolosys/tree/1.16/src/main/resources/data/geolosys/deposits"
target="_blank"
rel="noopener noreferrer"
>
(which you can find here)
</a>
{' '}
and then modifying it from there. If you wish to start from scratch, follow the
next section&apos;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>
<div className="accordion" id="version-acc">
<div className="accordion-item">
<h2 className="accordion-header" id="acc-6.x">
<button className="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Geolosys 6.x (1.16)
</button>
</h2>
<div id="collapseOne" className="accordion-collapse collapse show" aria-labelledby="acc-6.x" data-bs-parent="#version-acc">
<div className="accordion-body">
{Object.entries(Version6Dp).map(([title, json5]) => (
<div>
<h3><code>{title}</code></h3>
<SyntaxHighlighter language="json5" style={nord}>
{json5}
</SyntaxHighlighter>
</div>
))}
</div>
</div>
</div>
<div className="accordion-item">
<h2 className="accordion-header" id="acc-7.x">
<button className="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-controls="collapseTwo">
Geolosys 7.x (1.18)
</button>
</h2>
<div id="collapseTwo" className="accordion-collapse collapse" aria-labelledby="acc-7.x" data-bs-parent="#version-acc">
<div className="accordion-body">
{Object.entries(Version7Dp).map(([title, json5]) => (
<div>
<h3><code>{title}</code></h3>
<SyntaxHighlighter language="json5" style={nord}>
{json5}
</SyntaxHighlighter>
</div>
))}
</div>
</div>
</div>
</div>
</div>
</div>
);

View file

@ -0,0 +1,154 @@
/* eslint-disable camelcase */
const deposit_dense = `
{ /* Notes / Comments ↓ */
"type": "geolosys:deposit_dense", /* This tells Geolosys how to generate this pluton */
"config": {
"yMin": 5, /* The Minimum Y-level the deposit can gen */
"yMax": 30, /* The Maximum Y-level the deposit can gen */
"size": 40, /* The Maximum dx/dy/dz from the center of the pluton */
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "overworld" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:the_void" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:stone" ] /* The blocks you want this deposit to be able to replace */
"blocks": [{ /* List of blocks to use within this pluton. null = skip */
"block": "geolosys:gold_ore",
"chance": 1.0
}],
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:ancient_debris_ore_sample",
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}`;
const deposit_dike = `
{ /* Notes / Comments ↓ */
"type": "geolosys:deposit_dike", /* This tells Geolosys how to generate this pluton */
"config": {
"yMin": 8, /* The Minimum Y-level the deposit can gen */
"yMax": 22, /* The Maximum Y-level the deposit can gen */
"baseRadius": 3, /* The Base radius of the deposit when the dike is formed */
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "the_nether" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:nether_wastes" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:netherrack" ] /* The blocks you want this deposit to be able to replace */
"blocks": [{ /* List of blocks to use within this pluton. null = skip */
"block": "geolosys:ancient_debris_ore",
"chance": 0.6
}, {
"block": null,
"chance": 0.4
}],
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:ancient_debris_ore_sample",
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}`;
const deposit_sparse = `
{ /* Notes / Comments ↓ */
"type": "geolosys:deposit_sparse", /* This tells Geolosys how to generate this pluton */
"config": {
"yMin": 16, /* The Minimum Y-level the deposit can gen */
"yMax": 50, /* The Maximum Y-level the deposit can gen */
"size": 32, /* Tweaks size similar to a Dense deposit */
"spread": 32, /* Gens a dense deposit then adds rnad(spread) to each block*/
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "overworld" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:the_void" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:stone" ] /* The blocks you want this deposit to be able to replace */
"blocks": [{ /* List of blocks to use within this pluton. null = skip */
"block": "geolosys:galena_ore",
"chance": 1.0
}],
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:galena_ore_sample",
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}`;
const deposit_layer = `
{ /* Notes / Comments ↓ */
"type": "geolosys:deposit_layer", /* This tells Geolosys how to generate this pluton */
"config": {
"yMin": 40, /* The Minimum Y-level the deposit can gen */
"yMax": 70, /* The Maximum Y-level the deposit can gen */
"radius": 3, /* The radius of the layer (noise is added) */
"depth": 4, /* The height of the layer deposit */
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "overworld" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:the_void" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:stone" ] /* The blocks you want this deposit to be able to replace */
"blocks": [{ /* List of blocks to use within this pluton. null = skip */
"block": "geolosys:lignite_coal_ore",
"chance": 1.0
}],
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:lignite_coal_ore_sample",
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}`;
const deposit_top_layer = `
{ /* Notes / Comments ↓ */
"type": "geolosys:top_deposit_layer", /* This tells Geolosys how to generate this pluton */
"config": { /* YMIN/MAX IS NOT PERMITTED BC. USE LAYER IF YOU NEED IT */
"radius": 4, /* The radius of the layer (noise is added) */
"depth": 4, /* The height of the layer deposit */
"chanceForSample": 0.25, /* The chance for a sample block to be generated */
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "overworld" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:the_void" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:dirt" ] /* The blocks you want this deposit to be able to replace */
"blocks": [{ /* List of blocks to use within this pluton. null = skip */
"block": "geolosys:peat",
"chance": 1.0
}],
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:rhododendron",
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}
`;
export default {
deposit_dense,
deposit_dike,
deposit_sparse,
deposit_layer,
deposit_top_layer,
};

View file

@ -0,0 +1,184 @@
/* eslint-disable camelcase */
const deposit_dense = `
{ /* Notes / Comments ↓ */
"type": "geolosys:deposit_dense", /* This tells Geolosys how to generate this pluton */
"config": {
"yMin": 5, /* The Minimum Y-level the deposit can gen */
"yMax": 30, /* The Maximum Y-level the deposit can gen */
"size": 40, /* The Maximum dx/dy/dz from the center of the pluton */
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "overworld" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:the_void" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:stone" ] /* The blocks you want this deposit to be able to replace */
"blocks": { /* List of blocks to use within this pluton. null = skip */
"default": [{ /* Blocks now MUST have a "default" */
"block": "geolosys:gold_ore",
"chance": 1.0
}],
"minecraft:deepslate": [{ /* This says "if you replace deepslate use this ore instead */
"block": "geolosys:deepslate_gold_ore",
"chance": 1.0
}]
}
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:ancient_debris_ore_sample", /* Samples format are unchanged from Geolosys 6 */
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}`;
const deposit_dike = `
{ /* Notes / Comments ↓ */
"type": "geolosys:deposit_dike", /* This tells Geolosys how to generate this pluton */
"config": {
"yMin": 8, /* The Minimum Y-level the deposit can gen */
"yMax": 22, /* The Maximum Y-level the deposit can gen */
"baseRadius": 3, /* The Base radius of the deposit when the dike is formed */
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "the_nether" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:nether_wastes" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:netherrack" ] /* The blocks you want this deposit to be able to replace */
"blocks": { /* List of blocks to use within this pluton. null = skip */
"default": [{ /* Blocks now MUST have a "default" */
"block": "geolosys:gold_ore",
"chance": 0.9
}, {
"block": null,
"chance": 0.1
}],
"minecraft:netherrack": [{ /* This says "if you replace lava use this ore instead */
"block": "geolosys:nether_gold_ore",
"chance": 1.0
}]
},
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:gold_ore_sample", /* Samples format are unchanged from Geolosys 6 */
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}`;
const deposit_sparse = `
{ /* Notes / Comments ↓ */
"type": "geolosys:deposit_sparse", /* This tells Geolosys how to generate this pluton */
"config": {
"yMin": 16, /* The Minimum Y-level the deposit can gen */
"yMax": 50, /* The Maximum Y-level the deposit can gen */
"size": 32, /* Tweaks size similar to a Dense deposit */
"spread": 32, /* Gens a dense deposit then adds rnad(spread) to each block*/
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "overworld" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:the_void" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:stone" ] /* The blocks you want this deposit to be able to replace */
"blocks": { /* List of blocks to use within this pluton. null = skip */
"default": [{ /* Blocks now MUST have a "default" */
"block": "geolosys:galena_ore",
"chance": 1.0
}],
"minecraft:deepslate": [{ /* This says "if you replace deepslate use this ore instead */
"block": "geolosys:deepslate_galena_ore",
"chance": 1.0
}]
},
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:galena_ore_sample", /* Samples format are unchanged from Geolosys 6 */
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}`;
const deposit_layer = `
{ /* Notes / Comments ↓ */
"type": "geolosys:deposit_layer", /* This tells Geolosys how to generate this pluton */
"config": {
"yMin": 40, /* The Minimum Y-level the deposit can gen */
"yMax": 70, /* The Maximum Y-level the deposit can gen */
"radius": 3, /* The radius of the layer (noise is added) */
"depth": 4, /* The height of the layer deposit */
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "overworld" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:the_void" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:stone" ] /* The blocks you want this deposit to be able to replace */
"blocks": { /* List of blocks to use within this pluton. null = skip */
"default": [{ /* Blocks now MUST have a "default" */
"block": "geolosys:lignite_coal_ore",
"chance": 1.0
}],
"minecraft:deepslate": [{ /* This says "if you replace deepslate use this ore instead */
"block": "geolosys:deepslate_lignite_coal_ore",
"chance": 1.0
}]
},
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:lignite_coal_ore_sample", /* Samples format are unchanged from Geolosys 6 */
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}`;
const deposit_top_layer = `
{ /* Notes / Comments ↓ */
"type": "geolosys:top_deposit_layer", /* This tells Geolosys how to generate this pluton */
"config": { /* YMIN/MAX IS NOT PERMITTED BC. USE LAYER IF YOU NEED IT */
"radius": 4, /* The radius of the layer (noise is added) */
"depth": 4, /* The height of the layer deposit */
"chanceForSample": 0.25, /* The chance for a sample block to be generated */
"dimensions": { /* A method to filter which dimension to gen in */
"isBlacklist": false, /* Is the filter a blacklist or whitelist? */
"filter": [ "overworld" ] /* The dimensions you wish to filter */
},
"biomes": { /* OPTIONAL: A method to filter which biomes to gen in */
"isBlacklist": true, /* Is the filter a blacklist or whitelist? */
"filter": [ "minecraft:the_void" ] /* The biomes you wish to filter */
}
"blockStateMatchers": [ "minecraft:dirt" ] /* The blocks you want this deposit to be able to replace */
"blocks": { /* List of blocks to use within this pluton. null = skip */
"default": [{ /* Blocks now MUST have a "default" */
"block": "geolosys:peat",
"chance": 1.0
}],
"minecraft:dirt": [{ /* This says "if you replace dirt use this ore instead */
"block": "geolosys:peat",
"chance": 1.0
}]
},
"samples": [{ /* List of samples to use within this pluton. null = skip */
"block": "geolosys:rhododendron", /* Samples format are unchanged from Geolosys 6 */
"chance": 1.0
}],
"generationWeight": 1 /* The weight for this specific pluton to generate */
}
}
`;
export default {
deposit_dense,
deposit_dike,
deposit_sparse,
deposit_layer,
deposit_top_layer,
};