monolith tele cooldown
This commit is contained in:
parent
a8ac17f81b
commit
2e2184f033
2 changed files with 2 additions and 1 deletions
|
@ -188,7 +188,7 @@ public class MobObelisk extends EntityFlying implements IMob
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(!this.worldObj.isRemote)
|
else if(!this.worldObj.isRemote&&!entityPlayer.capabilities.isCreativeMode)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
@ -198,6 +198,7 @@ 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);
|
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);
|
dimHelper.instance.teleportToPocket(worldObj, link, entityPlayer);
|
||||||
|
this.aggro=0;
|
||||||
|
|
||||||
entityPlayer.worldObj.playSoundAtEntity(entityPlayer,"mods.DimDoors.sfx.crack",13, 1);
|
entityPlayer.worldObj.playSoundAtEntity(entityPlayer,"mods.DimDoors.sfx.crack",13, 1);
|
||||||
if(!(this.worldObj.provider instanceof LimboProvider ||this.worldObj.provider instanceof pocketProvider))
|
if(!(this.worldObj.provider instanceof LimboProvider ||this.worldObj.provider instanceof pocketProvider))
|
||||||
|
|
BIN
resources/mods/DimDoors/textures/blocks/BlockLimboLIGHT.png
Normal file
BIN
resources/mods/DimDoors/textures/blocks/BlockLimboLIGHT.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
Loading…
Reference in a new issue