2
1
Fork 1
mirror of https://github.com/ACGaming/Spackenmobs synced 2024-05-19 20:04:10 +02:00

Fun and games for CurseForge

This commit is contained in:
ACGaming 2022-03-26 09:21:02 +01:00
parent eda02e783b
commit 0422adde8d
26 changed files with 4 additions and 1376 deletions

View file

@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
version = "RC8"
version = "1.8-CF"
group = "mod.acgaming.spackenmobs" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Spackenmobs-1.12.2"

View file

@ -16,7 +16,7 @@ import mod.acgaming.spackenmobs.misc.ModEntities;
public class Spackenmobs
{
public static final String MODID = "spackenmobs";
public static final String VERSION = "RC8";
public static final String VERSION = "1.8-CF";
public static final CreativeTabs SPACKENMOBS_TAB = new SpackenmobsTab();

View file

@ -1,309 +0,0 @@
package mod.acgaming.spackenmobs.entities;
import java.util.Collection;
import javax.annotation.Nullable;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityAreaEffectCloud;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.*;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.monster.EntitySkeleton;
import net.minecraft.entity.passive.EntityOcelot;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
import net.minecraft.world.World;
import net.minecraft.world.storage.loot.LootTableList;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import mod.acgaming.spackenmobs.entities.ai.EntityAIIslamistSwell;
import mod.acgaming.spackenmobs.misc.ModSoundEvents;
public class EntityIslamist extends EntityMob
{
private static final DataParameter<Integer> STATE = EntityDataManager.createKey(EntityIslamist.class, DataSerializers.VARINT);
private static final DataParameter<Boolean> POWERED = EntityDataManager.createKey(EntityIslamist.class, DataSerializers.BOOLEAN);
private static final DataParameter<Boolean> IGNITED = EntityDataManager.createKey(EntityIslamist.class, DataSerializers.BOOLEAN);
private int lastActiveTime;
private int timeSinceIgnited;
private int fuseTime = 30;
private int explosionRadius = 6;
private int droppedSkulls;
public EntityIslamist(World worldIn)
{
super(worldIn);
this.setSize(0.6F, 1.7F);
}
public void onUpdate()
{
if (this.isEntityAlive())
{
this.lastActiveTime = this.timeSinceIgnited;
if (this.hasIgnited())
{
this.setCreeperState(1);
}
int i = this.getCreeperState();
if (i > 0 && this.timeSinceIgnited == 0)
{
this.playSound(ModSoundEvents.ENTITY_ISLAMIST_FUSE, 1.0F, 0.5F);
}
this.timeSinceIgnited += i;
if (this.timeSinceIgnited < 0)
{
this.timeSinceIgnited = 0;
}
if (this.timeSinceIgnited >= this.fuseTime)
{
this.timeSinceIgnited = this.fuseTime;
this.explode();
}
}
super.onUpdate();
}
protected SoundEvent getHurtSound(DamageSource damageSourceIn)
{
return ModSoundEvents.ENTITY_ISLAMIST_HURT;
}
protected SoundEvent getDeathSound()
{
return ModSoundEvents.ENTITY_ISLAMIST_AMBIENT;
}
public boolean attackEntityAsMob(Entity entityIn)
{
return true;
}
protected void applyEntityAttributes()
{
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.25D);
}
public void onDeath(DamageSource cause)
{
super.onDeath(cause);
if (this.world.getGameRules().getBoolean("doMobLoot"))
{
if (cause.getTrueSource() instanceof EntitySkeleton)
{
int i = Item.getIdFromItem(Items.RECORD_13);
int j = Item.getIdFromItem(Items.RECORD_WAIT);
int k = i + this.rand.nextInt(j - i + 1);
this.dropItem(Item.getItemById(k), 1);
}
else if (cause.getTrueSource() instanceof mod.acgaming.spackenmobs.entities.EntityIslamist && cause.getTrueSource() != this && ((mod.acgaming.spackenmobs.entities.EntityIslamist) cause.getTrueSource()).getPowered() && ((mod.acgaming.spackenmobs.entities.EntityIslamist) cause.getTrueSource()).ableToCauseSkullDrop())
{
((mod.acgaming.spackenmobs.entities.EntityIslamist) cause.getTrueSource()).incrementDroppedSkulls();
this.entityDropItem(new ItemStack(Items.SKULL, 1, 4), 0.0F);
}
}
}
public void fall(float distance, float damageMultiplier)
{
super.fall(distance, damageMultiplier);
this.timeSinceIgnited = (int) ((float) this.timeSinceIgnited + distance * 1.5F);
if (this.timeSinceIgnited > this.fuseTime - 5)
{
this.timeSinceIgnited = this.fuseTime - 5;
}
}
public boolean getPowered()
{
return this.dataManager.get(POWERED);
}
@SideOnly(Side.CLIENT)
public float getCreeperFlashIntensity(float p_70831_1_)
{
return ((float) this.lastActiveTime + (float) (this.timeSinceIgnited - this.lastActiveTime) * p_70831_1_) / (float) (this.fuseTime - 2);
}
public int getCreeperState()
{
return this.dataManager.get(STATE);
}
public void setCreeperState(int state)
{
this.dataManager.set(STATE, state);
}
public void onStruckByLightning(EntityLightningBolt lightningBolt)
{
super.onStruckByLightning(lightningBolt);
this.dataManager.set(POWERED, Boolean.TRUE);
}
public boolean hasIgnited()
{
return this.dataManager.get(IGNITED);
}
public void ignite()
{
this.dataManager.set(IGNITED, Boolean.TRUE);
}
public boolean ableToCauseSkullDrop()
{
return this.droppedSkulls < 1 && this.world.getGameRules().getBoolean("doMobLoot");
}
public void incrementDroppedSkulls()
{
++this.droppedSkulls;
}
protected void initEntityAI()
{
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIIslamistSwell(this));
this.tasks.addTask(3, new EntityAIAvoidEntity(this, EntityOcelot.class, 6.0F, 1.0D, 1.2D));
this.tasks.addTask(4, new EntityAIAttackMelee(this, 1.0D, false));
this.tasks.addTask(5, new EntityAIWanderAvoidWater(this, 0.8D));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(6, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
}
protected void entityInit()
{
super.entityInit();
this.dataManager.register(STATE, -1);
this.dataManager.register(POWERED, Boolean.FALSE);
this.dataManager.register(IGNITED, Boolean.FALSE);
}
public void writeEntityToNBT(NBTTagCompound compound)
{
super.writeEntityToNBT(compound);
if (this.dataManager.get(POWERED))
{
compound.setBoolean("powered", true);
}
compound.setShort("Fuse", (short) this.fuseTime);
compound.setByte("ExplosionRadius", (byte) this.explosionRadius);
compound.setBoolean("ignited", this.hasIgnited());
}
public void readEntityFromNBT(NBTTagCompound compound)
{
super.readEntityFromNBT(compound);
this.dataManager.set(POWERED, compound.getBoolean("powered"));
if (compound.hasKey("Fuse", 99))
{
this.fuseTime = compound.getShort("Fuse");
}
if (compound.hasKey("ExplosionRadius", 99))
{
this.explosionRadius = compound.getByte("ExplosionRadius");
}
if (compound.getBoolean("ignited"))
{
this.ignite();
}
}
@Nullable
protected ResourceLocation getLootTable()
{
return LootTableList.ENTITIES_CREEPER;
}
public int getMaxFallHeight()
{
return this.getAttackTarget() == null ? 3 : 3 + (int) (this.getHealth() - 1.0F);
}
protected boolean processInteract(EntityPlayer player, EnumHand hand)
{
ItemStack itemstack = player.getHeldItem(hand);
if (itemstack.getItem() == Items.FLINT_AND_STEEL)
{
this.world.playSound(player, this.posX, this.posY, this.posZ, SoundEvents.ITEM_FLINTANDSTEEL_USE, this.getSoundCategory(), 1.0F, this.rand.nextFloat() * 0.4F + 0.8F);
player.swingArm(hand);
if (!this.world.isRemote)
{
this.ignite();
itemstack.damageItem(1, player);
return true;
}
}
return super.processInteract(player, hand);
}
private void explode()
{
if (!this.world.isRemote)
{
boolean flag = net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.world, this);
float f = this.getPowered() ? 2.0F : 1.0F;
this.dead = true;
this.world.playSound(null, getPosition(), ModSoundEvents.ENTITY_ISLAMIST_BLOW, getSoundCategory(), 1.0F, 1.0F);
this.world.createExplosion(this, this.posX, this.posY, this.posZ, (float) this.explosionRadius * f, flag);
this.setDead();
this.spawnLingeringCloud();
}
}
private void spawnLingeringCloud()
{
Collection<PotionEffect> collection = this.getActivePotionEffects();
if (!collection.isEmpty())
{
EntityAreaEffectCloud entityareaeffectcloud = new EntityAreaEffectCloud(this.world, this.posX, this.posY, this.posZ);
entityareaeffectcloud.setRadius(2.5F);
entityareaeffectcloud.setRadiusOnUse(-0.5F);
entityareaeffectcloud.setWaitTime(10);
entityareaeffectcloud.setDuration(entityareaeffectcloud.getDuration() / 2);
entityareaeffectcloud.setRadiusPerTick(-entityareaeffectcloud.getRadius() / (float) entityareaeffectcloud.getDuration());
for (PotionEffect potioneffect : collection)
{
entityareaeffectcloud.addEffect(new PotionEffect(potioneffect));
}
this.world.spawnEntity(entityareaeffectcloud);
}
}
}

