MM如何让一些动物看到人就攻击,例如狼,北极熊一类
npcmod用原本小黑的模型再搓个小黑(阵营:敌对),自然生成设置,完事了
(别忘了吧npc小黑自然消失点上)
(别忘了吧npc小黑自然消失点上)
- 恶狼:
- Type: wolf
- Display: '&7恶狼'
- Health: 50
- Damage: 10
- Faction: langqun
- AIGoalSelectors:
- - 0 clear
- - 1 meleeattack
- - 2 lookatplayers
- AITargetSelectors:
- - 0 clear
- - 1 OtherFaction
- - 2 player
- Drops:
- - money 20 1
- Options:
- MovementSpeed: 2
- PreventOtherDrops: true
Faction: langqun
只要不是这个阵营的恶狼就会攻击啰~
然后就是AI更改先是清除AI
然后添加几个AI
AI设置可以去wiki看看
我已经帮你配置好了~
狼:
Type: ZOMBIE
Display: '狼'
Disguise:
Type: wolf
Health: 100
Damage: 10
BossBar:
Enabled: true
Range: 12
Color: RED
Style: SEGMENTED_1
DamageModifiers:
- FIRE_TICK 0
- FIRE 0
Modules:
ThreatTable: true
Equipment:
- 铁帽:4
Skills:
- sound{s=ENTITY.WOLF.HURT;pitch=1.0} @self ~onDamaged
Options:
AlwaysShowName: true
NoDamageTicks: 5
KnockbackResistance: 1
MovementSpeed: 0.4
FollowRange: 30
MaxCombatDistance: 10
PreventOtherDrops: true
AIGoalSelectors:
- 0 Clear
- 1 meleeattack
- 2 LookAtPlayers
AITargetSelectors:
- 0 Clear
- 1 hurtbytarget
- 2 players
给你写了你看看
看上面的type决定了他是一只僵尸,但是是狼的样子,见人就咬
给他写一个帽子,不会在他身上显示出来,但却存在,这样他就不会着火了
然后给他一个音效技能,被攻击时会触发狼受伤的音效,这就是一头见人就咬的狼了
Type: ZOMBIE
Display: '狼'
Disguise:
Type: wolf
Health: 100
Damage: 10
BossBar:
Enabled: true
Range: 12
Color: RED
Style: SEGMENTED_1
DamageModifiers:
- FIRE_TICK 0
- FIRE 0
Modules:
ThreatTable: true
Equipment:
- 铁帽:4
Skills:
- sound{s=ENTITY.WOLF.HURT;pitch=1.0} @self ~onDamaged
Options:
AlwaysShowName: true
NoDamageTicks: 5
KnockbackResistance: 1
MovementSpeed: 0.4
FollowRange: 30
MaxCombatDistance: 10
PreventOtherDrops: true
AIGoalSelectors:
- 0 Clear
- 1 meleeattack
- 2 LookAtPlayers
AITargetSelectors:
- 0 Clear
- 1 hurtbytarget
- 2 players
给你写了你看看
看上面的type决定了他是一只僵尸,但是是狼的样子,见人就咬
给他写一个帽子,不会在他身上显示出来,但却存在,这样他就不会着火了
然后给他一个音效技能,被攻击时会触发狼受伤的音效,这就是一头见人就咬的狼了