Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naocraftlab/foggy-pale-garden
Minecraft mod that adds fog to the Pale Garden and allows you to place it anywhere else.
https://github.com/naocraftlab/foggy-pale-garden
24w40a fabric fog java minecaft mod quilt
Last synced: 29 days ago
JSON representation
Minecraft mod that adds fog to the Pale Garden and allows you to place it anywhere else.
- Host: GitHub
- URL: https://github.com/naocraftlab/foggy-pale-garden
- Owner: NaoCraftLab
- License: mit
- Created: 2024-10-03T16:42:44.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-10-16T11:54:15.000Z (about 1 month ago)
- Last Synced: 2024-10-16T20:34:59.828Z (about 1 month ago)
- Topics: 24w40a, fabric, fog, java, minecaft, mod, quilt
- Language: Java
- Homepage: https://modrinth.com/mod/foggy-pale-garden
- Size: 52 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Foggy Pale Garden
A Minecraft mod that adds fog to the Pale Garden biome. But you can customize any kind of fog anywhere you like!
---
## โจ Features
๐ฑ Envelops the Pale Garden in fog
![immersion-in-thick-fog.gif](docs/images/immersion-in-thick-fog.gif)
๐ณ๏ธ The fog does not fill caves beneath the Pale Garden
![no-fog-in-caves.gif](docs/images/no-fog-in-caves.gif)
๐ชฝThe fog doesnโt hinder flying over the Pale Garden
![fog-doesnโt-hinder-flying.gif](docs/images/fog-doesn%E2%80%99t-hinder-flying.gif)
๐จ Fog presets feature allows you to choose from predefined options, create a custom preset, or have the fog adjust based on the gameโs difficulty
![fog-presets.gif](docs/images/fog-presets.gif)
๐งโโ๏ธ The conditions for fog formation will allow for creating different types of fog even in the same location
![different-fog-at-different-heights.gif](docs/images/different-fog-at-different-heights.gif)
[You can download this example on GitHub](docs/presets/custom/HEIGHT_DEPENDENT_FOG_EXAMPLE.v3.json)
๐ง Create different types of fog based on any set of conditions
For example, this preset will create pre-dawn fog during clear weather in all biomes.
![custom-preset-pre-dawn-fog.gif](docs/images/custom-preset-pre-dawn-fog.gif)
```json
{
"code": "PRE_DAWN_FOG",
"bindings": [
{
"condition": {
"and": [
{ "timeIn": { "start": 22500, "end": 23800 } },
{ "weatherIn": ["CLEAR"] }
]
},
"startDistance": 0.0,
"skyLightStartLevel": 4,
"endDistance": 15.0,
"surfaceHeightEnd": 15.0,
"opacity": 50.0,
"encapsulationSpeed": 16.0,
"brightness": {
"mode": "BY_GAME_FOG"
},
"color": {
"mode": "BY_GAME_FOG"
}
}
],
"version": 2
}
```To apply it, create a file `PRE_DAWN_FOG.json` with this content in the `config/foggypalegarden` folder and set the value `"preset": "PRE_DAWN_FOG"` in `config/foggy-pale-garden.json`.
Read more about the available features in the [๐ ๏ธ Configuration](#-configuration) section.
๐ฌ Change settings via chat even if you're not an operator!
Available commands:
- `/fpg preset` will display the name of the current preset
- `/fpg preset FPG_DIFFICULTY_BASED` will switch the preset to FPG_DIFFICULTY_BASED (the command itself suggests a list of available presets)
- `/fpg reloadConfig` re-reads the mod configuration and available fog preset files from disk
- `/fpg noFogGameMode` displays a list of game modes where the fog is disabled
- `/fpg noFogGameMode ` allows you to disable or enable the application of fog settings for the selected game mode![console-commands.gif](docs/images/console-commands.gif)
๐ The mod supports multiple languages
Supported languages:
- ๐ธ๐ฆ Arabic
- ๐ง๐พ Belarusian
- ๐จ๐ณ Chinese (Simplified)
- ๐บ๐ธ English (US)
- ๐ซ๐ท French
- ๐ฌ๐ช Georgian
- ๐ฉ๐ช German
- ๐ฎ๐น Italian
- ๐ฏ๐ต Japanese
- ๐ฐ๐ฟ Kazakh
- ๐ฐ๐ท Korean
- ๐ง๐ท Portuguese (Brazil)
- ๐ท๐บ Russian
- ๐ช๐ธ Spanish (Mexico)
- ๐ธ๐ช Swedish
- ๐บ๐ฆ UkrainianYou can request a translation into your language or report a translation error on [GitHub](https://github.com/NaoCraftLab/foggy-pale-garden/issues).
โ๏ธ Disable fog for specific game modes
![no-fog-game-modes.gif](docs/images/no-fog-game-modes.gif)
In the config `config/foggy-pale-garden.json`, the value `"noFogGameModes": ["SPECTATOR"]` is set.
## ๐ฅ Installation
1. Install Minecraft version `24w40a` or newer
2. If it's a snapshot, enable the Winter Drop experiment when creating a world
3. Install [Fabric](https://fabricmc.net) or [Quilt](https://quiltmc.org) for this version
4. Place the mod in the `mods` folder
5. Beware of the monsters in the fog!## ๐ ๏ธ Configuration
### Fog Parameters
- Distance at which the fog starts
- Distance at which the fog ends
- Fog density
- Fog brightness
- Fog color
- Speed of fog dispersal when entering or leaving it
- Fog shape (available options: SPHERE and CYLINDER)### Fog Conditions
They can be used in any combination thanks to AND, OR, and NOT conditions
- Dimension the player is in
- Biome the player is in
- Biome temperature
- Weather
- Time of day
- World difficulty level
- Sky brightness (allows detecting if the player is in a cave)
- Player's height above the surface
- Player's position on the Y-axis### Full Configuration
Available configuration options
The configuration file is located at `config/foggy-pale-garden.json` and allows you to set one of the available fog presets.
```json
{
// active fog preset
"preset": "MY_PRESET",// (optional) list of game modes where fog is disabled ("SURVIVAL", "CREATIVE", "ADVENTURE", "SPECTATOR")
"noFogGameModes": [""],
// config schema version (do not change this value)
"version": 3
}
```Preset files are located in the `config/foggypalegarden` directory. Each file contains the full fog settings for the game.
```json
{
// preset code (you need to specify this value in config/foggy-pale-garden.json to apply the preset)
"code": "MY_PRESET",
// a set of bindings, each responsible for your configured fog appearance and applied based on specified conditions
"bindings": [
{
// condition under which this binding is applied
// has a tree-like structure (you can place other conditions inside and, or, not)
// only one field can be filled at the same time in one condition
// correct - { "and": [{ "biomeIdIn": ["minecraft:desert"] }, { "difficultyIn": ["HARD"] }] }
// incorrect - { "biomeIdIn": ["minecraft:desert"], "difficultyIn": ["HARD"] }
"condition": {
// (optional) list of dimensions where this binding is applied (for example, "minecraft:overworld")
"dimensionIn": [""],
// (optional) list of biomes where this binding is applied (for example, "minecraft:desert")
"biomeIdIn": [""],
// (optional) biome temperature range where this binding is applied
"biomeTemperature": {
// (optional) minimum temperature (inclusive)
"min": 0.0,
// (optional) maximum temperature (exclusive)
"max": 0.0
},
// (optional) list of difficulty levels where this binding is applied ("PEACEFUL", "EASY", "NORMAL", "HARD")
"difficultyIn": [""],
// (optional) list of weather conditions where this binding is applied ("CLEAR", "RAIN", "THUNDER")
"weatherIn": [""],
// (optional) time range during which this binding is applied (start can be greater than end)
"timeIn": { "start": 0, "end": 0 },
// (optional) sky light level [0, 15]
"skyLightLevel": { "min": 0, "max": 0 },// (optional) player's position on the Y-axis
"height": { "min": 0.0, "max": 0.0 },// (optional) player's height above the surface (cannot be negative)
"surfaceHeight": { "min": 0.0, "max": 0.0 },
// (optional) group of conditions that must all be met for this binding to be applied
"and": [{}],
// (optional) list of conditions where at least one must be met for this binding to be applied
"or": [{}],
// (optional) condition that must not be met for this binding to be applied
"not": {}
},
// (optional) distance (in blocks) at which the fog starts (cannot be negative)
"startDistance": 0.0,// (optional) distance (in blocks) at which the fog ends (cannot be negative)
"endDistance": 0.0,// (optional) fog density in percent (0.0, 100.0]
"opacity": 0.0,
// (optional) fog spread speed (in blocks per second) when entering or exiting it (cannot be less than or equal to 0)
"encapsulationSpeed": 0.0,
// (optional) fog brightness settings
"brightness": {
// mode of fog brightness calculation
// BY_GAME_FOG - brightness is calculated based on in-game fog brightness
// FIXED - manually set brightness
"mode": "FIXED",
// (required for FIXED mode) fog brightness level in percent (0.0, 100.0]
"fixedBrightness": 0.0,
// (optional for BY_GAME_FOG mode) brightness adjustment [-1.0, 1.0]
"adjustment": 0.0
},
// (optional) fog color settings
"color": {
// mode of fog color calculation
// BY_GAME_FOG - uses in-game fog color
// FIXED - manually set fog color
"mode": "FIXED",
// (required for FIXED mode) fog color in HEX format (without #)
"fixedHex": "f0f0f0"
},
// (optional) fog shape ("SPHERE", "CYLINDER")
"shape": "CYLINDER"
},
{
// another binding
}
],
// preset schema version (do not change this value)
"version": 3
}
```Examples of presets can be found in the [GitHub repository](docs/presets).
## ๐ฅ Compatibility with Other Mods
If you encounter compatibility issues between Foggy Pale Garden and other mods, please open an [issue on GitHub](https://github.com/NaoCraftLab/foggy-pale-garden/issues) or [contact us on Discord](https://discord.gg/NmzHNyrGK4).
## ๐ Plans
๐ (After 1.21.2 release) Port to NeoForge
๐ (After 1.21.2 release) Add visual configuration
โMaybe it will be possible to implement support for Iris Shaders?
โMaybe port to previous versions to support mods backporting the Winter Drop?## ๐ค Modpacks
You can use this mod in modpacks without requesting permission.