From 6058a0f675c0aec95aea8e7a00aaddbc7f5a2081 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Fri, 4 Jun 2021 17:22:02 -0500 Subject: [PATCH] Migrate docs over to Wiki :) --- src/components/Home.jsx | 41 +- src/components/mods/Geolosys.jsx | 221 +++++----- .../mods/GeolosysComponents/About.jsx | 76 ++++ .../mods/GeolosysComponents/Config.jsx | 44 ++ .../mods/GeolosysComponents/CraftTweaker.jsx | 383 ++++++++++++++++++ .../mods/GeolosysComponents/OreGeneration.jsx | 49 +++ src/components/mods/Natural Progressions.jsx | 2 +- src/components/mods/V-Tweaks.jsx | 34 +- src/components/nav/NavItem.jsx | 2 +- src/css/app.css | 104 +++-- src/css/home.css | 79 ++-- src/index.js | 22 +- src/serviceWorker.js | 37 +- src/vt-components.json | 142 ++----- 14 files changed, 845 insertions(+), 391 deletions(-) create mode 100644 src/components/mods/GeolosysComponents/About.jsx create mode 100644 src/components/mods/GeolosysComponents/Config.jsx create mode 100644 src/components/mods/GeolosysComponents/CraftTweaker.jsx create mode 100644 src/components/mods/GeolosysComponents/OreGeneration.jsx diff --git a/src/components/Home.jsx b/src/components/Home.jsx index ba91b7a..9b1570b 100644 --- a/src/components/Home.jsx +++ b/src/components/Home.jsx @@ -2,25 +2,22 @@ import React from 'react'; import '../css/home.css'; import { CSSTransition } from 'react-transition-group'; - -export default () => { - return ( - -
-
-
-

- ^ -

-

- oitsjustjose's Mod Wiki -

-
- Made with Bootstrap 5 and React -
-
-
-
-
- ); -}; \ No newline at end of file +export default () => ( + +
+
+
+

+ ^ +

+

+ oitsjustjose's Mod Wiki +

+
+ Brief guides for each and every mod to get you started! +
+
+
+
+
+); diff --git a/src/components/mods/Geolosys.jsx b/src/components/mods/Geolosys.jsx index 8497511..e39d834 100644 --- a/src/components/mods/Geolosys.jsx +++ b/src/components/mods/Geolosys.jsx @@ -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 () => ( - -
-
-
-

Geolosys

+export default () => { + const [component, setComponent] = useState('about'); + + return ( + +
+
+
+

Geolosys

+
+ + + + {component === 'about' && ()} + {component === 'oreGen' && ()} + {component === 'config' && ()} + {component === 'ct' && ()} +
- -
-

- About -

- -
Geolosys is a TerraFirmaCraft-inspired, dynamic ores and stones mod.
-

- 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. -

-

- 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! -

-
-
- -
-

- Getting Started -

- -
As you begin your quest into Geolosys deposit hunting, this guide might be of help.
-

- 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 - {' '} - strongly - {' '} - suggest you consult the Field Manual, crafted like so: -

- Field Manual Recipe -

- 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 - {' '} - - Hematite Samples - - {' '} - 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). -

-
- At this point, with some tunneling and exploring you should hopefully find your first - pluton! -
-
-
- -
-

- Geolosys JSON Config -

-

- 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 - {' '} - config/geolosys.json - {' '} - , and once opened you can make any tweaks or changes you see fit. -

-

- -   - - Visit the - {' '} - ReadTheDocs page - {' '} - for - full documentation on the config file - -

-

- 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: -

- -
- - -  JSON Config Generator - -
- -

- 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. -

-
- - -
- -); + + ); +}; diff --git a/src/components/mods/GeolosysComponents/About.jsx b/src/components/mods/GeolosysComponents/About.jsx new file mode 100644 index 0000000..27de68e --- /dev/null +++ b/src/components/mods/GeolosysComponents/About.jsx @@ -0,0 +1,76 @@ +import React from 'react'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faLink } from '@fortawesome/free-solid-svg-icons'; + +export default () => ( +
+
+

+ About +

+ +
Geolosys is a TerraFirmaCraft-inspired, dynamic ores and stones mod.
+

+ 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. +

+

+ 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! +

+
+
+ +
+

+ Getting Started +

+ +
As you begin your quest into Geolosys deposit hunting, this guide might be of help.
+

+ 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 + {' '} + strongly + {' '} + suggest you consult the Field Manual, crafted like so: +

+ Field Manual Recipe +

+ 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 + {' '} + + Hematite Samples + + {' '} + 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). +

