Bug: Error when using custom AI

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

  1. xlsalvoxl

    xlsalvoxl Member
    Supporter Premium Supporter Contest Winner

    Joined:
    Jan 9, 2017
    Messages:
    79
    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

Share This Page