View file

@ -1,722 +0,0 @@
package mod.acgaming.spackenmobs.entities;
import java.util.List;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.*;
import net.minecraft.entity.ai.*;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.entity.projectile.EntityWitherSkull;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.init.SoundEvents;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.pathfinding.PathNavigateGround;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EntitySelectors;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.world.BossInfo;
import net.minecraft.world.BossInfoServer;
import net.minecraft.world.EnumDifficulty;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class EntityJensWither extends EntityMob implements IRangedAttackMob
{
private static final DataParameter<Integer> FIRST_HEAD_TARGET = EntityDataManager.createKey(EntityJensWither.class, DataSerializers.VARINT);
private static final DataParameter<Integer> SECOND_HEAD_TARGET = EntityDataManager.createKey(EntityJensWither.class, DataSerializers.VARINT);
private static final DataParameter<Integer> THIRD_HEAD_TARGET = EntityDataManager.createKey(EntityJensWither.class, DataSerializers.VARINT);
private static final DataParameter<Integer>[] HEAD_TARGETS = new DataParameter[] {FIRST_HEAD_TARGET, SECOND_HEAD_TARGET, THIRD_HEAD_TARGET};
private static final DataParameter<Integer> INVULNERABILITY_TIME = EntityDataManager.createKey(EntityJensWither.class, DataSerializers.VARINT);
/**
* Selector used to determine the entities a wither boss should attack.
*/
private static final Predicate<Entity> NOT_UNDEAD = p_apply_1_ -> p_apply_1_ instanceof EntityLivingBase && ((EntityLivingBase) p_apply_1_).getCreatureAttribute() != EnumCreatureAttribute.UNDEAD && ((EntityLivingBase) p_apply_1_).attackable();
public static boolean canDestroyBlock(Block blockIn)
{
return blockIn != Blocks.BEDROCK && blockIn != Blocks.END_PORTAL && blockIn != Blocks.END_PORTAL_FRAME && blockIn != Blocks.COMMAND_BLOCK && blockIn != Blocks.REPEATING_COMMAND_BLOCK && blockIn != Blocks.CHAIN_COMMAND_BLOCK && blockIn != Blocks.BARRIER && blockIn != Blocks.STRUCTURE_BLOCK && blockIn != Blocks.STRUCTURE_VOID && blockIn != Blocks.PISTON_EXTENSION && blockIn != Blocks.END_GATEWAY;
}
private final float[] xRotationHeads = new float[2];
private final float[] yRotationHeads = new float[2];
private final float[] xRotOHeads = new float[2];
private final float[] yRotOHeads = new float[2];
private final int[] nextHeadUpdate = new int[2];
private final int[] idleHeadUpdates = new int[2];
private final BossInfoServer bossInfo = (BossInfoServer) (new BossInfoServer(this.getDisplayName(), BossInfo.Color.PURPLE, BossInfo.Overlay.PROGRESS)).setDarkenSky(true);
/**
* Time before the Wither tries to break blocks
*/
private int blockBreakCounter;
public EntityJensWither(World worldIn)
{
super(worldIn);
this.setHealth(this.getMaxHealth());
this.setSize(0.9F, 3.5F);
this.isImmuneToFire = true;
((PathNavigateGround) this.getNavigator()).setCanSwim(true);
this.experienceValue = 50;
}
/**
* Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons
* use this to react to sunlight and start to burn.
*/
public void onLivingUpdate()
{
this.motionY *= 0.6000000238418579D;
if (!this.world.isRemote && this.getWatchedTargetId(0) > 0)
{
Entity entity = this.world.getEntityByID(this.getWatchedTargetId(0));
if (entity != null)
{
if (this.posY < entity.posY || !this.isArmored() && this.posY < entity.posY + 5.0D)
{
if (this.motionY < 0.0D)
{
this.motionY = 0.0D;
}
this.motionY += (0.5D - this.motionY) * 0.6000000238418579D;
}
double d0 = entity.posX - this.posX;
double d1 = entity.posZ - this.posZ;
double d3 = d0 * d0 + d1 * d1;
if (d3 > 9.0D)
{
double d5 = MathHelper.sqrt(d3);
this.motionX += (d0 / d5 * 0.5D - this.motionX) * 0.6000000238418579D;
this.motionZ += (d1 / d5 * 0.5D - this.motionZ) * 0.6000000238418579D;
}
}
}
if (this.motionX * this.motionX + this.motionZ * this.motionZ > 0.05000000074505806D)
{
this.rotationYaw = (float) MathHelper.atan2(this.motionZ, this.motionX) * (180F / (float) Math.PI) - 90.0F;
}
super.onLivingUpdate();
for (int i = 0; i < 2; ++i)
{
this.yRotOHeads[i] = this.yRotationHeads[i];
this.xRotOHeads[i] = this.xRotationHeads[i];
}
for (int j = 0; j < 2; ++j)
{
int k = this.getWatchedTargetId(j + 1);
Entity entity1 = null;
if (k > 0)
{
entity1 = this.world.getEntityByID(k);
}
if (entity1 != null)
{
double d11 = this.getHeadX(j + 1);
double d12 = this.getHeadY(j + 1);
double d13 = this.getHeadZ(j + 1);
double d6 = entity1.posX - d11;
double d7 = entity1.posY + (double) entity1.getEyeHeight() - d12;
double d8 = entity1.posZ - d13;
double d9 = MathHelper.sqrt(d6 * d6 + d8 * d8);
float f = (float) (MathHelper.atan2(d8, d6) * (180D / Math.PI)) - 90.0F;
float f1 = (float) (-(MathHelper.atan2(d7, d9) * (180D / Math.PI)));
this.xRotationHeads[j] = this.rotlerp(this.xRotationHeads[j], f1, 40.0F);
this.yRotationHeads[j] = this.rotlerp(this.yRotationHeads[j], f, 10.0F);
}
else
{
this.yRotationHeads[j] = this.rotlerp(this.yRotationHeads[j], this.renderYawOffset, 10.0F);
}
}
boolean flag = this.isArmored();
for (int l = 0; l < 3; ++l)
{
double d10 = this.getHeadX(l);
double d2 = this.getHeadY(l);
double d4 = this.getHeadZ(l);
this.world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d10 + this.rand.nextGaussian() * 0.30000001192092896D, d2 + this.rand.nextGaussian() * 0.30000001192092896D, d4 + this.rand.nextGaussian() * 0.30000001192092896D, 0.0D, 0.0D, 0.0D);
if (flag && this.world.rand.nextInt(4) == 0)
{
this.world.spawnParticle(EnumParticleTypes.SPELL_MOB, d10 + this.rand.nextGaussian() * 0.30000001192092896D, d2 + this.rand.nextGaussian() * 0.30000001192092896D, d4 + this.rand.nextGaussian() * 0.30000001192092896D, 0.699999988079071D, 0.699999988079071D, 0.5D);
}
}
if (this.getInvulTime() > 0)
{
for (int i1 = 0; i1 < 3; ++i1)
{
this.world.spawnParticle(EnumParticleTypes.SPELL_MOB, this.posX + this.rand.nextGaussian(), this.posY + (double) (this.rand.nextFloat() * 3.3F), this.posZ + this.rand.nextGaussian(), 0.699999988079071D, 0.699999988079071D, 0.8999999761581421D);
}
}
}
/**
* Called when the entity is attacked.
*/
public boolean attackEntityFrom(DamageSource source, float amount)
{
if (this.isEntityInvulnerable(source))
{
return false;
}
else if (source != DamageSource.DROWN && !(source.getTrueSource() instanceof EntityJensWither))
{
if (this.getInvulTime() > 0 && source != DamageSource.OUT_OF_WORLD)
{
return false;
}
else
{
if (this.isArmored())
{
Entity entity = source.getImmediateSource();
if (entity instanceof EntityArrow)
{
return false;
}
}
Entity entity1 = source.getTrueSource();
if (!(entity1 instanceof EntityPlayer) && entity1 instanceof EntityLivingBase && ((EntityLivingBase) entity1).getCreatureAttribute() == this.getCreatureAttribute())
{
return false;
}
else
{
if (this.blockBreakCounter <= 0)
{
this.blockBreakCounter = 20;
}
for (int i = 0; i < this.idleHeadUpdates.length; ++i)
{
this.idleHeadUpdates[i] += 3;
}
return super.attackEntityFrom(source, amount);
}
}
}
else
{
return false;
}
}
protected SoundEvent getHurtSound(DamageSource damageSourceIn)
{
return SoundEvents.ENTITY_WITHER_HURT;
}
protected SoundEvent getDeathSound()
{
return SoundEvents.ENTITY_WITHER_DEATH;
}
protected void applyEntityAttributes()
{
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(300.0D);
this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.6000000238418579D);
this.getEntityAttribute(SharedMonsterAttributes.FOLLOW_RANGE).setBaseValue(40.0D);
this.getEntityAttribute(SharedMonsterAttributes.ARMOR).setBaseValue(4.0D);
}
/**
* Initializes this Wither's explosion sequence and makes it invulnerable. Called immediately after spawning.
*/
public void ignite()
{
this.setInvulTime(220);
this.setHealth(this.getMaxHealth() / 3.0F);
}
/**
* Attack the specified entity using a ranged attack.
*/
public void attackEntityWithRangedAttack(EntityLivingBase target, float distanceFactor)
{
this.launchWitherSkullToEntity(0, target);
}
public void setSwingingArms(boolean swingingArms)
{
}
@SideOnly(Side.CLIENT)
public int getBrightnessForRender()
{
return 15728880;
}
protected boolean canBeRidden(Entity entityIn)
{
return false;
}
/**
* Sets the Entity inside a web block.
*/
public void setInWeb()
{
}
/**
* Returns false if this Entity is a boss, true otherwise.
*/
public boolean isNonBoss()
{
return false;
}
/**
* Sets the custom name tag for this entity
*/
public void setCustomNameTag(String name)
{
super.setCustomNameTag(name);
this.bossInfo.setName(this.getDisplayName());
}
/**
* Add the given player to the list of players tracking this entity. For instance, a player may track a boss in
* order to view its associated boss bar.
*/
public void addTrackingPlayer(EntityPlayerMP player)
{
super.addTrackingPlayer(player);
this.bossInfo.addPlayer(player);
}
/**
* Removes the given player from the list of players tracking this entity. See {@link Entity#addTrackingPlayer} for
* more information on tracking.
*/
public void removeTrackingPlayer(EntityPlayerMP player)
{
super.removeTrackingPlayer(player);
this.bossInfo.removePlayer(player);
}
/**
* adds a PotionEffect to the entity
*/
public void addPotionEffect(PotionEffect potioneffectIn)
{
}
public void fall(float distance, float damageMultiplier)
{
}
/**
* Get this Entity's EnumCreatureAttribute
*/
public EnumCreatureAttribute getCreatureAttribute()
{
return EnumCreatureAttribute.UNDEAD;
}
@SideOnly(Side.CLIENT)
public float getHeadYRotation(int p_82207_1_)
{
return this.yRotationHeads[p_82207_1_];
}
@SideOnly(Side.CLIENT)
public float getHeadXRotation(int p_82210_1_)
{
return this.xRotationHeads[p_82210_1_];
}
public int getInvulTime()
{
return this.dataManager.get(INVULNERABILITY_TIME);
}
public void setInvulTime(int time)
{
this.dataManager.set(INVULNERABILITY_TIME, time);
}
/**
* Returns the target entity ID if present, or -1 if not @param par1 The target offset, should be from 0-2
*/
public int getWatchedTargetId(int head)
{
return this.dataManager.get(HEAD_TARGETS[head]);
}
/**
* Updates the target entity ID
*/
public void updateWatchedTargetId(int targetOffset, int newId)
{
this.dataManager.set(HEAD_TARGETS[targetOffset], newId);
}
/**
* Returns whether the wither is armored with its boss armor or not by checking whether its health is below half of
* its maximum.
*/
public boolean isArmored()
{
return this.getHealth() <= this.getMaxHealth() / 2.0F;
}
protected void initEntityAI()
{
this.tasks.addTask(0, new EntityJensWither.AIDoNothing());
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIAttackRanged(this, 1.0D, 40, 20.0F));
this.tasks.addTask(5, new EntityAIWanderAvoidWater(this, 1.0D));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, false, NOT_UNDEAD));
}
protected void entityInit()
{
super.entityInit();
this.dataManager.register(FIRST_HEAD_TARGET, 0);
this.dataManager.register(SECOND_HEAD_TARGET, 0);
this.dataManager.register(THIRD_HEAD_TARGET, 0);
this.dataManager.register(INVULNERABILITY_TIME, 0);
}
protected SoundEvent getAmbientSound()
{
return SoundEvents.ENTITY_WITHER_AMBIENT;
}
/**
* Drop 0-2 items of this living's type
*/
protected void dropFewItems(boolean wasRecentlyHit, int lootingModifier)
{
EntityItem entityitem = this.dropItem(Items.NETHER_STAR, 1);
if (entityitem != null)
{
entityitem.setNoDespawn();
}
}
/**
* (abstract) Protected helper method to write subclass entity data to NBT.
*/
public void writeEntityToNBT(NBTTagCompound compound)
{
super.writeEntityToNBT(compound);
compound.setInteger("Invul", this.getInvulTime());
}
/**
* (abstract) Protected helper method to read subclass entity data from NBT.
*/
public void readEntityFromNBT(NBTTagCompound compound)
{
super.readEntityFromNBT(compound);
this.setInvulTime(compound.getInteger("Invul"));
if (this.hasCustomName())
{
this.bossInfo.setName(this.getDisplayName());
}
}
/**
* Makes the entity despawn if requirements are reached
*/
protected void despawnEntity()
{
this.idleTime = 0;
}
protected void updateAITasks()
{
if (this.getInvulTime() > 0)
{
int j1 = this.getInvulTime() - 1;
if (j1 <= 0)
{
this.world.newExplosion(this, this.posX, this.posY + (double) this.getEyeHeight(), this.posZ, 7.0F, false, net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.world, this));
this.world.playBroadcastSound(1023, new BlockPos(this), 0);
}
this.setInvulTime(j1);
if (this.ticksExisted % 10 == 0)
{
this.heal(10.0F);
}
}
else
{
super.updateAITasks();
for (int i = 1; i < 3; ++i)
{
if (this.ticksExisted >= this.nextHeadUpdate[i - 1])
{
this.nextHeadUpdate[i - 1] = this.ticksExisted + 10 + this.rand.nextInt(10);
if (this.world.getDifficulty() == EnumDifficulty.NORMAL || this.world.getDifficulty() == EnumDifficulty.HARD)
{
int j3 = i - 1;
int k3 = this.idleHeadUpdates[i - 1];
this.idleHeadUpdates[j3] = this.idleHeadUpdates[i - 1] + 1;
if (k3 > 15)
{
float f = 10.0F;
float f1 = 5.0F;
double d0 = MathHelper.nextDouble(this.rand, this.posX - 10.0D, this.posX + 10.0D);
double d1 = MathHelper.nextDouble(this.rand, this.posY - 5.0D, this.posY + 5.0D);
double d2 = MathHelper.nextDouble(this.rand, this.posZ - 10.0D, this.posZ + 10.0D);
this.launchWitherSkullToCoords(i + 1, d0, d1, d2, true);
this.idleHeadUpdates[i - 1] = 0;
}
}
int k1 = this.getWatchedTargetId(i);
if (k1 > 0)
{
Entity entity = this.world.getEntityByID(k1);
if (entity != null && entity.isEntityAlive() && this.getDistanceSq(entity) <= 900.0D && this.canEntityBeSeen(entity))
{
if (entity instanceof EntityPlayer && ((EntityPlayer) entity).capabilities.disableDamage)
{
this.updateWatchedTargetId(i, 0);
}
else
{
this.launchWitherSkullToEntity(i + 1, (EntityLivingBase) entity);
this.nextHeadUpdate[i - 1] = this.ticksExisted + 40 + this.rand.nextInt(20);
this.idleHeadUpdates[i - 1] = 0;
}
}
else
{
this.updateWatchedTargetId(i, 0);
}
}
else
{
List<EntityLivingBase> list = this.world.getEntitiesWithinAABB(EntityLivingBase.class, this.getEntityBoundingBox().grow(20.0D, 8.0D, 20.0D), Predicates.and(NOT_UNDEAD, EntitySelectors.NOT_SPECTATING));
for (int j2 = 0; j2 < 10 && !list.isEmpty(); ++j2)
{
EntityLivingBase entitylivingbase = list.get(this.rand.nextInt(list.size()));
if (entitylivingbase != this && entitylivingbase.isEntityAlive() && this.canEntityBeSeen(entitylivingbase))
{
if (entitylivingbase instanceof EntityPlayer)
{
if (!((EntityPlayer) entitylivingbase).capabilities.disableDamage)
{
this.updateWatchedTargetId(i, entitylivingbase.getEntityId());
}
}
else
{
this.updateWatchedTargetId(i, entitylivingbase.getEntityId());
}
break;
}
list.remove(entitylivingbase);
}
}
}
}
if (this.getAttackTarget() != null)
{
this.updateWatchedTargetId(0, this.getAttackTarget().getEntityId());
}
else
{
this.updateWatchedTargetId(0, 0);
}
if (this.blockBreakCounter > 0)
{
--this.blockBreakCounter;
if (this.blockBreakCounter == 0 && net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.world, this))
{
int i1 = MathHelper.floor(this.posY);
int l1 = MathHelper.floor(this.posX);
int i2 = MathHelper.floor(this.posZ);
boolean flag = false;
for (int k2 = -1; k2 <= 1; ++k2)
{
for (int l2 = -1; l2 <= 1; ++l2)
{
for (int j = 0; j <= 3; ++j)
{
int i3 = l1 + k2;
int k = i1 + j;
int l = i2 + l2;
BlockPos blockpos = new BlockPos(i3, k, l);
IBlockState iblockstate = this.world.getBlockState(blockpos);
Block block = iblockstate.getBlock();
if (!block.isAir(iblockstate, this.world, blockpos) && block.canEntityDestroy(iblockstate, world, blockpos, this) && net.minecraftforge.event.ForgeEventFactory.onEntityDestroyBlock(this, blockpos, iblockstate))
{
flag = this.world.destroyBlock(blockpos, true) || flag;
}
}
}
}
if (flag)
{
this.world.playEvent(null, 1022, new BlockPos(this), 0);
}
}
}
if (this.ticksExisted % 20 == 0)
{
this.heal(1.0F);
}
this.bossInfo.setPercent(this.getHealth() / this.getMaxHealth());
}
}
private double getHeadX(int p_82214_1_)
{
if (p_82214_1_ <= 0)
{
return this.posX;
}
else
{
float f = (this.renderYawOffset + (float) (180 * (p_82214_1_ - 1))) * 0.017453292F;
float f1 = MathHelper.cos(f);
return this.posX + (double) f1 * 1.3D;
}
}
private double getHeadY(int p_82208_1_)
{
return p_82208_1_ <= 0 ? this.posY + 3.0D : this.posY + 2.2D;
}
private double getHeadZ(int p_82213_1_)
{
if (p_82213_1_ <= 0)
{
return this.posZ;
}
else
{
float f = (this.renderYawOffset + (float) (180 * (p_82213_1_ - 1))) * 0.017453292F;
float f1 = MathHelper.sin(f);
return this.posZ + (double) f1 * 1.3D;
}
}
private float rotlerp(float p_82204_1_, float p_82204_2_, float p_82204_3_)
{
float f = MathHelper.wrapDegrees(p_82204_2_ - p_82204_1_);
if (f > p_82204_3_)
{
f = p_82204_3_;
}
if (f < -p_82204_3_)
{
f = -p_82204_3_;
}
return p_82204_1_ + f;
}
private void launchWitherSkullToEntity(int p_82216_1_, EntityLivingBase p_82216_2_)
{
this.launchWitherSkullToCoords(p_82216_1_, p_82216_2_.posX, p_82216_2_.posY + (double) p_82216_2_.getEyeHeight() * 0.5D, p_82216_2_.posZ, p_82216_1_ == 0 && this.rand.nextFloat() < 0.001F);
}
/**
* Launches a Wither skull toward (par2, par4, par6)
*/
private void launchWitherSkullToCoords(int p_82209_1_, double x, double y, double z, boolean invulnerable)
{
this.world.playEvent(null, 1024, new BlockPos(this), 0);
double d0 = this.getHeadX(p_82209_1_);
double d1 = this.getHeadY(p_82209_1_);
double d2 = this.getHeadZ(p_82209_1_);
double d3 = x - d0;
double d4 = y - d1;
double d5 = z - d2;
EntityWitherSkull EntityWitherskull = new EntityWitherSkull(this.world, this, d3, d4, d5);
if (invulnerable)
{
EntityWitherskull.setInvulnerable(true);
}
EntityWitherskull.posY = d1;
EntityWitherskull.posX = d0;
EntityWitherskull.posZ = d2;
this.world.spawnEntity(EntityWitherskull);
}
class AIDoNothing extends EntityAIBase
{
public AIDoNothing()
{
this.setMutexBits(7);
}
/**
* Returns whether the EntityAIBase should begin execution.
*/
public boolean shouldExecute()
{
return EntityJensWither.this.getInvulTime() > 0;
}
}
}

View file

@ -1,55 +0,0 @@
package mod.acgaming.spackenmobs.entities.ai;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.ai.EntityAIBase;
import mod.acgaming.spackenmobs.entities.EntityIslamist;
public class EntityAIIslamistSwell extends EntityAIBase
{
EntityIslamist swellingCreeper;
EntityLivingBase creeperAttackTarget;
public EntityAIIslamistSwell(EntityIslamist entitycreeperIn)
{
this.swellingCreeper = entitycreeperIn;
this.setMutexBits(1);
}
public boolean shouldExecute()
{
EntityLivingBase entitylivingbase = this.swellingCreeper.getAttackTarget();
return this.swellingCreeper.getCreeperState() > 0 || entitylivingbase != null && this.swellingCreeper.getDistanceSq(entitylivingbase) < 9.0D;
}
public void startExecuting()
{
this.swellingCreeper.getNavigator().clearPath();
this.creeperAttackTarget = this.swellingCreeper.getAttackTarget();
}
public void resetTask()
{
this.creeperAttackTarget = null;
}
public void updateTask()
{
if (this.creeperAttackTarget == null)
{
this.swellingCreeper.setCreeperState(-1);
}
else if (this.swellingCreeper.getDistanceSq(this.creeperAttackTarget) > 49.0D)
{
this.swellingCreeper.setCreeperState(-1);
}
else if (!this.swellingCreeper.getEntitySenses().canSee(this.creeperAttackTarget))
{
this.swellingCreeper.setCreeperState(-1);
}
else
{
this.swellingCreeper.setCreeperState(1);
}
}
}

View file

@ -38,8 +38,6 @@ public class ModConfigs
public boolean Friedrich_spawn = true;
@Name("Allow Holzstammhuhn to spawn?")
public boolean Holzstammhuhn_spawn = true;
@Name("Allow Islamist to spawn?")
public boolean Islamist_spawn = true;
@Name("Allow Jens to spawn?")
public boolean Jens_spawn = true;
@Name("Allow Marcell D'Avis to spawn?")
@ -55,7 +53,7 @@ public class ModConfigs
@Name("Allow Gisela to spawn?")
public boolean Gisela_spawn = true;
@Name("Allow tilera Ghast to spawn?")
public boolean tileraGhast_spawn = true;
public boolean tileraGhast_spawn = false;
}
public static class SpawnValues
@ -90,12 +88,6 @@ public class ModConfigs
public int Holzstammhuhn_min = 1;
@Name("Holzstammhuhn max group size:")
public int Holzstammhuhn_max = 1;
@Name("Islamist spawn weight:")
public int Islamist_weight = 15;
@Name("Islamist min group size:")
public int Islamist_min = 1;
@Name("Islamist max group size:")
public int Islamist_max = 1;
@Name("Jens spawn weight:")
public int Jens_weight = 10;
@Name("Jens min group size:")

View file

@ -15,7 +15,6 @@ public class ModEntities
RenderingRegistry.registerEntityRenderingHandler(EntityFriedrichLiechtenstein.class, RenderFriedrichLiechtenstein.FACTORY);
RenderingRegistry.registerEntityRenderingHandler(EntityGisela.class, RenderGisela.FACTORY);
RenderingRegistry.registerEntityRenderingHandler(EntityHolzstammhuhn.class, RenderHolzstammhuhn.FACTORY);
RenderingRegistry.registerEntityRenderingHandler(EntityIslamist.class, RenderIslamist.FACTORY);
RenderingRegistry.registerEntityRenderingHandler(EntityJens.class, RenderJens.FACTORY);
RenderingRegistry.registerEntityRenderingHandler(EntityMZTEWolf.class, RenderMZTEWolf.FACTORY);
RenderingRegistry.registerEntityRenderingHandler(EntityMarcellDAvis.class, RenderMarcellDAvis.FACTORY);

