Migrate docs over to Wiki :)
This commit is contained in:
parent
bdf46bb4d4
commit
6058a0f675
14 changed files with 840 additions and 386 deletions
|
|
@ -2,25 +2,22 @@ import React from 'react';
|
|||
import '../css/home.css';
|
||||
import { CSSTransition } from 'react-transition-group';
|
||||
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<CSSTransition classNames="react-router" appear in timeout={300}>
|
||||
<div className="d-flex h-100 text-center text-white" id="masthead">
|
||||
<div className="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column align-items-center justify-content-center">
|
||||
<main>
|
||||
<h1 className="up arrow">
|
||||
^
|
||||
</h1>
|
||||
<h1>
|
||||
oitsjustjose's Mod Wiki
|
||||
</h1>
|
||||
<h5>
|
||||
Made with Bootstrap 5 and React
|
||||
</h5>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</CSSTransition>
|
||||
);
|
||||
};
|
||||
export default () => (
|
||||
<CSSTransition classNames="react-router" appear in timeout={300}>
|
||||
<div className="d-flex h-100 text-center text-white" id="masthead">
|
||||
<div className="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column align-items-center justify-content-center">
|
||||
<main>
|
||||
<h1 className="up arrow">
|
||||
^
|
||||
</h1>
|
||||
<h1>
|
||||
oitsjustjose's Mod Wiki
|
||||
</h1>
|
||||
<h5>
|
||||
Brief guides for each and every mod to get you started!
|
||||
</h5>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</CSSTransition>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,128 +1,101 @@
|
|||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faLink, faBook } from '@fortawesome/free-solid-svg-icons';
|
||||
import React from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import { CSSTransition } from 'react-transition-group';
|
||||
import About from './GeolosysComponents/About';
|
||||
import Config from './GeolosysComponents/Config';
|
||||
import CT from './GeolosysComponents/CraftTweaker';
|
||||
import OreGen from './GeolosysComponents/OreGeneration';
|
||||
|
||||
export default () => (
|
||||
<CSSTransition classNames="react-router" appear in timeout={300}>
|
||||
<div className="mb-3">
|
||||
<div className="d-flex text-center text-white geolosys masthead mb-5" style={{ height: `${50}vh` }}>
|
||||
<div className="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column align-items-center justify-content-center">
|
||||
<h1 style={{ fontSize: `${4}rem` }} className="mc-font">Geolosys</h1>
|
||||
export default () => {
|
||||
const [component, setComponent] = useState('about');
|
||||
|
||||
return (
|
||||
<CSSTransition classNames="react-router" appear in timeout={300}>
|
||||
<div className="mb-3">
|
||||
<div className="d-flex text-center text-white geolosys masthead" style={{ height: `${50}vh` }}>
|
||||
<div className="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column align-items-center justify-content-center">
|
||||
<h1 style={{ fontSize: `${4}rem` }} className="mc-font">Geolosys</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav className="navbar navbar-expand navbar-light bg-light mb-5">
|
||||
<div className="container-fluid mw-100">
|
||||
<a href="/" className="navbar-brand">
|
||||
Geolosys
|
||||
</a>
|
||||
<button
|
||||
className="navbar-toggler"
|
||||
type="button"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarSupportedContent"
|
||||
aria-controls="navbarText"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation"
|
||||
>
|
||||
<span className="navbar-toggler-icon" />
|
||||
</button>
|
||||
<div className="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul className="navbar-nav mr-auto mb-2 mb-lg-0">
|
||||
<button
|
||||
className={`nav-link nav-btn ${component === 'about' ? 'active' : ''}`}
|
||||
type="button"
|
||||
onClick={() => setComponent('about')}
|
||||
>
|
||||
About
|
||||
</button>
|
||||
<li className="nav-item dropdown">
|
||||
<a
|
||||
className={`nav-link dropdown-toggle ${component !== 'about' ? 'active' : ''}`}
|
||||
href="/"
|
||||
id="geolosysDocsDD"
|
||||
role="button"
|
||||
data-bs-toggle="dropdown"
|
||||
aria-expanded="false"
|
||||
>
|
||||
Docs
|
||||
</a>
|
||||
<ul className="dropdown-menu" aria-labelledby="geolosysDocsDD">
|
||||
<li>
|
||||
<button
|
||||
className={`dropdown-item ${component === 'oreGen' ? 'active' : ''}`}
|
||||
type="button"
|
||||
onClick={() => setComponent('oreGen')}
|
||||
>
|
||||
Ore Generation
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button
|
||||
className={`dropdown-item ${component === 'config' ? 'active' : ''}`}
|
||||
type="button"
|
||||
onClick={() => setComponent('config')}
|
||||
>
|
||||
JSON Config
|
||||
</button>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<button
|
||||
className={`dropdown-item ${component === 'ct' ? 'active' : ''}`}
|
||||
type="button"
|
||||
onClick={() => setComponent('ct')}
|
||||
>
|
||||
CraftTweaker API
|
||||
</button>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{component === 'about' && (<About />)}
|
||||
{component === 'oreGen' && (<OreGen />)}
|
||||
{component === 'config' && (<Config />)}
|
||||
{component === 'ct' && (<CT />)}
|
||||
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h2>
|
||||
About
|
||||
</h2>
|
||||
|
||||
<h5>Geolosys is a TerraFirmaCraft-inspired, dynamic ores and stones mod.</h5>
|
||||
<p>
|
||||
This means that ores come in HUGE plutons, but they're spread out all over the world.
|
||||
I know a lot of people are discouraged by this concept, but Geolosys offers a handful of
|
||||
in-game documentation and tools that will aid in your discovery of new plutons throughout
|
||||
the world.
|
||||
</p>
|
||||
<p>
|
||||
Geolosys has been written to be as intermod-compatible as possible. You can configure
|
||||
nearly every aspect of it to make the best ore excavating experience for your pack!
|
||||
</p>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h2>
|
||||
Getting Started
|
||||
</h2>
|
||||
|
||||
<h5>As you begin your quest into Geolosys deposit hunting, this guide might be of help.</h5>
|
||||
<p>
|
||||
The first thing you'll want to do is see how the mod pack author has configured
|
||||
Geolosys's ores. They are all configurable (and custom ones can even be added!) so I
|
||||
{' '}
|
||||
<i>strongly</i>
|
||||
{' '}
|
||||
suggest you consult the Field Manual, crafted like so:
|
||||
</p>
|
||||
<img className="rounded d-block m-auto mw-100 mb-3" src="/img/geolosys/field_manual.png" alt="Field Manual Recipe" />
|
||||
<p>
|
||||
Once you've obtained one, you'll want to read up about Geolosys from within that
|
||||
manual. It'll tell you all about the types of deposits in the game and where to find
|
||||
them. In order to do so, it'll be easiest if you craft yourself a prospectors pick
|
||||
using the iron you get from
|
||||
{' '}
|
||||
<b>
|
||||
Hematite Samples
|
||||
</b>
|
||||
{' '}
|
||||
on the surface of your world. This pick will allow you to right-click it and see info
|
||||
about the deposits in your vacinity. If you are above sea level (indicated by the overlay
|
||||
while holding the pro-pick in your main or off-hand), right-clicking will display deposits
|
||||
that are in the chunk you are standing in. If you are below sea level, right-clicking will
|
||||
display deposits in the vacinity of the direction you are facing (the radius for which is
|
||||
also configurable).
|
||||
</p>
|
||||
<h6>
|
||||
At this point, with some tunneling and exploring you should hopefully find your first
|
||||
pluton!
|
||||
</h6>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h2>
|
||||
Geolosys JSON Config
|
||||
</h2>
|
||||
<p>
|
||||
Geolosys has a very robust config for creating, modifying and deleting the ores that it
|
||||
generates. You can find the file in your game directory at
|
||||
{' '}
|
||||
<code>config/geolosys.json</code>
|
||||
{' '}
|
||||
, and once opened you can make any tweaks or changes you see fit.
|
||||
</p>
|
||||
<p className="text-center">
|
||||
<FontAwesomeIcon icon={faBook} />
|
||||
|
||||
<b>
|
||||
Visit the
|
||||
{' '}
|
||||
<a href="https://docs.geolosys.com" rel="noopener noreferrer" target="_blank">ReadTheDocs page</a>
|
||||
{' '}
|
||||
for
|
||||
full documentation on the config file
|
||||
</b>
|
||||
</p>
|
||||
<p>
|
||||
Once you open the config file, you may be overwhelmed (reasonably so) by the syntax of
|
||||
JSON or the overall sheer amount of configs available in the default JSON. Don't
|
||||
worry, because I've recently developed a tool just for that:
|
||||
</p>
|
||||
|
||||
<h5>
|
||||
<a rel="noopener noreferrer" href="https://config.geolosys.com" target="_blank">
|
||||
<FontAwesomeIcon icon={faLink} />
|
||||
JSON Config Generator
|
||||
</a>
|
||||
</h5>
|
||||
|
||||
<p>
|
||||
In lieu of the overwhelming size and amount of configuration that can be done to Geolosys,
|
||||
I have developed a web tool which adds a graphical interface to the configuration process.
|
||||
You can register for an account to save your configurations for later download, and it
|
||||
supports 1.12 and 1.14/1.15+ JSON versions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h3>
|
||||
<a rel="noopener noreferrer" href="https://www.curseforge.com/minecraft/mc-mods/geolosys" target="_blank">
|
||||
<FontAwesomeIcon icon={faLink} />
|
||||
Download from CurseForge
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</CSSTransition>
|
||||
);
|
||||
</CSSTransition>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
76
src/components/mods/GeolosysComponents/About.jsx
Normal file
76
src/components/mods/GeolosysComponents/About.jsx
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
import React from 'react';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faLink } from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
export default () => (
|
||||
<div>
|
||||
<div className="fluid container">
|
||||
<h2>
|
||||
About
|
||||
</h2>
|
||||
|
||||
<h5>Geolosys is a TerraFirmaCraft-inspired, dynamic ores and stones mod.</h5>
|
||||
<p>
|
||||
This means that ores come in HUGE plutons, but they're spread out all over the world.
|
||||
I know a lot of people are discouraged by this concept, but Geolosys offers a handful of
|
||||
in-game documentation and tools that will aid in your discovery of new plutons throughout
|
||||
the world.
|
||||
</p>
|
||||
<p>
|
||||
Geolosys has been written to be as intermod-compatible as possible. You can configure
|
||||
nearly every aspect of it to make the best ore excavating experience for your pack!
|
||||
</p>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h2>
|
||||
Getting Started
|
||||
</h2>
|
||||
|
||||
<h5>As you begin your quest into Geolosys deposit hunting, this guide might be of help.</h5>
|
||||
<p>
|
||||
The first thing you'll want to do is see how the mod pack author has configured
|
||||
Geolosys's ores. They are all configurable (and custom ones can even be added!) so I
|
||||
{' '}
|
||||
<i>strongly</i>
|
||||
{' '}
|
||||
suggest you consult the Field Manual, crafted like so:
|
||||
</p>
|
||||
<img className="rounded d-block m-auto mw-100 mb-3" src="/img/geolosys/field_manual.png" alt="Field Manual Recipe" />
|
||||
<p>
|
||||
Once you've obtained one, you'll want to read up about Geolosys from within that
|
||||
manual. It'll tell you all about the types of deposits in the game and where to find
|
||||
them. In order to do so, it'll be easiest if you craft yourself a prospectors pick
|
||||
using the iron you get from
|
||||
{' '}
|
||||
<b>
|
||||
Hematite Samples
|
||||
</b>
|
||||
{' '}
|
||||
on the surface of your world. This pick will allow you to right-click it and see info
|
||||
about the deposits in your vacinity. If you are above sea level (indicated by the overlay
|
||||
while holding the pro-pick in your main or off-hand), right-clicking will display deposits
|
||||
that are in the chunk you are standing in. If you are below sea level, right-clicking will
|
||||
display deposits in the vacinity of the direction you are facing (the radius for which is
|
||||
also configurable).
|
||||
</p>
|
||||
<h6>
|
||||
At this point, with some tunneling and exploring you should hopefully find your first
|
||||
pluton!
|
||||
</h6>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div className="fluid container" />
|
||||
|
||||
<div className="fluid container">
|
||||
<h3>
|
||||
<a rel="noopener noreferrer" href="https://www.curseforge.com/minecraft/mc-mods/geolosys" target="_blank">
|
||||
<FontAwesomeIcon icon={faLink} />
|
||||
Download from CurseForge
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
44
src/components/mods/GeolosysComponents/Config.jsx
Normal file
44
src/components/mods/GeolosysComponents/Config.jsx
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
import React from 'react';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faLink, faBook } from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
export default () => (
|
||||
<div className="pb-5">
|
||||
<div className="fluid container">
|
||||
<h2 style={{ textDecoration: 'line-through' }}>
|
||||
Geolosys JSON Config
|
||||
</h2>
|
||||
<h5 className="text-danger">
|
||||
The JSON Config Is ONLY Supported for 1.15.x and Below
|
||||
</h5>
|
||||
|
||||
<h6>
|
||||
If you're on a newer version, please use the Datapacks docs to guide your way through!
|
||||
</h6>
|
||||
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<p>
|
||||
Geolosys has a very robust config for creating, modifying and deleting the ores that it
|
||||
generates. You can find the file in your game directory at
|
||||
{' '}
|
||||
<code>config/geolosys.json</code>
|
||||
{' '}
|
||||
, and once opened you can make any tweaks or changes you see fit.
|
||||
Once you open the config file, you may be overwhelmed (reasonably so) by the syntax of
|
||||
JSON or the overall sheer amount of configs available in the default JSON. Don't
|
||||
worry, because I've there's an online tool for creating configurations:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h5>
|
||||
<a rel="noopener noreferrer" href="https://config.geolosys.com" target="_blank">
|
||||
<FontAwesomeIcon icon={faLink} />
|
||||
JSON Config Generator
|
||||
</a>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
383
src/components/mods/GeolosysComponents/CraftTweaker.jsx
Normal file
383
src/components/mods/GeolosysComponents/CraftTweaker.jsx
Normal file
|
|
@ -0,0 +1,383 @@
|
|||
import React from 'react';
|
||||
|
||||
export default () => (
|
||||
<div className="pb-5">
|
||||
<div className="fluid container">
|
||||
|
||||
<h2>
|
||||
CraftTweaker API
|
||||
</h2>
|
||||
|
||||
<h5 className="text-danger">
|
||||
The CraftTweaker API Is Only for 1.12.x
|
||||
</h5>
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<p>
|
||||
The CraftTweaker add-on has been created to make adding new deposits to Geolosys
|
||||
in an even more robust way. You can follow along the following pages to see how this works.
|
||||
</p>
|
||||
<p>
|
||||
Ores and stones both require a special import in your
|
||||
{' '}
|
||||
<code>.zs</code>
|
||||
{' '}
|
||||
script. For ores, use
|
||||
{' '}
|
||||
<code>import mods.geolosys.ores;</code>
|
||||
, and for stones use
|
||||
{' '}
|
||||
<code>import mods.geolosys.stones;</code>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
There are multiple types of deposits which are able to be made with the CraftTweaker API,
|
||||
listed below.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="fluid container">
|
||||
<h3>Plain Deposit</h3>
|
||||
|
||||
<p>
|
||||
A plain / standard ore deposit is one which generates in any biome with only a single block.
|
||||
This is the method that has been used by Geolosys up until Version 3.0.0, so if you'd
|
||||
like that standard distribution of ores, you'd probably want to use this. The arguments
|
||||
are listed below and must be in this order - the format is
|
||||
{' '}
|
||||
<code>[ObjectType] name</code>
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><code>[BlockState] oreBlock</code></li>
|
||||
<li><code>[BlockState] sampleBlock</code></li>
|
||||
<li><code>[int] yMin</code></li>
|
||||
<li><code>[int] yMax</code></li>
|
||||
<li><code>[int] size</code></li>
|
||||
<li>
|
||||
<code>[int] chance</code>
|
||||
: Higher chance means it's more likely to generate. The chance is relative
|
||||
to the sum of all chances of all deposits. For example, having only a total of
|
||||
chance=20 (for all ores), then a chance of 4 here would result in a 4 out of 20 chance.
|
||||
</li>
|
||||
<li>
|
||||
<code>[float] density</code>
|
||||
: Ranges from 0.0 to 1.0, where a density of 1.0 represents a pluton whose spheroid
|
||||
generation is completely solid with the block(s) defined in blocks. A density of 0.5
|
||||
would represent a pluton of the same shape and size as 1.0, but consisting of half as
|
||||
many ore blocks, which would still remain the original blocks.
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<int>] dimBlacklist</code>
|
||||
: Array of dimension IDs the ore is NOT allowed in
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<BlockState>] blocksValidForReplacement</code>
|
||||
: (
|
||||
<b>Optional</b>
|
||||
) Blocks this deposit can replace while generating
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
So, for example - to generate Spruce Logs from Y-levels 0-70, with a chance and size of 20,
|
||||
blacklisted from the nether and the end, and with a sample block of Oak wood, you would do
|
||||
the following:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
mods.geolosys.ores.addOre(
|
||||
{/* eslint-disable-next-line max-len */}
|
||||
<blockstate:minecraft:log:variant=spruce>, <blockstate:minecraft:log:variant=oak>, 0, 70, 20, 20, 1.0 as float, [-1, 1]
|
||||
);
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Optionally, if you want to specify what blocks this deposit can replace, you can do so by
|
||||
specifying it as a list as the last argument:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
mods.geolosys.ores.addOre(
|
||||
{/* eslint-disable-next-line max-len */}
|
||||
<blockstate:minecraft:log:variant=spruce>, <blockstate:minecraft:log:variant=oak>, 0, 70, 20, 20, 1.0 as float, [-1, 1], [<blockstate:minecraft:stone>]
|
||||
);
|
||||
</code>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div className="fluid container">
|
||||
<h3>Biome-Restricted Deposit</h3>
|
||||
|
||||
<p>
|
||||
A biome restricted deposit is new to Geolosys v3.0.0.This kind of deposit can only
|
||||
generate in prescribed biomes. The CraftTweaker API, as of writing, does not yet
|
||||
have much by means of biome functionality, but fortunatly it does have an in-game
|
||||
command to help your search:
|
||||
{' '}
|
||||
<code>/ct biomes</code>
|
||||
{' '}
|
||||
This command will output a list of biome ResourceLocations (that's the
|
||||
<modid>:<internalBiomeName> part of the output) which can be used in
|
||||
blacklisting or whitelisting a deposit from that biome. The order of the arguments are:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><code>[BlockState] oreBlock</code></li>
|
||||
<li><code>[BlockState] sampleBlock</code></li>
|
||||
<li><code>[int] yMin</code></li>
|
||||
<li><code>[int] yMax</code></li>
|
||||
<li><code>[int] size</code></li>
|
||||
<li>
|
||||
<code>[int] chance</code>
|
||||
: Higher chance means it' s more likely to generate.The chance is relative
|
||||
to the sum of all chances of all deposits.For example, having only a total of
|
||||
chance=20 (for all ores), then a chance of 4 here would result in a 4 out of 20 chance.
|
||||
</li>
|
||||
<li>
|
||||
<code>[float] density</code>
|
||||
: Ranges from 0.0 to 1.0, where a density of 1.0 represents a pluton whose spheroid
|
||||
generation is completely solid with the block(s) defined in blocks.A density of 0.5
|
||||
would represent a pluton of the same shape and size as 1.0, but consisting of half as
|
||||
many ore blocks, which would still remain the original blocks.
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<int>] dimBlacklist</code>
|
||||
: Array of dimension IDs the ore is NOT allowed in
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<String>] biomes</code>
|
||||
: The array of biomes to be selected
|
||||
</li>
|
||||
<li>
|
||||
<code>[bool] isWhitelist</code>
|
||||
: Determines if the biomes listed in
|
||||
{' '}
|
||||
<code>biomes</code>
|
||||
{' '}
|
||||
are blacklisted or whitelisted
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<BlockState>] blocksValidForReplacement</code>
|
||||
: (
|
||||
<b>Optional</b>
|
||||
) Blocks this deposit can replace while generating
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
So, expanding on the above example, if we want to restrict that to only Plains
|
||||
and Deserts we can use the following:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
mods.geolosys.ores.addOre(
|
||||
{/* eslint-disable-next-line max-len */}
|
||||
<blockstate:minecraft:log:variant=spruce>, <blockstate:minecraft:log:variant=oak>, 0, 70, 20, 20, 1.0 as float, [-1, 1], ["minecraft:plains", "minecraft:desert"], true
|
||||
);
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Again, this can include a specific list of blocks that this deposit can replace.
|
||||
Here is an example; as always, it's just tacked onto the end:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
mods.geolosys.ores.addOre(
|
||||
{/* eslint-disable-next-line max-len */}
|
||||
<blockstate:minecraft:log:variant=spruce>, <blockstate:minecraft:log:variant=oak>, 0, 70, 20, 20, 1.0 as float, [-1, 1], ["minecraft:plains", "minecraft:desert"], true, [<blockstate:minecraft:stone>]
|
||||
);
|
||||
</code>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div className="fluid container">
|
||||
<h3>Multi-Ore Deposit</h3>
|
||||
|
||||
<p>
|
||||
A multi-ore deposit is one which consists of multiple different types of ores.
|
||||
The frequency of each ore within the deposit must be defined, so be sure that
|
||||
you follow these closely! The argument order is as follows:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><code>[List<BlockState>] oreBlocks</code></li>
|
||||
<li><code>[List<int>] oreBlocksChances</code></li>
|
||||
<li><code>[List<BlockState>] sampleBlocks</code></li>
|
||||
<li><code>[List<int>] sampleBlocksChances</code></li>
|
||||
<li><code>[int] yMin</code></li>
|
||||
<li><code>[int] yMax</code></li>
|
||||
<li><code>[int] size</code></li>
|
||||
<li>
|
||||
<code>[int] chance</code>
|
||||
: Higher chance means it' s more likely to generate.The chance is relative
|
||||
to the sum of all chances of all deposits.For example, having only a total of
|
||||
chance=20 (for all ores), then a chance of 4 here would result in a 4 out of 20 chance.
|
||||
</li>
|
||||
<li>
|
||||
<code>[float] density</code>
|
||||
: Ranges from 0.0 to 1.0, where a density of 1.0 represents a pluton whose spheroid
|
||||
generation is completely solid with the block(s) defined in blocks.A density of 0.5
|
||||
would represent a pluton of the same shape and size as 1.0, but consisting of half as
|
||||
many ore blocks, which would still remain the original blocks.
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<int>] dimBlacklist</code>
|
||||
: Array of dimension IDs the ore is NOT allowed in
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<BlockState>] blocksValidForReplacement</code>
|
||||
: (
|
||||
<b>Optional</b>
|
||||
) Blocks this deposit can replace while generating
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
For example:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
mods.geolosys.ores.addOre(
|
||||
[<blockstate:minecraft:log:variant=spruce>,
|
||||
<blockstate:minecraft:log:variant=birch>],
|
||||
[50, 50],
|
||||
[<blockstate:minecraft:log:variant=oak>,
|
||||
<blockstate:minecraft:log2:variant=acacia>],
|
||||
[20, 80],
|
||||
0, 70, 20, 20, 1.0 as float, [-1, 1]
|
||||
);
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Of course, you can once again add a custom set of blocks the deposit can replace if
|
||||
you'd like to override the ones in the config:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
mods.geolosys.ores.addOre(
|
||||
[<blockstate:minecraft:log:variant=spruce>,
|
||||
<blockstate:minecraft:log:variant=birch>],
|
||||
[50, 50],
|
||||
[<blockstate:minecraft:log:variant=oak>,
|
||||
<blockstate:minecraft:log2:variant=acacia>],
|
||||
[20, 80],
|
||||
0, 70, 20, 20, 1.0 as float, [-1, 1],
|
||||
[<blockstate:minecraft:stone>]
|
||||
);
|
||||
</code>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div className="fluid container">
|
||||
<h3>Biome-Restricted Multi-Ore Deposit</h3>
|
||||
|
||||
<p>
|
||||
Last in the ore deposits is a biome-restricted, multi-ore deposit. This one should
|
||||
speak for itself, but if it doesn't it is a deposit which whose generation biome
|
||||
can be black/whitelisted and can consist of multiple blocks. As you might imagine,
|
||||
the arguments look like an an amalgamation of the two:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><code>[List<BlockState>] oreBlocks</code></li>
|
||||
<li><code>[List<int>] oreBlocksChances</code></li>
|
||||
<li><code>[List<BlockState>] sampleBlocks</code></li>
|
||||
<li><code>[List<int>] sampleBlocksChances</code></li>
|
||||
<li><code>[int] yMin</code></li>
|
||||
<li><code>[int] yMax</code></li>
|
||||
<li><code>[int] size</code></li>
|
||||
<li>
|
||||
<code>[int] chance</code>
|
||||
: Higher chance means it' s more likely to generate.The chance is relative
|
||||
to the sum of all chances of all deposits.For example, having only a total of
|
||||
chance=20 (for all ores), then a chance of 4 here would result in a 4 out of 20 chance.
|
||||
</li>
|
||||
<li>
|
||||
<code>[float] density</code>
|
||||
: Ranges from 0.0 to 1.0, where a density of 1.0 represents a pluton whose spheroid
|
||||
generation is completely solid with the block(s) defined in blocks.A density of 0.5
|
||||
would represent a pluton of the same shape and size as 1.0, but consisting of half as
|
||||
many ore blocks, which would still remain the original blocks.
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<int>] dimBlacklist</code>
|
||||
: Array of dimension IDs the ore is NOT allowed in
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<String>] biomes</code>
|
||||
: The array of biomes to be selected
|
||||
</li>
|
||||
<li>
|
||||
<code>[bool] isWhitelist</code>
|
||||
: Determines if the biomes listed in
|
||||
{' '}
|
||||
<code>biomes</code>
|
||||
{' '}
|
||||
are blacklisted or whitelisted
|
||||
</li>
|
||||
<li>
|
||||
<code>[List<BlockState>] blocksValidForReplacement</code>
|
||||
: (
|
||||
<b>Optional</b>
|
||||
) Blocks this deposit can replace while generating
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
So for example, to get our previous multi-ore deposit to spawn in only the biomes
|
||||
specified, you can do the following:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
mods.geolosys.ores.addOre(
|
||||
[<blockstate:minecraft:log:variant=spruce>, <blockstate:minecraft:log:variant=birch>],
|
||||
[50, 50],
|
||||
[<blockstate:minecraft:log:variant=oak>, <blockstate:minecraft:log2:variant=acacia>],
|
||||
[20, 80],
|
||||
0, 70, 20, 20, 1.0 as float, [-1, 1],
|
||||
["minecraft:plains", "minecraft:desert"],
|
||||
true
|
||||
);
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
And lastly an example of how this would look with a specified list of replacement materials:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
mods.geolosys.ores.addOre(
|
||||
[<blockstate:minecraft:log:variant=spruce>, <blockstate:minecraft:log:variant=birch>],
|
||||
[50, 50],
|
||||
[<blockstate:minecraft:log:variant=oak>, <blockstate:minecraft:log2:variant=acacia>],
|
||||
[20, 80],
|
||||
0, 70, 20, 20, 1.0 as float, [-1, 1],
|
||||
["minecraft:plains", "minecraft:desert"],
|
||||
true,
|
||||
[<blockstate:minecraft:stone>]
|
||||
);
|
||||
</code>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
);
|
||||
49
src/components/mods/GeolosysComponents/OreGeneration.jsx
Normal file
49
src/components/mods/GeolosysComponents/OreGeneration.jsx
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
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>
|
||||
);
|
||||
|
|
@ -56,7 +56,7 @@ export default () => (
|
|||
<div className="fluid container">
|
||||
<h2>
|
||||
<FontAwesomeIcon icon={faYoutube} />
|
||||
Reviews
|
||||
Reviews
|
||||
</h2>
|
||||
<div className="embed-responsive embed-responsive-16by9">
|
||||
<iframe className="embed-responsive-item" src="https://www.youtube.com/embed/-X1y9IJnXCk?start=134&end=144" title="YouTube video" allowFullScreen />
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import { CSSTransition } from 'react-transition-group';
|
||||
import semver from 'semver';
|
||||
import { Tooltip } from 'bootstrap/dist/js/bootstrap.bundle';
|
||||
import Components from '../../vt-components.json';
|
||||
import { Tooltip } from 'bootstrap/dist/js/bootstrap.bundle.js';
|
||||
|
||||
|
||||
const searchFeaturesByName = (query) => {
|
||||
const results = Components.all.map(
|
||||
|
|
@ -37,10 +36,11 @@ export default () => {
|
|||
useEffect(() => {
|
||||
[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
||||
.forEach((tooltipEl) => {
|
||||
/* eslint-disable-next-line */
|
||||
new Tooltip(tooltipEl, {
|
||||
customClass: tooltipEl.className.includes('experimental') ? "experimental-tooltip" : ""
|
||||
customClass: tooltipEl.className.includes('experimental') ? 'experimental-tooltip' : '',
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
return () => { };
|
||||
}, []);
|
||||
|
|
@ -65,11 +65,12 @@ export default () => {
|
|||
|
||||
/* Create a new tooltip if there is one */
|
||||
[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
||||
.forEach((tooltipEl) => {
|
||||
new Tooltip(tooltipEl, {
|
||||
customClass: tooltipEl.className.includes('experimental') ? "experimental-tooltip" : ""
|
||||
.forEach((tooltipEl) => {
|
||||
/* eslint-disable-next-line */
|
||||
new Tooltip(tooltipEl, {
|
||||
customClass: tooltipEl.className.includes('experimental') ? 'experimental-tooltip' : '',
|
||||
});
|
||||
});
|
||||
})
|
||||
};
|
||||
|
||||
const onVersionSet = (evt) => {
|
||||
|
|
@ -79,7 +80,6 @@ export default () => {
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<CSSTransition classNames="react-router" appear in timeout={300}>
|
||||
<div>
|
||||
|
|
@ -127,9 +127,9 @@ export default () => {
|
|||
<div className={`col ${(state.versionFilter == null || feature.versions.includes(state.versionFilter)) ? '' : 'd-none'}`}>
|
||||
<div
|
||||
className={`card h-100 ${feature.experimental ? 'experimental' : ''}`}
|
||||
data-bs-toggle={feature.experimental && "tooltip"}
|
||||
data-bs-placement={feature.experimental && "top"}
|
||||
title={feature.experimental && "This Feature is Experimental!"}
|
||||
data-bs-toggle={feature.experimental && 'tooltip'}
|
||||
data-bs-placement={feature.experimental && 'top'}
|
||||
title={feature.experimental && 'This Feature is Experimental!'}
|
||||
>
|
||||
<img src={feature.img} alt="" className="card-img-top" />
|
||||
<div className="card-body">
|
||||
|
|
@ -169,8 +169,8 @@ export default () => {
|
|||
type="button"
|
||||
role="tab"
|
||||
aria-controls={`${comp.name.toLowerCase().replace(/ /g, '-')}`}
|
||||
aria-selected={idx === 0 ? "true" : "false"}
|
||||
key={`${idx}_${comp.name}`}
|
||||
aria-selected={idx === 0 ? 'true' : 'false'}
|
||||
key={comp.name}
|
||||
>
|
||||
{comp.name}
|
||||
</button>
|
||||
|
|
@ -200,9 +200,9 @@ export default () => {
|
|||
<div className={`col ${(state.versionFilter == null || feature.versions.includes(state.versionFilter)) ? '' : 'd-none'}`}>
|
||||
<div
|
||||
className={`card h-100 ${feature.experimental ? 'experimental' : ''}`}
|
||||
data-bs-toggle={feature.experimental && "tooltip"}
|
||||
data-bs-placement={feature.experimental && "top"}
|
||||
title={feature.experimental && "This Feature is Experimental!"}
|
||||
data-bs-toggle={feature.experimental && 'tooltip'}
|
||||
data-bs-placement={feature.experimental && 'top'}
|
||||
title={feature.experimental && 'This Feature is Experimental!'}
|
||||
>
|
||||
<img src={feature.img} alt="" className="card-img-top" />
|
||||
<div className="card-body">
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export default ({
|
|||
<li className="nav-item">
|
||||
<NavLink exact className="nav-link" activeClassName="nav-link active" to={to}>
|
||||
<span>
|
||||
{icon == null ? '' : <FontAwesomeIcon icon={icon} /> }
|
||||
{icon == null ? '' : <FontAwesomeIcon icon={icon} />}
|
||||
|
||||
{name}
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue