Описание
# Skeleton Uses Custom Bow
**Allows skeletons to properly use modded bows.**
Many modded bows rely on player-specific firing mechanics, which vanilla skeleton AI cannot use correctly. This mod lets skeletons fire those bows using player-style bow behavior, improving compatibility with many bow mods.
***
## Features
* Skeletons can use most modded bows automatically
* Uses player-style bow logic for non-vanilla bows
* Skeletons can recognize tier of different bows and switch to a better bow when possible. (Requires Datapack assignment)
* High-tier bows (>=3) will not be switched with swords.
Note: Not all skeletons can pick up dropped items due to vanilla mob spawn rules. Ref: [https://minecraft.wiki/w/Geared\_mobs#Picking\_up\_gear](https://minecraft.wiki/w/Geared_mobs#Picking_up_gear)
***
## Compatibility
Works automatically with most bows that extend the vanilla class: `BowItem`
Some bow-like weapons that do not inherit from `BowItem` require explicit compatibility patches.
Currently included patches:
* Alex's Caves — **Dread Bow**
* L\_Ender's Cataclysm — **Cursed Bow**, **Wrath of the Desert**
***
## For Modpack Authors
### Bow data (datapack)
Bow behavior can be configured with datapacks:
`data//skeleton_bow/.json`
Example:
```
{
"priority": 10,
"chance": 0.25,
"min_difficulty": 1.0,
"max_difficulty": 5.0,
"charge_time": 20,
"post_shot_delay": 40,
"post_shot_delay_hard_mode": 20,
"drop_chance": 0.05
}
```
Detailed explanation can be found [here](https://github.com/vomiter-scp-zh/SkeletonUsesCustomBow/wiki/Datapack-Configuration).
### Prevent skeleton usage
Add the item tag:
`skeletonusescustombow:skeleton_do_not_use`
to prevent skeletons from using a bow.
## Related Project
### Piglins using custom crossbows: [Piglin Hunt Fix](https://www.curseforge.com/minecraft/mc-mods/piglin-hunt-fix)