View file

@ -18,11 +18,6 @@ public class ModSoundEvents
public static final SoundEvent ENTITY_MARCELLDAVIS_HURT = new SoundEvent(new ResourceLocation("spackenmobs:entities.marcell_davis.hurt"));
public static final SoundEvent ENTITY_MARCELLDAVIS_DEATH = new SoundEvent(new ResourceLocation("spackenmobs:entities.marcell_davis.death"));
public static final SoundEvent ENTITY_ISLAMIST_FUSE = new SoundEvent(new ResourceLocation("spackenmobs:entities.islamist.fuse"));
public static final SoundEvent ENTITY_ISLAMIST_BLOW = new SoundEvent(new ResourceLocation("spackenmobs:entities.islamist.blow"));
public static final SoundEvent ENTITY_ISLAMIST_HURT = new SoundEvent(new ResourceLocation("spackenmobs:entities.islamist.hurt"));
public static final SoundEvent ENTITY_ISLAMIST_AMBIENT = new SoundEvent(new ResourceLocation("spackenmobs:entities.islamist.ambient"));
public static final SoundEvent ENTITY_APORED_AMBIENT = new SoundEvent(new ResourceLocation("spackenmobs:entities.apored.ambient"));
public static final SoundEvent ENTITY_APORED_HURT = new SoundEvent(new ResourceLocation("spackenmobs:entities.apored.hurt"));
public static final SoundEvent ENTITY_APORED_DEATH = new SoundEvent(new ResourceLocation("spackenmobs:entities.apored.death"));

