Entity Localisation and a couple derpfixes

dev
TheDoctorSoda 2015-10-25 13:47:45 -07:00 committed by Arona Jones
parent 7d9add436e
commit 18d012789c
3 changed files with 5 additions and 11 deletions

View File

@ -65,7 +65,6 @@ public class EntitySplashLightningBottle extends BaseThrowableEntity {
}
}
}
this.worldObj.playAuxSFX(2002, (int) Math.round(this.posX), (int) Math.round(this.posY), (int) Math.round(this.posZ), 0);
this.setDead();
}

View File

@ -12,12 +12,9 @@
*/
package steamcraft.common.init;
import net.minecraft.entity.EnumCreatureType;
import cpw.mods.fml.common.registry.EntityRegistry;
import net.minecraft.entity.EnumCreatureType;
import net.minecraftforge.common.BiomeDictionary;
import steamcraft.common.Steamcraft;
import steamcraft.common.entities.EntityFallingBoulder;
import steamcraft.common.entities.EntityTimeBomb;
@ -42,10 +39,8 @@ import steamcraft.common.entities.projectile.EntitySplashLightningBottle;
* @author Surseance
*
*/
public class InitEntities
{
public static void init()
{
public class InitEntities {
public static void init() {
int entID = 0;
// Mobs
@ -61,8 +56,7 @@ public class InitEntities
EntityRegistry.registerModEntity(EntityShroomSkeleton.class, "ShroomSkeleton", entID++, Steamcraft.instance, 64, 1, true);
EntityRegistry.registerModEntity(EntityAbandonedGolem.class, "AbandonedGolem", entID++, Steamcraft.instance, 64, 1, true);
EntityRegistry.registerModEntity(EntityWhale.class, "Whale", entID++, Steamcraft.instance, 64, 1, true);
EntityRegistry.addSpawn(EntityWhale.class, 1, 1, 1, EnumCreatureType.waterCreature,
BiomeDictionary.getBiomesForType(BiomeDictionary.Type.OCEAN));
EntityRegistry.addSpawn(EntityWhale.class, 1, 1, 1, EnumCreatureType.waterCreature, BiomeDictionary.getBiomesForType(BiomeDictionary.Type.OCEAN));
// Non-Living
// Projectile
EntityRegistry.registerModEntity(EntityBullet.class, "Bullet", entID++, Steamcraft.instance, 40, 1, true);

View File

@ -12,3 +12,4 @@ item.itemNugget.0.name=Aluminium Nugget
item.itemClockworkRocket.2.desc=Armour-Piercing Shell
item.itemSteamcraftcluster.0.name=Native Aluminium Cluster