Adjusted Phantom Spawns
A mod 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). 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 <percentage - default is 100>
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 <ticks - default is 72000 - one day equals 24000>
To change the chance of phantoms spawning:
/gamerule phantomSpawningChancePercentage <percentage - default is 100> How to Install Adjusted Phantom Spawns (Mod)
Adjusted Phantom Spawns by verarr is verified for Fabric, Neoforge across Minecraft versions 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21 (latest release: 1.1.1-1.21.9-neoforge, file size: 85 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21) and platform (Fabric, Neoforge).
- Make sure you have the compatible loader or environment installed for Fabric, Neoforge.
- Move the downloaded Adjusted Phantom Spawns file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Revert "One Jar"
- Port to 1.21.9
- Revert "One Jar"
- Port to 1.21.9
- One Jar in https://github.com/verarr/adjusted-phantom-spawns/pull/17
- fixed NeoForge build
- works up to ~~1.21.7~~ 1.21.8
- Add Gamerule helper class in https://github.com/verarr/adjusted-phantom-spawns/pull/15 (makes mod integration easier)
- Add Gamerule helper class in https://github.com/verarr/adjusted-phantom-spawns/pull/15 (makes mod integration easier)
- Port to Architectury in https://github.com/verarr/adjusted-phantom-spawns/pull/11
- Port to Architectury in https://github.com/verarr/adjusted-phantom-spawns/pull/11
See [this release on GitHub](https://github.com/verarr/adjusted-phantom-spawns/releases/tag/1.0.1-1.20.6).
See [this release on GitHub](https://github.com/verarr/adjusted-phantom-spawns/releases/tag/1.0.1-1.20.4).
See [this release on GitHub](https://github.com/verarr/adjusted-phantom-spawns/releases/tag/1.0.1-1.20.2).