Jump to content

Recommended Posts

Posted

	/**Custom Movement*/
/**MicroSlime MoveHelper*/
class MoveHelper
 extends EntityMoveHelper
 {

	MicroSlime microslime;

	public MoveHelper(EntityLiving p_i1614_1_) 
	{
		super(MicroSlime.this);
		microslime = 
				(MicroSlime) p_i1614_1_;
	}

	@Override
	public void onUpdateMoveHelper() 
	{



		if (this.update)
		{
			this.update = false;
			if (this.entity.onGround)
			{
				microslime.getJumpHelper().setJumping();
				this.entity.setMoveForward(0.2F);
			}
		}
	}
}

Whenever he tries to move he always faces the way he was when spawned/the game started

Posted

It to jump and move foward at a speed Where it's looking

It's suposed to be a very tiny 4x4 slime that is curios(I can do this easyish) and you can tame it

The Problem is it faces it back to the way it spawned before it moves :L

 

 

 

<--- As you can see "I'm new"

Posted
  On 7/9/2015 at 10:09 PM, Lightspeed360 said:

But I want it to be able to turn it's head not be like a normal slime that only looks one direction

Will what you said still allow me to do this
Posted
  On 7/13/2015 at 4:40 PM, diesieben07 said:

You could probably just do it in the constructor.

It does it everytime the entity is loaded is there somthing to put in a if to see if it just spawned?
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.