Sueta

EntityModifier

v1.4.1

Modify the rotation of entities.

·Plugin

This plugin is a small library plugin which can be used to rotate entities (yaw/pitch).

As of version 1.3 and later this plugin is purely a library which allows you to do two simple things: change the yaw or pitch of an entity. This is something useful as teleporting an entity to a coordinate with a yaw/pitch included will not result in it turning its head. In previous versions the library also included the ability to change whether or not the entity has AI however this was added to the LivingEntity class as a method:

LivingEntity.setAI(boolean ai);

The API contains the following two methods:

EntityModifier.setYaw(Entity e, float yaw); 
EntityModifier.setPitch(Entity e, float pitch);

The solution the libary uses to change the yaw/pitch has changed over the versions but the solution used as of version 1.3 is from the following comment: https://www.spigotmc.org/threads/tu...ds-and-intro-to-pathfindergoals.144128/page-2 left by Grimerlin. This solution was updated to work in the newest version and implemented in this library.

Similar projects

Plugin →