jopi
Попрошайка
- 1,421
- 30
- 260
Может я вообще тупой, почему он не спавнится ВООБЩЕ?
Существо зарегал, яйцо есть.+
Рендер сделал RenderArrow
Java:
package by.fxg.realisto.client.modules.paw.entity;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
public class EntityRock extends Entity {
public float hoverStart;
public int lifespan = 6000;
public EntityRock(World par1World) {
super(par1World);
this.lifespan = 6000;
this.hoverStart = (float) (Math.random() * Math.PI * 2.0D);
}
@Override
public void onUpdate() {
// this.lifespan--;
// if (this.lifespan <= 0) {
// this.setDead();
// return;
// }
this.prevPosX = this.posX;
this.prevPosY = this.posY;
this.prevPosZ = this.posZ;
this.motionY -= 0.03999999910593033D;
this.noClip = this.pushOutOfBlocks(this.posX, (this.boundingBox.minY + this.boundingBox.maxY) / 2.0D, this.posZ);
}
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) {
par1NBTTagCompound.setInteger("Lifespan", lifespan);
}
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
if (par1NBTTagCompound.hasKey("Lifespan")) {
lifespan = par1NBTTagCompound.getInteger("Lifespan");
}
}
protected boolean canTriggerWalking() {return false;}
public boolean handleWaterMovement() {return this.worldObj.handleMaterialAcceleration(this.boundingBox, Material.water, this);}
protected void dealFireDamage(int par1) {}
public boolean attackEntityFrom(DamageSource par1DamageSource, float par2) {return false;}
public void onCollideWithPlayer(EntityPlayer par1EntityPlayer) {}
public String getEntityName() {return "Камень";}
public boolean canAttackWithItem() {return false;}
protected void entityInit() {}
}
Рендер сделал RenderArrow