Skip to content

Instantly share code, notes, and snippets.

@BlockAfterBlock
Created June 25, 2011 18:47
Show Gist options
  • Select an option

  • Save BlockAfterBlock/1046765 to your computer and use it in GitHub Desktop.

Select an option

Save BlockAfterBlock/1046765 to your computer and use it in GitHub Desktop.
Player Control
public boolean interact(EntityPlayer entityplayer)
{
if(getSaddled() && !worldObj.multiplayerWorld && (riddenByEntity == null || riddenByEntity == entityplayer))
{
entityplayer.mountEntity(this);
entityplayer.motionX = this.motionX;
entityplayer.motionY = this.motionY;
entityplayer.isJumping = this.isJumping;
return true;
} else
{
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment