MythicMobs 提供了在你的生物中对自定义生物 AI 进行编程的能力,这允许对生物如何攻击、他们选择攻击的目标以及其他动作进行大量额外的定制。
在以下部分中,我将提供一些示例,说明如何配置您可能希望在服务器上使用的几个常见场景。
玩家注意事项:
默认情况下,MythicMobs 使用权限系统让玩家被视为阵营的一部分。如果玩家有权限faction.(factionname)
,他们将被考虑在阵营中。
通过注册自定义阵营提供者,可以使用 API 覆盖此行为。
DecayingSkeleton: Mobtype: skeleton Display: '&aa decaying skeleton' Health: 15 Damage: 1 Faction: Undead AIGoalSelectors: - clear - arrowattack AITargetSelectors: - clear - players Options: FollowRange: 10 MovementSpeed: 0.2 PreventOtherDrops: true
DecayingSkeleton: Mobtype: skeleton Display: '&aa decaying skeleton' Health: 15 Damage: 1 Faction: Undead AIGoalSelectors: - clear - meleeattack AITargetSelectors: - clear - hurtbytarget - otherfactionmonsters Equipment: - COS_WoodSword:0 Options: FollowRange: 10 MovementSpeed: 0.2 PreventOtherDrops: true
SummonedGuard1: Mobtype: skeleton Display: '&Ea town guard' Health: 500 Damage: 5 Equipment: - COS_StoneSword:0 Options: Disguise: villager Despawn: true FollowRange: 5 AlwaysShowName: false MovementSpeed: 0.35 PreventOtherDrops: true KnockbackResistance: 1 PreventMobKillDrops: true
SummonedGuard1: Mobtype: skeleton Display: '&Ea town guard' Health: 500 Damage: 5 Equipment: - COS_StoneSword:0 Faction: Guard AIGoalSelectors: - clear - opendoors - meleeattack AITargetSelectors: - clear - hurtbytarget - otherfactionmonsters Options: Disguise: villager Despawn: true FollowRange: 5 AlwaysShowName: false MovementSpeed: 0.35 PreventOtherDrops: true KnockbackResistance: 1 PreventMobKillDrops: true
DecayingSkeleton: Mobtype: skeleton Display: '&aa decaying skeleton' Health: 15 Damage: 1 Faction: Undead AIGoalSelectors: - clear - meleeattack AITargetSelectors: - clear - hurtbytarget - players Equipment: - COS_RawHead:4 - COS_WoodSword:0 Options: Despawn: true FollowRange: 10 AlwaysShowName: false MovementSpeed: 0.2 PreventOtherDrops: true
兽人百夫长: Mobtype: villagezombie Display: '&aan 兽人百夫长' Health: 50 Damage: 4 Faction: Orcs AIGoalSelectors: - clear - opendoors - meleeattack AITargetSelectors: - clear - hurtbytarget - specificfactionmonsters Goblin - players Equipment: - C_DeathfistSkullcap:4 - C_DeathfistTunic:3 - C_DeathfistLeggings:2 - C_DeathfistBoots:1 - COS_WoodSword:0 Options: Despawn: true FollowRange: 10 AlwaysShowName: false MovementSpeed: 0.25 PreventOtherDrops: true PreventItemPickup: true KnockbackResistance: 0.25 PreventMobKillDrops: true 地精斗士: Mobtype: zombie Display: '&aa 地精斗士' Health: 80 Damage: 4 Faction: Goblin AIGoalSelectors: - clear - opendoors - meleeattack AITargetSelectors: - clear - hurtbytarget - specificfactionmonsters Orcs - players Equipment: - COS_BronzeHead:4 - COS_BronzeChest:3 - COS_BronzeLegs:2 - COS_BronzeFeet:1 - COS_WoodAxe:0 Skills: - skill BashI ~onAttack >0 0.25 Options: Despawn: true FollowRange: 10 AlwaysShowName: false MovementSpeed: 0.25 PreventOtherDrops: true PreventItemPickup: true KnockbackResistance: 0.4 PreventMobKillDrops: true