added dungeon to dimData, spawn fixes for monolit
This commit is contained in:
@@ -123,7 +123,11 @@ public class MobObelisk extends EntityFlying implements IMob
|
||||
|
||||
if(entityPlayer != null)
|
||||
{
|
||||
|
||||
if(this.soundTime<=0)
|
||||
{
|
||||
this.playSound("mods.DimensionalDoors.sounds.Monolith", 1F, 1F);
|
||||
this.soundTime=100;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -131,11 +135,8 @@ public class MobObelisk extends EntityFlying implements IMob
|
||||
|
||||
if(shouldAttackPlayer(entityPlayer))
|
||||
{
|
||||
if(soundTime<=0)
|
||||
{
|
||||
this.playSound("mods.DimensionalDoors.sounds.Monolith", 1F, 1F);
|
||||
|
||||
soundTime=100;
|
||||
}
|
||||
if(aggro<470)
|
||||
{
|
||||
@@ -181,7 +182,7 @@ public class MobObelisk extends EntityFlying implements IMob
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
else if(!this.worldObj.isRemote)
|
||||
{
|
||||
|
||||
|
||||
@@ -191,7 +192,6 @@ public class MobObelisk extends EntityFlying implements IMob
|
||||
LinkData link = new LinkData(this.worldObj.provider.dimensionId, mod_pocketDim.limboDimID, (int)this.posX, (int)this.posY, (int)this.posZ, (int)this.posX+rand.nextInt(500)-250, (int)this.posY+500, (int)this.posZ+rand.nextInt(500)-250, false,0);
|
||||
|
||||
dimHelper.instance.teleportToPocket(worldObj, link, entityPlayer);
|
||||
this.worldObj.playSound(link.destXCoord,link.destYCoord,link.destZCoord, "mods.DimensionalDoors.sounds.wylkermaxcrack", 13, 1, true);
|
||||
|
||||
entityPlayer.worldObj.playSoundAtEntity(entityPlayer,"mods.DimensionalDoors.sounds.wylkermaxcrack",13, 1);
|
||||
|
||||
@@ -223,10 +223,7 @@ public class MobObelisk extends EntityFlying implements IMob
|
||||
}
|
||||
else
|
||||
{
|
||||
if(this.worldObj.isRemote)
|
||||
{
|
||||
FMLClientHandler.instance().getClient().sndManager.stopEntitySound(this);
|
||||
}
|
||||
|
||||
if(aggro>0)
|
||||
{
|
||||
aggro--;
|
||||
@@ -237,7 +234,7 @@ public class MobObelisk extends EntityFlying implements IMob
|
||||
}
|
||||
}
|
||||
}
|
||||
if(soundTime>0)
|
||||
if(soundTime>=0)
|
||||
{
|
||||
soundTime--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user