sky texture, more monolith changes

This commit is contained in:
StevenRS11
2013-05-29 17:54:41 -04:00
parent 6c8e8fa264
commit 53ad4fe53a
8 changed files with 251 additions and 6 deletions

View File

@@ -87,16 +87,20 @@ public class MobObelisk extends EntityFlying implements IMob
public void onEntityUpdate()
{
byte b0 = this.dataWatcher.getWatchableObjectByte(16);
this.texture="/mods/DimensionalDoors/textures/mobs/Monolith"+b0+".png";
if(!this.hasJumped&&!this.worldObj.isRemote)
{
int sanity=0;
double jumpHeight=0;
do
{
jumpHeight = this.posY+rand.nextInt(25);
if(this.worldObj.provider instanceof pocketProvider)
{
jumpHeight = jumpHeight- rand.nextInt(10);
}
sanity++;
}
while(!this.worldObj.isAirBlock((int)this.posX,(int)jumpHeight+6 , (int)this.posZ)&&sanity<20);