Vanilla Issue Bug: Error when using custom AI

Discussion in 'Bug Reports' started by xlsalvoxl, Aug 5, 2019.

  1. xlsalvoxl

    xlsalvoxl Member
    Premium Supporter Supporter Contest Winner

    Joined:
    Jan 9, 2017
    Messages:
    83
    Likes Received:
    8
    Enter a brief description of what is broken Error when using custom AI

    What version of Minecraft are you using? 1.13.1

    What server jar are you using? paperclip

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? dev build #2874

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    When using meleeattack as an AIGoalSelector it will throw an error in console and the mob will despawn.

    The error:
    Code:
    [15:20:15 WARN]: Entity threw exception at fazioni:-634.5516100118748,63.0,-4.111376857474789
    [15:20:15 WARN]: java.lang.NullPointerException
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.EntityInsentient.B(EntityInsentient.java:1240)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.PathfinderGoalMeleeAttack.a(SourceFile:124)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.PathfinderGoalMeleeAttack.e(SourceFile:116)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.PathfinderGoalSelector.doTick(PathfinderGoalSelector.java:108)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.EntityInsentient.doTick(EntityInsentient.java:686)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.EntityLiving.movementTick(EntityLiving.java:2338)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.EntityInsentient.movementTick(EntityInsentient.java:524)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.EntityAgeable.movementTick(EntityAgeable.java:146)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.EntityAnimal.movementTick(EntityAnimal.java:27)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.EntitySheep.movementTick(EntitySheep.java:95)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.EntityLiving.tick(EntityLiving.java:2135)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.EntityInsentient.tick(EntityInsentient.java:261)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.World.entityJoinedWorld(World.java:1561)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.World.g(World.java:1528)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.World.tickEntities(World.java:1339)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.WorldServer.tickEntities(WorldServer.java:599)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1107)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:940)
    [15:20:15 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:837)
    [15:20:15 WARN]:        at java.lang.Thread.run(Thread.java:748)
    Example Configurations
    Just put this on a sheep mob and it will generate the error:
    Code:
      AIGoalSelectors:
      - 0 clear
      - 1 randomstroll
      - 2 meleeattack
      AITargetSelectors:
      - 0 clear
      - 1 players
     
    #1
  2. xlsalvoxl

    xlsalvoxl Member
    Premium Supporter Supporter Contest Winner

    Joined:
    Jan 9, 2017
    Messages:
    83
    Likes Received:
    8
  3. iTzCascadexX

    iTzCascadexX Member
    Premium Supporter Supporter Moderator Quality Assurance

    Joined:
    Nov 2, 2015
    Messages:
    114
    Likes Received:
    15
    What mob are you giving this AI?
     
    #3
  4. xlsalvoxl

    xlsalvoxl Member
    Premium Supporter Supporter Contest Winner

    Joined:
    Jan 9, 2017
    Messages:
    83
    Likes Received:
    8
    After further testing i noticed it only happens with passive mobs, i tried on sheeps, chickens ecc and they all disappear
     
    #4
  5. iTzCascadexX

    iTzCascadexX Member
    Premium Supporter Supporter Moderator Quality Assurance

    Joined:
    Nov 2, 2015
    Messages:
    114
    Likes Received:
    15
    Mojang removed the ability for passive mobs to have this AI after 1.13.
     
    #5
    xlsalvoxl likes this.

Share This Page