djkawh
这是我做的宠物宝马:
  Type: pig
  Display: '&5超级大宝马'
  Health: 1000
  Damage: 100
  DamageModifiers:
  - FIRE_TICK 0
  - FIRE 0
  - FALL 0
  - SUFFOCATION 0
  Modules:
    ThreatTable: true
  KillMessages:
  Faction: 宠物
  AIGoalSelectors:
  - 1 gotoowner
  - 2 meleeattack
  AITargetSelectors:
  - 1 hurtbytarget
  - 2 OtherFaction
  Skills:
  - skill{s=认主} @Trigger ~onInteract
  - skill{s=宝马速度} @self ~onTimer:100
  - skill{s=宝马力量} @PIR{R=10} ~onTimer:200
  - skill{s=宝马特效} @Self ~onTimer:10
  - skill{s=宝马攻击} @LivingEntitiesInRadius{r=10} ~onTimer:400
  Options:
    Despawn: true
    FollowRange: 10
    AlwaysShowName: false
    MovementSpeed: 0.3
    PreventOtherDrops: true
    PreventItemPickup: true
    KnockbackResistance: 0.25
    NoAI: false
    PreventMobKillDrops: true
技能配置:
认主:
  Cooldown: 100000000000
  Skills:
  - setowner @trigger

  - message{m="&7[ &6系统 &7] &6<trigger.name>成功获得宠物 &7<mob.name>"} @trigger
宝马速度:
  Cooldown: 15
  Skills:
  - message{m="&7[ &5宝马 &7] &b速度&6&l!"} @PlayersInRadius{r=40}
  - potion{type=SPEED;d=300;l=4} @PlayersInRadius{r=4}
宝马力量:
  Cooldown: 15
  Skills:
  - message{m="&7[ &5宝马 &7] &c力量&6&l!"} @PlayersInRadius{r=40}
  - potion{type=strength;d=300;l=2} @PlayersInRadius{r=4}
宝马特效:
  Cooldown: 0
  Skills:
  - effect:particles{particle=dragonbreath;amount=1;hS=0.2;vS=0.2;yOffset=0.7;speed=0.1} @Self
  - effect:particles{particle=dragonbreath;amount=30;hS=0.2;vS=0.2;yOffset=0.7;speed=0.1} @Self
宝马攻击:
  Cooldown: 0
  Skills:
  - message{m="&7[ &6系统 &7] &6<mob.name>发动技能 &7冲击波!"} @PlayersInRadius{r=40}
  - delay 10
  - effect:lightning @self
  - delay 3
  - effect:particles{particle=hugeexplosion;amount=10;hS=1;vS=1;speed=1} @self

  - damage{amount=200;ignoreArmor=false;preventknockback=true} @MobsInRadius{r=40}

问题就是这宠物不会攻击其他生物没伤害


2021.12 数据,可能有更多内容这是我做的宠物宝马:
Type: pig
Display: '&amp;5超级大宝马'
Health: 1000
Damage: 100
DamageModifiers:
- FIRE_TICK 0
- FIRE 0
- FALL 0
- SUFFOCATION 0
Modules:
    ThreatTable: true
KillMessages:
Faction: 宠物
AIGoalSelectors:
- 1 gotoowner
- 2 meleeattack
AITargetSelectors:
- 1 hurtbytarget
- 2 OtherFaction
Skills:
- skill{s=认主} @Trigger ~onInteract
- skill{s=宝马速度} @self ~onTimer:100
- skill{s=宝马力量} @PIR{R=10} ~onTimer:200
- skill{s=宝马特效} @Self ~onTimer:10
- skill{s=宝马攻击} @LivingEntitiesInRadius{r=10} ~onTimer:400
Options:
    Despawn: true
    FollowRange: 10
    AlwaysShowName: false
    MovementSpeed: 0.3
    PreventOtherDrops: true
    PreventItemPickup: true
    KnockbackResistance: 0.25
    NoAI: false
    PreventMobKillDrops: true
技能配置:
认主:
Cooldown: 100000000000
Skills:
- setowner @trigger