+
+ At this point, with some tunneling and exploring you should hopefully find your first + pluton! +
+
+
+ + +); diff --git a/src/components/mods/GeolosysComponents/Config.jsx b/src/components/mods/GeolosysComponents/Config.jsx new file mode 100644 index 0000000..95918d5 --- /dev/null +++ b/src/components/mods/GeolosysComponents/Config.jsx @@ -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 () => ( +
+
+

+ Geolosys JSON Config +

+
+ The JSON Config Is ONLY Supported for 1.15.x and Below +
+ +
+ If you're on a newer version, please use the Datapacks docs to guide your way through! +
+ +
+ +
+

+ 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 + {' '} + config/geolosys.json + {' '} + , 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: +

+
+ + +
+); diff --git a/src/components/mods/GeolosysComponents/CraftTweaker.jsx b/src/components/mods/GeolosysComponents/CraftTweaker.jsx new file mode 100644 index 0000000..4c43933 --- /dev/null +++ b/src/components/mods/GeolosysComponents/CraftTweaker.jsx @@ -0,0 +1,383 @@ +import React from 'react'; + +export default () => ( +
+
+ +

+ CraftTweaker API +

+ +
+ The CraftTweaker API Is Only for 1.12.x +
+
+ +
+

+ 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. +

+

+ Ores and stones both require a special import in your + {' '} + .zs + {' '} + script. For ores, use + {' '} + import mods.geolosys.ores; + , and for stones use + {' '} + import mods.geolosys.stones; +

+ +

+ There are multiple types of deposits which are able to be made with the CraftTweaker API, + listed below. +

+
+ +
+

Plain Deposit

+ +

+ 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 + {' '} + [ObjectType] name +

+ +
    +
  • [BlockState] oreBlock
  • +
  • [BlockState] sampleBlock
  • +
  • [int] yMin
  • +
  • [int] yMax
  • +
  • [int] size
  • +
  • + [int] chance + : 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. +
  • +
  • + [float] density + : 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. +
  • +
  • + [List<int>] dimBlacklist + : Array of dimension IDs the ore is NOT allowed in +
  • +
  • + [List<BlockState>] blocksValidForReplacement + : ( + Optional + ) Blocks this deposit can replace while generating +
  • +
+ +

+ 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: +

+ +
+        
+          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]
+          );
+        
+      
+ +

+ 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: +

+ +
+        
+          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>]
+          );
+        
+      
+
+ +
+ +
+

Biome-Restricted Deposit

+ +

+ 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: + {' '} + /ct biomes + {' '} + 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: +

+ +
    +
  • [BlockState] oreBlock
  • +
  • [BlockState] sampleBlock
  • +
  • [int] yMin
  • +
  • [int] yMax
  • +
  • [int] size
  • +
  • + [int] chance + : 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. +
  • +
  • + [float] density + : 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. +
  • +
  • + [List<int>] dimBlacklist + : Array of dimension IDs the ore is NOT allowed in +
  • +
  • + [List<String>] biomes + : The array of biomes to be selected +
  • +
  • + [bool] isWhitelist + : Determines if the biomes listed in + {' '} + biomes + {' '} + are blacklisted or whitelisted +
  • +
  • + [List<BlockState>] blocksValidForReplacement + : ( + Optional + ) Blocks this deposit can replace while generating +
  • +
+ +

+ So, expanding on the above example, if we want to restrict that to only Plains + and Deserts we can use the following: +

+ +
+        
+          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
+          );
+        
+      
+ +

+ 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: +

+ +
+        
+          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>]
+          );
+        
+      
+
+ +
+ +
+

Multi-Ore Deposit

+ +