View file

@ -63,19 +63,6 @@ public class RegistryHandler
regularSpawning.toArray(new Biome[0]));
}
// Islamist
EntityRegistry.registerModEntity(new ResourceLocation("spackenmobs:islamist"), EntityIslamist.class, "islamist", id++, Spackenmobs.instance, 64, 1, true, 15263976, 15211548);
if (ModConfigs.spawn_switches.Islamist_spawn)
{
EntityRegistry.addSpawn(
EntityIslamist.class,
ModConfigs.spawn_values.Islamist_weight,
ModConfigs.spawn_values.Islamist_min,
ModConfigs.spawn_values.Islamist_max,
EnumCreatureType.MONSTER,
regularSpawning.toArray(new Biome[0]));
}
// ApoRed
EntityRegistry.registerModEntity(new ResourceLocation("spackenmobs:apored"), EntityApoRed.class, "apored", id++, Spackenmobs.instance, 64, 1, true, 2039583, 16711680);
if (ModConfigs.spawn_switches.ApoRed_spawn)
@ -239,16 +226,6 @@ public class RegistryHandler
ModSoundEvents.ENTITY_SMAVACREEPER_AMBIENT.setRegistryName(new ResourceLocation("spackenmobs:entities.smava_creeper.ambient"));
event.getRegistry().register(ModSoundEvents.ENTITY_SMAVACREEPER_AMBIENT);
// Islamist
ModSoundEvents.ENTITY_ISLAMIST_FUSE.setRegistryName(new ResourceLocation("spackenmobs:entities.islamist.fuse"));
event.getRegistry().register(ModSoundEvents.ENTITY_ISLAMIST_FUSE);
ModSoundEvents.ENTITY_ISLAMIST_BLOW.setRegistryName(new ResourceLocation("spackenmobs:entities.islamist.blow"));
event.getRegistry().register(ModSoundEvents.ENTITY_ISLAMIST_BLOW);
ModSoundEvents.ENTITY_ISLAMIST_HURT.setRegistryName(new ResourceLocation("spackenmobs:entities.islamist.hurt"));
event.getRegistry().register(ModSoundEvents.ENTITY_ISLAMIST_HURT);
ModSoundEvents.ENTITY_ISLAMIST_AMBIENT.setRegistryName(new ResourceLocation("spackenmobs:entities.islamist.ambient"));
event.getRegistry().register(ModSoundEvents.ENTITY_ISLAMIST_AMBIENT);
// Marcell D'Avis
ModSoundEvents.ENTITY_MARCELLDAVIS_AMBIENT.setRegistryName(new ResourceLocation("spackenmobs:entities.marcell_davis.ambient"));
event.getRegistry().register(ModSoundEvents.ENTITY_MARCELLDAVIS_AMBIENT);

