Neutral Mobs?

Discussion in 'Discussion' started by frothbite, Jul 5, 2019.

  1. frothbite

    frothbite New Member

    Joined:
    Jul 5, 2019
    Messages:
    4
    Likes Received:
    0
    There a way to make mobs neutral until someone attacks it?

    If so how would I go about doing this? Thanks!
     
    #1
  2. Roger M

    Roger M Member
    Supporter Quality Assurance

    Joined:
    May 13, 2016
    Messages:
    144
    Likes Received:
    15
  3. CrypticSpartan

    CrypticSpartan New Member
    Supporter

    Joined:
    Sep 8, 2018
    Messages:
    6
    Likes Received:
    1
    Use the attacker selector
    Code:
    AITargetSelectors:
    - 0 attacker
     
    #3
  4. Roger M

    Roger M Member
    Supporter Quality Assurance

    Joined:
    May 13, 2016
    Messages:
    144
    Likes Received:
    15
    Clear should usually go in the first position. That way if there is a hiccup in the system the first thing it does is wipe the default AI.
     
    #4
    frothbite likes this.
  5. frothbite

    frothbite New Member

    Joined:
    Jul 5, 2019
    Messages:
    4
    Likes Received:
    0
    Did not work... I placed it in the mobs config btw.
     
    #5
  6. Buguser

    Buguser Active Member
    Supporter Quality Assurance Moderator

    Joined:
    Oct 11, 2016
    Messages:
    258
    Likes Received:
    60
    Use this one:

    Code:
      AIGoalSelectors:
      - 0 clear
      - 1 meleeattack
      - 2 float
      - 3 lookatplayers
      - 4 randomstroll
      AITargetSelectors:
      - 0 clear
      - 1 attacker
     
    #6
    frothbite likes this.
  7. frothbite

    frothbite New Member

    Joined:
    Jul 5, 2019
    Messages:
    4
    Likes Received:
    0
    Ty <3 what would I put instead of "meleeattack" for a mob with a bow?
     
    #7
  8. DUMPLING0724

    DUMPLING0724 New Member
    Supporter Premium Supporter

    Joined:
    Jan 21, 2019
    Messages:
    16
    Likes Received:
    3
    skeletonbowattack but only for skeleton

    or you can use fleeplayers and make some arrow shooting skills instead D:
     
    #8
    frothbite likes this.
  9. frothbite

    frothbite New Member

    Joined:
    Jul 5, 2019
    Messages:
    4
    Likes Received:
    0
    Luckily the mob is a skeleton :)
    The "skeletonbowattack" did not work though, it still normally attacks you.
     
    #9
  10. DUMPLING0724

    DUMPLING0724 New Member
    Supporter Premium Supporter

    Joined:
    Jan 21, 2019
    Messages:
    16
    Likes Received:
    3
    well this works on 1.12 and 1.13 try it maybe? D:

    Example:
    Type: SKELETON
    Health: 50
    Damage: 10
    Faction: MINION
    Display: '&r&lbone Servant'
    Equipment:
    - 298 HEAD
    - BOW HAND
    AIGoalSelectors:
    - 0 clear
    - 1 bowshoot
    - 2 float
    - 2 randomstroll
    AITargetSelectors:
    - 0 clear
    - 1 OtherFactionMonsters
    - 2 Monsters
    Skills:
    - remove{delay=600} @self ~onSpawn
    - effect:flames{delay=599} @self ~onSpawn
    - message{m="&7[<mob.name>&7] &r:Ill only last for &7[&e30s&7] &r"} @NearestPlayer ~onSpawn
    - effect:itemspray{item=bone;amount=12;velocity=0.8;d=40} @self ~onSpawn
    Drops:
    - exp 0
    Options:
    AlwaysShowName: false
    MovementSpeed: 0.3
    PreventOtherDrops: true
     
    #10
    frothbite likes this.
  11. Roger M

    Roger M Member
    Supporter Quality Assurance

    Joined:
    May 13, 2016
    Messages:
    144
    Likes Received:
    15
    You shouldn’t be using numeric ids for equipment (or anything) as they’ve been depreciated with 1.13.
     
    #11
    frothbite likes this.
  12. DUMPLING0724

    DUMPLING0724 New Member
    Supporter Premium Supporter

    Joined:
    Jan 21, 2019
    Messages:
    16
    Likes Received:
    3
    but it still works.... i dnt get it D:
     
    #12
    frothbite likes this.
  13. Roger M

    Roger M Member
    Supporter Quality Assurance

    Joined:
    May 13, 2016
    Messages:
    144
    Likes Received:
    15
    If you upgrade your server version it may stop working.
     
    #13
    frothbite likes this.

Share This Page