骷髅使用自定义弓
允许骷髅正确装备并使用模组弓。
许多模组弓依赖于玩家特有的射击机制,原版骷髅 AI 无法正确使用这些机制。本模组使骷髅能够以类似玩家的方式发射这些弓,从而改善与众多弓类模组的兼容性。
功能特性
- 骷髅可以自动使用大多数模组弓
- 对非原版弓采用玩家风格的弓逻辑
- 骷髅能够识别不同弓的等级,并在可能时切换至更高级的弓。(需要数据包分配)
- 高等级弓(>=3)不会与剑进行切换。
注意:由于原版生物生成规则的限制,并非所有骷髅都能拾取掉落的物品。参考:
兼容性
默认兼容大多数继承自原版 BowItem 类的弓。
某些不继承自 BowItem 的类弓武器需要显式的兼容性补丁。
当前已包含的补丁:
- Alex's Caves — Dread Bow
- L_Ender's Cataclysm — Cursed Bow, Wrath of the Desert
整合包作者指南
弓数据(数据包)
可以通过数据包配置弓的行为:
data/<namespace>/skeleton_bow/<item>.json
示例:
{
"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
}
详细说明请参阅 此处。
阻止骷髅使用
添加物品标签:
skeletonusescustombow:skeleton_do_not_use
即可阻止骷髅使用该弓。
相关项目
猪灵使用自定义弩:Piglin Hunt Fix
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:
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/<namespace>/skeleton_bow/<item>.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.
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