This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
EntityInit Class:
package pixel.au.entity; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.common.registry.EntityRegistry; import pixel.au.Main; import pixel.au.util.Reference; public class EntityInit { public static void registerEntities() { registerEntity("caken", EntityCaken.class, Reference.ENTITY_CAKEN, 40, 16777215 ,16725045); } private static void registerEntity(String name, Class<? extends Entity> entity, int id, int range, int color1, int color2) { EntityRegistry.registerModEntity(new ResourceLocation(Reference.MODID + ":" + name), entity, name, id, Main.instance, range, 1, true, color1, color2); } }
And the Entity Class:
package pixel.au.entity; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.passive.EntityCow; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.DamageSource; import net.minecraft.util.SoundEvent; import net.minecraft.world.World; public class EntityCaken extends EntityCow { public EntityCaken(World worldIn) { super(worldIn); } @Override public EntityCow createChild(EntityAgeable ageable) { return new EntityCaken(world); } @Override protected SoundEvent getAmbientSound() { return super.getAmbientSound(); } @Override protected SoundEvent getHurtSound(DamageSource source) { return super.getHurtSound(source); } @Override protected SoundEvent getDeathSound() { return super.getDeathSound(); } }
"The perfect way to live is not living in a perfect way." - PixelGX
Nevermind, I discovered the issue and promptly fixed it
EntityInit Class:
And the Entity Class:
"The perfect way to live is not living in a perfect way." - PixelGX
Nevermind, I discovered the issue and promptly fixed it
"The perfect way to live is not living in a perfect way." - PixelGX