-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZombies.java
67 lines (54 loc) · 2.4 KB
/
Zombies.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package freeradicalx.zombies;
import org.lwjgl.input.Keyboard;
import thehippomaster.AnimationExample.EntityTest;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.client.registry.KeyBindingRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import freeradicalx.vehicles.EntityBuick;
import freeradicalx.vehicles.VehiclesCommonProxy;
import freeradicalx.vehicles.packets.VehiclesPacketHandler;
import freeradicalx.zombies.lib.Reference;
@Mod(
modid = Reference.MOD_ID,
name = Reference.MOD_NAME,
version = Reference.MOD_VERSION)
@NetworkMod(
serverSideRequired = false,
clientSideRequired = true)
public class Zombies {
@SidedProxy
(clientSide = "freeradicalx.zombies.ZombiesClientProxy", serverSide = "freeradicalx.zombies.ZombiesCommonProxy")
public static ZombiesCommonProxy proxy;
@EventHandler
public void load(FMLInitializationEvent event){
proxy.registerRenderers();
proxy.registerSounds();
proxy.registerItems();
MinecraftForge.EVENT_BUS.register(new SpawnListener());
EntityRegistry.registerGlobalEntityID(EntityWalker.class, "Walker", 1, 1000, 5000);
EntityRegistry.registerGlobalEntityID(EntityCrawler.class, "Crawler", 2, 1000, 5000);
//EntityRegistry.registerGlobalEntityID(EntityCrawler1.class, "Crawler 1", 3, 1000, 5000);
for (int i = 0; i < BiomeGenBase.biomeList.length; i++)
{
if (BiomeGenBase.biomeList[i] != null)
{
EntityRegistry.addSpawn(EntityWalker.class, 10, 1, 3, EnumCreatureType.monster, BiomeGenBase.biomeList[i]);
//EntityRegistry.addSpawn(EntityZombie2.class, 10, 1, 3, EnumCreatureType.monster, BiomeGenBase.biomeList[i]);
}
}
LanguageRegistry.instance().addStringLocalization("entity.testmob2.name", "Test Mob 2");
LanguageRegistry.instance().addStringLocalization("entity.zombie2.name", "Zombie 2");
LanguageRegistry.instance().addStringLocalization("entity.crawler1.name", "Crawler 1");
}
}