+ 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: +

+ +
    +
  • [List<BlockState>] oreBlocks
  • +
  • [List<int>] oreBlocksChances
  • +
  • [List<BlockState>] sampleBlocks
  • +
  • [List<int>] sampleBlocksChances
  • +
  • [int] yMin
  • +
  • [int] yMax
  • +
  • [int] size
  • +
  • + [int] chance + : 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. +
  • +
  • + [float] density + : 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. +
  • +
  • + [List<int>] dimBlacklist + : Array of dimension IDs the ore is NOT allowed in +
  • +
  • + [List<BlockState>] blocksValidForReplacement + : ( + Optional + ) Blocks this deposit can replace while generating +
  • +
+ +

+ For example: +

+ +
+        
+          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]
+          );
+        
+      
+ +

+ 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: +

+ +
+        
+          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>]
+          );
+        
+      
+
+ +
+ +
+

Biome-Restricted Multi-Ore Deposit

+ +

+ 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: +

+ +
    +
  • [List<BlockState>] oreBlocks
  • +
  • [List<int>] oreBlocksChances
  • +
  • [List<BlockState>] sampleBlocks
  • +
  • [List<int>] sampleBlocksChances
  • +
  • [int] yMin
  • +
  • [int] yMax
  • +
  • [int] size
  • +
  • + [int] chance + : 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. +
  • +
  • + [float] density + : 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. +
  • +
  • + [List<int>] dimBlacklist + : Array of dimension IDs the ore is NOT allowed in +
  • +
  • + [List<String>] biomes + : The array of biomes to be selected +
  • +
  • + [bool] isWhitelist + : Determines if the biomes listed in + {' '} + biomes + {' '} + are blacklisted or whitelisted +
  • +
  • + [List<BlockState>] blocksValidForReplacement + : ( + Optional + ) Blocks this deposit can replace while generating +
  • +
+ +

+ So for example, to get our previous multi-ore deposit to spawn in only the biomes + specified, you can do the following: +

+ +
+        
+          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
+          );
+        
+      
+ +

+ And lastly an example of how this would look with a specified list of replacement materials: +

+ +
+        
+          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>]
+          );
+        
+      
+
+ +
+); diff --git a/src/components/mods/GeolosysComponents/OreGeneration.jsx b/src/components/mods/GeolosysComponents/OreGeneration.jsx new file mode 100644 index 0000000..3a79fcd --- /dev/null +++ b/src/components/mods/GeolosysComponents/OreGeneration.jsx @@ -0,0 +1,49 @@ +import React from 'react'; + +export default () => ( +
+
+

Ore Generation - What's Changed?

+ +

+ The default configuration for Ore Generation has changed with Geolosys v3.0.0. + Many deposit configs remain unchanged, but a few have changed: + +

    +
  • Lapis is now found in Deserts of all types (hills and mutated)
  • +
  • Beryl is now found in Extreme Hills of all types, and Ice Mountains
  • +
  • Limonite is now found on Mushroom Islands and in Swamplands
  • +
  • + Azurite and Malachite now generate together, as in real life. Azurite generates at a + 60% chance, where Malachite generates at a 40% chance. +
  • +
  • Cassiterite is now found in ocean biomes (may be changed)
  • +
  • + Teallite is now found in ocean biomes (may be changed) and has a small chance to + generate with Beryl, as in real life. +
  • +
  • Galena is now found in flat biomes, such as Plains and Ice Plains
  • +
  • Bauxite is now found in Jungle biomes and Savannah biomes
  • +
  • Autunite is now found in Extreme Hills of all types, and Ice Mountains
  • +
+ + All of these changes are reflected in the Field Manual in versions for 1.15.2 and below. +

+
+ +
+

Pluton Density

+ +

+ 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. +

+
+
+); diff --git a/src/components/mods/Natural Progressions.jsx b/src/components/mods/Natural Progressions.jsx index 71e5d01..00451fa 100644 --- a/src/components/mods/Natural Progressions.jsx +++ b/src/components/mods/Natural Progressions.jsx @@ -56,7 +56,7 @@ export default () => (

- Reviews +  Reviews