View file

@ -1,61 +0,0 @@
package mod.acgaming.spackenmobs.render;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelWither;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.layers.LayerRenderer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import mod.acgaming.spackenmobs.entities.EntityJensWither;
@SideOnly(Side.CLIENT)
public class LayerJensWitherAura implements LayerRenderer<EntityJensWither>
{
private static final ResourceLocation WITHER_ARMOR = new ResourceLocation("textures/entity/wither/wither_armor.png");
private final RenderJensWither witherRenderer;
private final ModelWither witherModel = new ModelWither(0.5F);
public LayerJensWitherAura(RenderJensWither witherRendererIn)
{
this.witherRenderer = witherRendererIn;
}
public void doRenderLayer(EntityJensWither entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale)
{
if (entitylivingbaseIn.isArmored())
{
GlStateManager.depthMask(!entitylivingbaseIn.isInvisible());
this.witherRenderer.bindTexture(WITHER_ARMOR);
GlStateManager.matrixMode(5890);
GlStateManager.loadIdentity();
float f = (float) entitylivingbaseIn.ticksExisted + partialTicks;
float f1 = MathHelper.cos(f * 0.02F) * 3.0F;
float f2 = f * 0.01F;
GlStateManager.translate(f1, f2, 0.0F);
GlStateManager.matrixMode(5888);
GlStateManager.enableBlend();
float f3 = 0.5F;
GlStateManager.color(0.5F, 0.5F, 0.5F, 1.0F);
GlStateManager.disableLighting();
GlStateManager.blendFunc(GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ONE);
this.witherModel.setLivingAnimations(entitylivingbaseIn, limbSwing, limbSwingAmount, partialTicks);
this.witherModel.setModelAttributes(this.witherRenderer.getMainModel());
Minecraft.getMinecraft().entityRenderer.setupFogColor(true);
this.witherModel.render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale);
Minecraft.getMinecraft().entityRenderer.setupFogColor(false);
GlStateManager.matrixMode(5890);
GlStateManager.loadIdentity();
GlStateManager.matrixMode(5888);
GlStateManager.enableLighting();
GlStateManager.disableBlend();
}
}
public boolean shouldCombineTextures()
{
return false;
}
}

View file

