Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

  • Author

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"

  • Author

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
  • Author

Heres a link if you want to see exactly what the entity is doing. http://youtu.be/3UX9JXNP3mg

Also is there a way to fix the slime from sinking into the ground?

Why won't he just jump and move foward not the direction towards the wall like the vid.

  • Author

Yes but, how do I get before spawning or when spawning it? Is there a method I'm not seeing to put it in?

How do I get when it's spawned and do stuff when it spawns?

  • Author

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?
  • Author

No I'm on 1.8 I'm not getting these ons? :c

How can I update and keep the workspace using forge src 1.8-11.14.3.1487.

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.