/**
* Checks if the entity's current position is a valid location to spawn this entity.
*/
public boolean getCanSpawnHere()
{
int var1 = MathHelper.floor_double(this.posX);
int var2 = MathHelper.floor_double(this.boundingBox.minY);
int var3 = MathHelper.floor_double(this.posZ);
return super.getCanSpawnHere() && this.getBlockPathWeight(var1, var2, var3) >= 0.0F;
}
I bet this is what does it. But i dont understand it too much..
That is my line of code in my mod_ file which makes the mob spawn.
mmm
I bet this is what does it. But i dont understand it too much..