A quality-of-life datapack that removes phantom spawning while keeping phantom membranes obtainable through crafting and bat drops.
doInsomnia gamerule for a clean, server-friendly solutionA new shaped crafting recipe for phantom membrane:
Recipe Pattern:
[Feather] [Feather] [Feather]
[Rotten Flesh] [Rotten Flesh] [Rotten Flesh]
[Feather] [Feather] [Feather]
Ingredients:
Output:
Works on both crafting table and in the player's 2x2 crafting grid!
saves/[Your World Name]/datapacks/datapacks folder/reload in-game to activate the datapackSimply arrange the materials in the crafting pattern shown above to create phantom membrane.
Build a bat farm in caves or dark areas to collect phantom membrane as drops.
/reload - Reload the datapack/datapack list - Check if the datapack is active (should be green)/gamerule doInsomnia - Verify phantom spawning is disabled (should be false)| Minecraft Version | Status |
|---|---|
| 1.21.10+ | ✅ Fully Supported |
| 1.21.0 - 1.21.9 | ⚠️ May work (untested) |
| 1.20.x and below | ❌ Not Supported |
None at this time. Please report any issues in the comments or issue tracker!
Q: Will this remove already-spawned phantoms?
A: No, only prevents new spawns. Use /kill @e[type=phantom] to remove existing phantoms.
Q: Does this work in multiplayer?
A: Yes! The datapack works perfectly on servers.
Q: Can I use this in my modpack?
A: Yes! Feel free to include it in any modpack or world download. Attribution appreciated but not required.
Q: How do I uninstall?
A: Run /datapack disable "file/no_phantoms_datapack", then delete the datapack folder. Run /gamerule doInsomnia true to re-enable phantom spawning.
This datapack is free to use, modify, and distribute. No attribution required, but always appreciated!
Enjoy peaceful nights without phantoms!