So I had a mob in 1.5 that moved faster when it was in water, as of 1.6 I had to remove that code because Mojang removed it, so I was wondering how I would again make my mob do it using the new attribute system (or just working around it, that would work too)
-Thank You-
public void onLivingUpdate()
{
super.onLivingUpdate();
if (this.isWet())
{
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setAttribute(5.25D); //obviously change to the amount you want
}
}
-Thank You-
hope this helps!
-sorash67 || Skorpio
http://www.minecraftforum.net/topic/1839245-1615-forge-sspsmp-skorpios-notonlymoreores-mod-the-crossbow-update/