Skip to content

Commit

Permalink
+ Add: prepare for update.
Browse files Browse the repository at this point in the history
  • Loading branch information
FaeWulf committed Oct 9, 2024
1 parent b2ef2e5 commit 5f0133d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- Shear can be used on `Saplings`, `Bamboo`, `Vine` and `Sugar cane` to prevent it from growing.
- Using the clock will show current time.
- Reverse phantom spawn condition.
(Phantom will spawn if the player continuously sleeps skipping the night, default:
false)
- Slime chunk detector: Holding a `Slime Ball`, `Slime Block`, or items with the `diversity:slime_detector` tag will
emit
particles and sound when in a slime chunk, with a 10% chance while walking/running and 70% chance when sneaking.
Expand Down
42 changes: 32 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ Diversity is a Minecraft Fabric mod that introduces a wide range of features to
quality of life improvements to new mob behaviors and random sh*t, this mod offers a little bit of everything. The
mod is designed to work on server-side only installations as well.

**Current feature: 51 (+9 in latest version)**
**Current feature: 57 (+6 in the latest version)**

### What's new?

- Day counter
- Wandering trader announcer
- Trident can call thunderstorm
- Attack while holding torch will light target on fire
- Eat Glow Berries gives glow effect
- Wet sponge will eventually dry in hot biomes
- Cobblestone generator from lava+water Y-level below 8 will generate deepslate instead
- Cat has 9 lives (Disable by default)
- Can't use elytra in rain, water (Disable by default)
- Goat drops wool and mutton.
- Shear can be used on `Saplings`, `Bamboo`, `Vine` and `Sugar cane` to prevent it from growing.
- Using the clock will show current time.
- End stone is cheese (Disabled by default, only in 1.21)
- Reverse phantom spawn condition.
(Phantom will spawn if the player continuously sleeps skipping the night, default:
false)
- Slime chunk detector: Holding a `Slime Ball`, `Slime Block`, or items with the `diversity:slime_detector` tag will
emit
particles and sound when in a slime chunk, with a 10% chance while walking/running and 70% chance when sneaking.

## Features

Expand Down Expand Up @@ -221,6 +222,12 @@ Then you can place block that inside the bundle.</p>
<img src="https://github.com/FaeWulf/public-imgs/blob/main/mods/Diversity/item/maceRotateBlocks-min.gif?raw=true" alt="maceRotateBlock">
</details>

<details>
<summary>Shear prevents plants grow</summary>
<p>Shear can be used on `Saplings`, `Bamboo`, `Vine` and `Sugar cane` to prevent it from growing.</p>
<img src="https://github.com/FaeWulf/public-imgs/blob/main/mods/Diversity/item/shearPreventPlantGrow.gif?raw=true" alt="ShearPreventPlantGrow">
</details>

<details>
<summary>Spyglass "What is that?"</summary>
<p>See additional block/entity information (noteblock, trailspawner cooldown, redstone power, xp stored inside furnace,...) with a Spyglass, default radius is 5 blocks, zoom with Spyglass will extend to 32 blocks</p>
Expand Down Expand Up @@ -289,6 +296,11 @@ Then you can place block that inside the bundle.</p>
<img src="https://github.com/FaeWulf/public-imgs/blob/main/mods/Diversity/entity/ExplodeSniffer.gif?raw=true" alt="Explosive Sniffer">
</details>

<details>
<summary>Goat drops wool and mutton</summary>
<p>Goat drops wool and mutton when killed.</p>
</details>

<details>
<summary>Sniffer on moss block</summary>
<p>Sniffer will drops spores blossom/Small dripleaf when sniffed on moss blocks.</p>
Expand Down Expand Up @@ -368,6 +380,16 @@ Then you can place block that inside the bundle.</p>
<img src="https://github.com/FaeWulf/public-imgs/blob/main/mods/Diversity/cursed/hydrophobic_elytra-min.gif?raw=true" alt="Hydrophobic_elytra">
</details>

<details>
<summary>End stone is cheese (disable by default) (only 1.21)</summary>
<p>you can eat end stone :)</p>
</details>

<details>
<summary>Reverse phantom spawn condition. (disable by default)</summary>
<p>Phantom will spawn if the player continuously sleeps skipping the night.</p>
</details>

## Usage

Almost all features can be toggle via config file: config/diversity.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.electronwill.nightconfig.core.file.FileConfig;
import xyz.faewulf.diversity.Constants;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Field;
Expand Down Expand Up @@ -88,6 +89,12 @@ private static void loadFromFile(String filePath) {
}

try (FileConfig reader = FileConfig.of(filePath)) {

//create directory if doesn't exist
File dir = new File("config");
if (!dir.exists())
dir.mkdir();

// Parse the TOML file
reader.load();

Expand Down

0 comments on commit 5f0133d

Please sign in to comment.