@ -1,71 +0,0 @@
package mod.acgaming.spackenmobs.render;
import net.minecraft.client.model.ModelCreeper;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import net.minecraftforge.fml.client.registry.IRenderFactory;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import mod.acgaming.spackenmobs.entities.EntityIslamist;
@SideOnly(Side.CLIENT)
public class RenderIslamist extends RenderLiving<EntityIslamist>
{
public static final Factory FACTORY = new Factory();
private static final ResourceLocation ISLAMIST_TEXTURE = new ResourceLocation("spackenmobs:textures/entities/islamist.png");
public RenderIslamist(RenderManager renderManagerIn)
{
super(renderManagerIn, new ModelCreeper(), 0.5F);
}
@Override
protected int getColorMultiplier(EntityIslamist entitylivingbaseIn, float lightBrightness, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
if ((int) (f * 10.0F) % 2 == 0)
{
return 0;
}
else
{
int i = (int) (f * 0.2F * 255.0F);
i = MathHelper.clamp(i, 0, 255);
return i << 24 | 822083583;
}
}
@Override
protected void preRenderCallback(EntityIslamist entitylivingbaseIn, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
float f1 = 1.0F + MathHelper.sin(f * 100.0F) * f * 0.01F;
f = MathHelper.clamp(f, 0.0F, 1.0F);
f = f * f;
f = f * f;
float f2 = (1.0F + f * 0.4F) * f1;
float f3 = (1.0F + f * 0.1F) / f1;
GlStateManager.scale(f2, f3, f2);
}
@Override
protected ResourceLocation getEntityTexture(EntityIslamist entity)
{
return ISLAMIST_TEXTURE;
}
public static class Factory implements IRenderFactory<EntityIslamist>
{
@Override
public Render<? super EntityIslamist> createRenderFor(RenderManager manager)
{
return new RenderIslamist(manager);
}
}
}

View file

@ -1,58 +0,0 @@
package mod.acgaming.spackenmobs.render;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.model.ModelWither;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import mod.acgaming.spackenmobs.entities.EntityJensWither;
@SideOnly(Side.CLIENT)
public class RenderJensWither extends RenderLiving<EntityJensWither>
{
private static final ResourceLocation INVULNERABLE_JENS_WITHER_TEXTURE = new ResourceLocation("spackenmobs:textures/entities/jens_wither_inv.png");
private static final ResourceLocation JENS_WITHER_TEXTURE = new ResourceLocation("spackenmobs:textures/entities/jens_wither.png");
public RenderJensWither(RenderManager renderManagerIn)
{
super(renderManagerIn, new ModelWither(0.0F), 1.0F);
this.addLayer(new LayerJensWitherAura(this));
}
public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState state, BlockPos pos, EntityLivingBase entityLiving)
{
if (!worldIn.isRemote && (double) state.getBlockHardness(worldIn, pos) != 0.0D)
{
stack.damageItem(1, entityLiving);
}
return true;
}
protected ResourceLocation getEntityTexture(EntityJensWither entity)
{
int i = entity.getInvulTime();
return i > 0 && (i > 80 || i / 5 % 2 != 1) ? INVULNERABLE_JENS_WITHER_TEXTURE : JENS_WITHER_TEXTURE;
}
protected void preRenderCallback(EntityJensWither entitylivingbaseIn, float partialTickTime)
{
float f = 2.0F;
int i = entitylivingbaseIn.getInvulTime();
if (i > 0)
{
f -= ((float) i - partialTickTime) / 220.0F * 0.5F;
}
GlStateManager.scale(f, f, f);
}
}

View file

@ -16,9 +16,7 @@ entity.drachenlord.name=Drachenlord
entity.friedrich.name=Friedrich Liechtenstein
entity.gisela.name=Gisela
entity.holzstammhuhn.name=Holzstammhuhn
entity.islamist.name=Islamist
entity.jens.name=Jens
entity.jens_wither.name=Jens-Wither
entity.marcell_davis.name=Marcell D'Avis
entity.mr_bean.name=Mr. Bean
entity.mztewolf.name=MZTEWolf

View file

@ -16,9 +16,7 @@ entity.drachenlord.name=Drachenlord
entity.friedrich.name=Friedrich Liechtenstein
entity.gisela.name=Gisela
entity.holzstammhuhn.name=Holzstammhuhn
entity.islamist.name=Islamist
entity.jens.name=Jens
entity.jens_wither.name=Jens Wither
entity.marcell_davis.name=Marcell D'Avis
entity.mr_bean.name=Mr. Bean
entity.mztewolf.name=MZTEWolf

View file

@ -270,61 +270,6 @@
}
]
},
"entities.islamist.fuse": {
"sounds": [
{
"name": "spackenmobs:islamist/fuse1"
},
{
"name": "spackenmobs:islamist/fuse2"
},
{
"name": "spackenmobs:islamist/fuse3"
},
{
"name": "spackenmobs:islamist/fuse4"
}
]
},
"entities.islamist.blow": {
"sounds": [
{
"name": "spackenmobs:islamist/blow"
}
]
},
"entities.islamist.hurt": {
"sounds": [
{
"name": "spackenmobs:islamist/say1"
},
{
"name": "spackenmobs:islamist/say2"
},
{
"name": "spackenmobs:islamist/say3"
},
{
"name": "spackenmobs:islamist/say4"
}
]
},
"entities.islamist.ambient": {
"sounds": [
{
"name": "spackenmobs:islamist/say1"
},
{
"name": "spackenmobs:islamist/say2"
},
{
"name": "spackenmobs:islamist/say3"
},
{
"name": "spackenmobs:islamist/say4"
}
]
},
"entities.apored.ambient": {
"sounds": [
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

View file

@ -3,7 +3,7 @@
"modid": "spackenmobs",
"name": "Spackenmobs",
"description": "The most important mobs in the history of Minecraft! [citation needed]",
"version": "RC8",
"version": "1.8-CF",
"mcversion": "1.12.2",
"url": "https://github.com/ACGaming/Spackenmobs",
"updateUrl": "",