- message{m=&quot;&amp;7[ &amp;6系统 &amp;7] &amp;6&lt;trigger.name&gt;成功获得宠物 &amp;7&lt;mob.name&gt;&quot;} @trigger
宝马速度:
Cooldown: 15
Skills:
- message{m=&quot;&amp;7[ &amp;5宝马 &amp;7] &amp;b速度&amp;6&amp;l!&quot;} @PlayersInRadius{r=40}
- potion{type=SPEED;d=300;l=4} @PlayersInRadius{r=4}
宝马力量:
Cooldown: 15
Skills:
- message{m=&quot;&amp;7[ &amp;5宝马 &amp;7] &amp;c力量&amp;6&amp;l!&quot;} @PlayersInRadius{r=40}
- potion{type=strength;d=300;l=2} @PlayersInRadius{r=4}
宝马特效:
Cooldown: 0
Skills:
- effect:particles{particle=dragonbreath;amount=1;hS=0.2;vS=0.2;yOffset=0.7;speed=0.1} @Self
- effect:particles{particle=dragonbreath;amount=30;hS=0.2;vS=0.2;yOffset=0.7;speed=0.1} @Self
宝马攻击:
Cooldown: 0
Skills:
- message{m=&quot;&amp;7[ &amp;6系统 &amp;7] &amp;6&lt;mob.name&gt;发动技能 &amp;7冲击波!&quot;} @PlayersInRadius{r=40}
- delay 10
- effect:lightning @self
- delay 3
- effect:particles{particle=hugeexplosion;amount=10;hS=1;vS=1;speed=1} @self


- damage{amount=200;ignoreArmor=false;preventknockback=true} @MobsInRadius{r=40}


问题就是这宠物不会攻击其他生物没伤害



炫宙菌
setowner只对可驯服类有效 僵尸什么的应该不行的

炫宙菌
本帖最后由 炫宙菌 于 2020-3-16 20:21 编辑

如果真要用MM做宠物 需要一个Miniature Pets插件这个插件还支持自定义模型生物 你最好去搬运贴提供的官网看看
搬运贴的搬运者像是啥也不会一样

小白杯
推荐用mypet插件做宠物
用mmBUG太多

djkawh
炫宙菌 发表于 2020-3-16 20:20
如果真要用MM做宠物 需要一个Miniature Pets插件这个插件还支持自定义模型生物 你最好去搬运贴提供的官网看 ...

emm
那我放弃攻击改加buff吧
但那buff好像也有问题
速度好像是可以的
力量不行

炫宙菌
djkawh 发表于 2020-3-16 20:52
emm
那我放弃攻击改加buff吧
但那buff好像也有问题

/effect 然后按TAB补全原版的药水效果 按住Shift加左右键可以选择 ctrl+c复制

djkawh
炫宙菌 发表于 2020-3-16 20:54
/effect 然后按TAB补全原版的药水效果 按住Shift加左右键可以选择 ctrl+c复制

- potion{type=strength;d=300;l=2} @PlayersInRadius{r=4}
我的意思是给玩家buff这有问题 strength没错是力量
但是宠物并没用给予玩家力量效果

炫宙菌
djkawh 发表于 2020-3-16 21:06
- potion{type=strength;d=300;l=2} @PlayersInRadius{r=4}
我的意思是给玩家buff这有问题 strength没错 ...

技能名:
  Conditions:
  - owner true
Skills:
  - potion{type=strength;d=300;l=2} @PlayersInRadius{r=4}

djkawh
炫宙菌 发表于 2020-3-16 21:11
技能名:
  Conditions:
  - owner true

宝马力量:
  Conditions:
  - owner true
  Skills:
  - message{m="&7[ &5宝马 &7] &c力量&6&l!"} @PlayersInRadius{r=40}
  - potion{type=strength;d=300;l=2} @PlayersInRadius{r=4}

不行啊

蟹蒙老鸽
你与其这样为什么不直接装一个宠物插件呢...mypet我认为可以做这些而且还能自己写技能

第一页 上一页 下一页 最后一页