Terror
This commit is contained in:
@@ -145,7 +145,7 @@ public class MobMonolith extends EntityFlying implements IMob
|
||||
this.moveEntity(0, .1, 0);
|
||||
}
|
||||
|
||||
EntityPlayer entityPlayer = this.worldObj.getClosestPlayerToEntity(this, 30);
|
||||
EntityPlayer entityPlayer = this.worldObj.getClosestPlayerToEntity(this, 60);
|
||||
|
||||
if (entityPlayer != null)
|
||||
{
|
||||
@@ -200,11 +200,11 @@ public class MobMonolith extends EntityFlying implements IMob
|
||||
}
|
||||
else
|
||||
{
|
||||
if(aggro>0)
|
||||
if(aggro<this.aggroMax/2)
|
||||
{
|
||||
if(rand.nextInt(10)==0)
|
||||
if(rand.nextInt(3)==0)
|
||||
{
|
||||
aggro--;
|
||||
aggro++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.DataWatcher;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.monster.EntityEnderman;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.network.INetworkManager;
|
||||
import net.minecraft.network.packet.Packet;
|
||||
@@ -161,6 +162,11 @@ public class TileEntityRift extends TileEntity
|
||||
EntityEnderman enderman = new EntityEnderman(worldObj);
|
||||
enderman.setLocationAndAngles(xCoord + 0.5, yCoord - 1, zCoord + 0.5, 5, 6);
|
||||
worldObj.spawnEntityInWorld(enderman);
|
||||
EntityPlayer player = this.worldObj.getClosestPlayerToEntity(enderman, 50);
|
||||
if(player!=null)
|
||||
{
|
||||
enderman.setTarget(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user