Does anyone know where in NMS to trigger entity animations?

Discussion in 'Plugin Development' started by Copyright2017, Nov 13, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Copyright2017

    I'm just trying to manually trigger entity movements like legs and arms etc.


    Hunches:
    net.minecraft.server.NavigationAbstract looks promising?
    net.minecraft.server.EntityInsentient.class inside the doTick() function:
    Code:
    protected final void doTick()
      {
        this.ticksFarFromPlayer += 1;
        this.world.methodProfiler.a("checkDespawn");
        D();
        this.world.methodProfiler.b();
        if (this.fromMobSpawner) {
          return;
        }
        this.world.methodProfiler.a("sensing");
        this.bk.a();
        this.world.methodProfiler.b();
        this.world.methodProfiler.a("targetSelector");
        this.targetSelector.a();
        this.world.methodProfiler.b();
        this.world.methodProfiler.a("goalSelector");
        this.goalSelector.a();
        this.world.methodProfiler.b();
        this.world.methodProfiler.a("navigation");
        this.navigation.k();
        this.world.methodProfiler.b();
        this.world.methodProfiler.a("mob tick");
        E();
        this.world.methodProfiler.b();
        this.world.methodProfiler.a("controls");
        this.world.methodProfiler.a("move");
        this.moveController.c();
        this.world.methodProfiler.c("look");
        this.lookController.a();
        this.world.methodProfiler.c("jump");
        this.g.b();
        this.world.methodProfiler.b();
        this.world.methodProfiler.b();
      }
    maybe there is a clue in there, I looked but everything being obfuscated makes it next to impossible to find anything... If anyone knows that would be massively helpful :D
     
  2. Offline

    Copyright2017

    bump? :V

    I really would like to figure this one out! also if anyone knows where in nms entity velocities are changed based on their surroundings (eg throw item at wall or fishing rod etc.)
     
  3. Offline

    MightyOne

    @Copyright2017 I once tried to make a custom living enitity ridable. In the end it was controllable by a player. But idk if that would be useful for you
     
Thread Status:
Not open for further replies.

Share This Page