Описание
Several changes to phantom mechanics, hopefully making them less annoying and more fun to fight. Inspired by [Infernal Studios' video](https://youtube.com/watch?v=WMVpg3QaP7A).
Works with vanilla clients!
## Changes
Each change can be enabled or disabled independently. Install [McQoy](https://modrinth.com/mod/mcqoy) for a config GUI.
### Stunning
Hitting a phantom with **an axe**, a **critical hit**, or a **critical arrow** will stun a phantom for 6 seconds, causing it to fall and not be able to move or attack. Phantoms are also stunned by explosions, fireworks, tridents, and other heavy attacks.
### Size changes
Phantoms are size 1 by default, meaning they do 7 damage. Their max health now also scales linearly with their size, so they have 40 health to balance stunning.
### Spawning changes
Insomnia is scrapped, phantoms now instead spawn above players below half health at night like hungry vultures. Also, fewer phantoms spawn at a time to balance their increased stats.
Datapacks
### Entity Tags
- `#phantomstun:always_stun` - Phantoms will always be stunned when damaged by these entities (checks the source and not the attacker)
### Damage Type Tags
- `#phantomstun:always_stun` - Phantoms will always be stunned by these damage types
- `#phantomsun:melee_stun` - Phantoms will be stunned by these damage types if the owner normally disables shields, i.e. axe-wielding mobs or wardens