Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/verarr/adjusted-phantom-spawns
A mod for Minecraft for modifying the conditions of Phantoms spawning.
https://github.com/verarr/adjusted-phantom-spawns
fabricmc minecraft-mod
Last synced: 13 days ago
JSON representation
A mod for Minecraft for modifying the conditions of Phantoms spawning.
- Host: GitHub
- URL: https://github.com/verarr/adjusted-phantom-spawns
- Owner: verarr
- License: lgpl-3.0
- Created: 2024-10-11T13:33:26.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-01T23:08:43.000Z (about 1 month ago)
- Last Synced: 2025-01-01T23:28:04.141Z (about 1 month ago)
- Topics: fabricmc, minecraft-mod
- Language: Java
- Homepage: https://modrinth.com/mod/adjusted-phantom-spawns
- Size: 155 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Adjusted Phantom Spawns
A mod for Minecraft for modifying the conditions of Phantoms spawning.
## Technical details
Phantom spawning has a global **cooldown** of 1-2 minutes (randomly reset after it runs out). This mod provides the gamerule `phantomSpawningCooldownPercentage` to modify this cooldown as a percentage of the vanilla value. Smaller cooldown values mean phantoms may **spawn more often**, while larger cooldown values mean phantoms may only **spawn less frequently**.
For each player, phantoms can only spawn if their **"Time Since Last Rest"** statistic exceeds 1 hour (72000 ticks or 3 in-game days). Then, the chance of phantoms spawning is based on the ratio of the actual value of the statistic, and the threshold. This mod provides the gamerule `phantomSpawningThreshold` to adjust the statistic according to a desired threshold value in ticks. Smaller threshold values mean phantoms may spawn after a shorter than regular amount of time has passed since a player has slept, making them have to **sleep more often**. Larger threshold values mean phantoms may only spawn after an extended amount of time, making players have to **sleep less often**.
The chance of phantoms spawning is also based on how much a player has exceeded the threshold. This chance is now also scalable with the `phantomSpawningChancePercentage` gamerule. Lower values mean less chance, and higher means more.
## Usage
To change the phantom spawning cooldown:
```
/gamerule phantomSpawningCooldownPercentage
```>[!WARNING]
>
>The cooldown can't be manually reset. Setting it to a high value might mean you will have to wait it out even if you set it to something lower afterwards.To change the sleep threshold:
```
/gamerule phantomSpawningThreshold
```To change the chance of phantoms spawning:
```
/gamerule phantomSpawningChancePercentage
```