diff --git a/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java b/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java index 68b78ebde..dab54f511 100644 --- a/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java +++ b/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java @@ -509,12 +509,16 @@ public class ScriptEntity implements IEntity { } /** - * @return Current rotation of the npc + * @return Current rotation of the entity */ public float getRotation(){ return entity.rotationYaw; } + public void setPitch(float pitch){entity.rotationPitch = pitch;} + + public float getPitch(){return entity.rotationPitch;} + /** * @param power How strong the knockback is * @param direction The direction in which he flies back (0-360). Usually based on getRotation()