One of the users of my mod seems to have the Kirby mod crash every time they use. It works just fine when I have it in the editor. Maybe you can explain what I did wrong.
Crash report.
---- Minecraft Crash Report ----
// I'm sorry, Dave.
Time: 3/20/16 5:58 PM
Description: There was a severe problem during mod loading that has caused the game to fail
net.minecraftforge.fml.common.LoaderException: java.lang.NoSuchMethodError: net.minecraftforge.fml.common.registry.EntityRegistry.registerModEntity(Ljava/lang/Class;Ljava/lang/String;ILjava/lang/Object;IIZII)V
at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:163)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:712)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:315)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:491)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:325)
at net.minecraft.client.main.Main.main(SourceFile:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoSuchMethodError: net.minecraftforge.fml.common.registry.EntityRegistry.registerModEntity(Ljava/lang/Class;Ljava/lang/String;ILjava/lang/Object;IIZII)V
at kirbyandfriends.KirbyMod.load(KirbyMod.java:196)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:710)
... 10 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 71239736 bytes (67 MB) / 283820032 bytes (270 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1446 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{8.0.99.99} [Forge Mod Loader] (forge-1.8-11.14.3.1446.jar) Unloaded->Constructed->Pre-initialized->Initialized
Forge{11.14.3.1446} [Minecraft Forge] (forge-1.8-11.14.3.1446.jar) Unloaded->Constructed->Pre-initialized->Initialized
kirbyandfriends{3} [Kirby and Friends Revived] (kirbyandfriends-1.8-beta(check).jar) Unloaded->Constructed->Pre-initialized->Errored
Loaded coremods (and transformers):
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.2.12198 Compatibility Profile Context 12.102.1.8000' Renderer: 'AMD Radeon HD 8450G'
The relevant file.
package kirbyandfriends;
import kirbyandfriends.entities.*;
import kirbyandfriends.entities.tiles.TileEntityGordo;
import kirbyandfriends.entities.tiles.TileEntityTreasure;
import kirbyandfriends.entities.vehicles.EntityWheelie;
import kirbyandfriends.items.CustomEntityList;
import kirbyandfriends.items.CustomMonsterPlacer;
import kirbyandfriends.items.FalcolnHelmet;
import kirbyandfriends.items.ItemGalaxia;
import kirbyandfriends.items.ItemHammer;
import kirbyandfriends.items.ItemPlasmaGun;
import kirbyandfriends.items.ItemSummonCreepy;
import kirbyandfriends.items.Lollipop;
import kirbyandfriends.items.Maxim_Tomato;
import kirbyandfriends.items.WishStar;
import kirbyandfriends.items.vehicles.ItemTestVehicle;
import kirbyandfriends.keys.ShoulderKeyHandler;
import kirbyandfriends.packet_handling.SpawnPacket;
import kirbyandfriends.packet_handling.SpawnPacket.SpawnPacketHandler;
//import kirbyandfriends.schematics.hallberd.WorldGenerationHalberd;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockRendererDispatcher;
import net.minecraft.client.renderer.ItemMeshDefinition;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import java.util.logging.Logger;
import org.lwjgl.input.Keyboard;
import kirbyandfriends.blocks.BlockGordo;
import kirbyandfriends.blocks.DreamBlock;
import kirbyandfriends.blocks.TreasureChest;
@Mod(modid=KirbyMod.modid,name = "Kirby and Friends",version = "3")
public class KirbyMod {
@SidedProxy(clientSide="kirbyandfriends.ClientProxyClass", serverSide="kirbyandfriends.MyCommonProxy")
public static MyCommonProxy proxy;
public static final String modid = "kirbyandfriends";
public int KirbySpawnRate;
public int CreepyKirbySpawnRate;
public int WaddleDeeSpawnRate;
public int WaddleDooSpawnRate;
public int DededeSpawnRate;
public int BlipperSpawnRate;
public int WispySpawnRate;
public static int KirbyPhoneColor;
public static int WaddleDooPhoneColor;
public static Item maxim_tomato;
public static Item lollipop;
public static Item custommonsterplacer;
public static Item wishstar;
public static Item creepyspawn;
public static Item hammer;
@Instance("kirbyandfriends")
public static KirbyMod instance;
public static Block DreamBlock;
public static SimpleNetworkWrapper network;
private ShoulderKeyHandler kbh;
private int Key;
private Item plasmaGun;
//private String phantaMask;
public static Block Gordo;
public static Block Treasure;
public static Item galaxia;
public static Configuration config;
private static boolean enabled = true;
public static Logger logger;
public static CreativeTabs tabCustom = new CreativeTabs("Kirby") {
@Override
@SideOnly(Side.CLIENT)
public Item getTabIconItem() {
return (wishstar);
}
};
public static CreativeTabs tabCave = new CreativeTabs("Cave") {
@Override
@SideOnly(Side.CLIENT)
public Item getTabIconItem() {
return (wishstar);
}
};
public static Item helmet;
public static Item VehicleTestItem;
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
// proxy.initOther();
public static int getUniqueID(){
int EntityId = 400;
do{
EntityId++;
} while(CustomEntityList.getStringFromID(EntityId) != null);
return EntityId;
}
public static void EntityEgg(Class<? extends Entity > entity, int primaryColor, int secondaryColor){
int id = getUniqueID();
CustomEntityList.idToClassMapping.put(id, entity);
CustomEntityList.entityEggs.put(id, new CustomEntityList.MyEntityEggInfo(id, primaryColor, secondaryColor));
}
@EventHandler
public void load(FMLInitializationEvent event)
{
int entityid= 0;
custommonsterplacer = new CustomMonsterPlacer().setUnlocalizedName("custommonsterplacer");
maxim_tomato = new Maxim_Tomato(50, false).setUnlocalizedName("maximtomato");
lollipop= new Lollipop();
wishstar = new WishStar().setCreativeTab(tabCustom).setUnlocalizedName("wishstar");
DreamBlock = new DreamBlock().setCreativeTab(tabCustom).setUnlocalizedName("DreamBlock");
creepyspawn = new ItemSummonCreepy().setUnlocalizedName("creepyspawn");
hammer = new ItemHammer(ToolMaterial.WOOD).setUnlocalizedName("hammer");
galaxia = new ItemGalaxia(ToolMaterial.GOLD);
helmet = new FalcolnHelmet(ArmorMaterial.IRON, 0, 1).setUnlocalizedName("helmet");
VehicleTestItem = new ItemTestVehicle();
GameRegistry.registerTileEntity(TileEntityTreasure.class, "tileEntityTreasure");
GameRegistry.registerTileEntity(TileEntityGordo.class, "tileEntityGordo");
Treasure = new TreasureChest(Material.wood).setUnlocalizedName("TreasureChest").setCreativeTab(tabCustom);
Gordo = new BlockGordo(Material.iron).setUnlocalizedName("Gordo").setCreativeTab(tabCustom);
Crash report.
// I'm sorry, Dave. Time: 3/20/16 5:58 PM
Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderException: java.lang.NoSuchMethodError: net.minecraftforge.fml.common.registry.EntityRegistry.registerModEntity(Ljava/lang/Class;Ljava/lang/String;ILjava/lang/Object;IIZII)V
at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:163)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:712)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:315)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:491)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:325)
at net.minecraft.client.main.Main.main(SourceFile:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoSuchMethodError: net.minecraftforge.fml.common.registry.EntityRegistry.registerModEntity(Ljava/lang/Class;Ljava/lang/String;ILjava/lang/Object;IIZII)V
at kirbyandfriends.KirbyMod.load(KirbyMod.java:196)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:710)
... 10 more A detailed walkthrough of the error, its code path and all known details is as follows:
--------------------------------------------------------------------------------------- -- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 71239736 bytes (67 MB) / 283820032 bytes (270 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1446 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{8.0.99.99} [Forge Mod Loader] (forge-1.8-11.14.3.1446.jar) Unloaded->Constructed->Pre-initialized->Initialized
Forge{11.14.3.1446} [Minecraft Forge] (forge-1.8-11.14.3.1446.jar) Unloaded->Constructed->Pre-initialized->Initialized
kirbyandfriends{3} [Kirby and Friends Revived] (kirbyandfriends-1.8-beta(check).jar) Unloaded->Constructed->Pre-initialized->Errored
Loaded coremods (and transformers):
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.2.12198 Compatibility Profile Context 12.102.1.8000' Renderer: 'AMD Radeon HD 8450G'
The relevant file.
import kirbyandfriends.entities.*;
import kirbyandfriends.entities.tiles.TileEntityGordo;
import kirbyandfriends.entities.tiles.TileEntityTreasure;
import kirbyandfriends.entities.vehicles.EntityWheelie;
import kirbyandfriends.items.CustomEntityList;
import kirbyandfriends.items.CustomMonsterPlacer;
import kirbyandfriends.items.FalcolnHelmet;
import kirbyandfriends.items.ItemGalaxia;
import kirbyandfriends.items.ItemHammer;
import kirbyandfriends.items.ItemPlasmaGun;
import kirbyandfriends.items.ItemSummonCreepy;
import kirbyandfriends.items.Lollipop;
import kirbyandfriends.items.Maxim_Tomato;
import kirbyandfriends.items.WishStar;
import kirbyandfriends.items.vehicles.ItemTestVehicle;
import kirbyandfriends.keys.ShoulderKeyHandler;
import kirbyandfriends.packet_handling.SpawnPacket;
import kirbyandfriends.packet_handling.SpawnPacket.SpawnPacketHandler;
//import kirbyandfriends.schematics.hallberd.WorldGenerationHalberd;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockRendererDispatcher;
import net.minecraft.client.renderer.ItemMeshDefinition;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import java.util.logging.Logger; import org.lwjgl.input.Keyboard; import kirbyandfriends.blocks.BlockGordo;
import kirbyandfriends.blocks.DreamBlock;
import kirbyandfriends.blocks.TreasureChest; @Mod(modid=KirbyMod.modid,name = "Kirby and Friends",version = "3") public class KirbyMod {
@SidedProxy(clientSide="kirbyandfriends.ClientProxyClass", serverSide="kirbyandfriends.MyCommonProxy")
public static MyCommonProxy proxy;
public static final String modid = "kirbyandfriends"; public int KirbySpawnRate;
public int CreepyKirbySpawnRate;
public int WaddleDeeSpawnRate;
public int WaddleDooSpawnRate;
public int DededeSpawnRate;
public int BlipperSpawnRate;
public int WispySpawnRate;
public static int KirbyPhoneColor;
public static int WaddleDooPhoneColor;
public static Item maxim_tomato;
public static Item lollipop;
public static Item custommonsterplacer;
public static Item wishstar;
public static Item creepyspawn;
public static Item hammer;
@Instance("kirbyandfriends")
public static KirbyMod instance;
public static Block DreamBlock; public static SimpleNetworkWrapper network;
private ShoulderKeyHandler kbh;
private int Key;
private Item plasmaGun;
//private String phantaMask;
public static Block Gordo;
public static Block Treasure;
public static Item galaxia;
public static Configuration config;
private static boolean enabled = true;
public static Logger logger;
public static CreativeTabs tabCustom = new CreativeTabs("Kirby") {
@Override
@SideOnly(Side.CLIENT)
public Item getTabIconItem() {
return (wishstar);
}
};
public static CreativeTabs tabCave = new CreativeTabs("Cave") {
@Override
@SideOnly(Side.CLIENT)
public Item getTabIconItem() {
return (wishstar);
}
};
public static Item helmet;
public static Item VehicleTestItem;
@EventHandler
public void preInit(FMLPreInitializationEvent event) { // proxy.initOther();
//MinecraftForge.EVENT_BUS.register(new OverridePlayer());
network = NetworkRegistry.INSTANCE.newSimpleChannel("MyChannel");
network.registerMessage(SpawnPacketHandler.class, SpawnPacket.class, 0, Side.SERVER);
Configuration config = new Configuration(event.getSuggestedConfigurationFile());
config.load();
KirbySpawnRate = config.get("Options", "Kirby spawn rate", 5).getInt();
CreepyKirbySpawnRate= config.get("Options", "Creepy Kirby spawn rate", 10).getInt();
WaddleDeeSpawnRate= config.get("Options", "Waddle Dee spawn rate", 10).getInt();
WaddleDooSpawnRate= config.get("Options", "Waddle Doo spawn rate", 10).getInt();
//DededeSpawnRate= config.get("Options", "Dedede spawn rate", 10).getInt();
BlipperSpawnRate= config.get("Options", "Blipper spawn rate", 10).getInt();
WispySpawnRate= config.get("Options", "Whispy spawn rate", 10).getInt();
KirbyPhoneColor = config.get("Options", "Color for Kirby`s phone(Use this calculation:(myColor.getRed() << 16) + (myColor.getGreen() << 8) + myColor.getBlue();", 15771042).getInt();
WaddleDooPhoneColor = config.get("Options", "Color for Waddle Doo`s phone", 14377823).getInt();
Key = config.get("Options", "Key to shoot wishstars. Using keyboard codes.", Keyboard.KEY_P).getInt();
config.save();
proxy.registerRenderers();
//RenderingRegistry.registerEntityRenderingHandler(EntityKirby.class, new RenderKirbyPaletteA(new ModelKirby(), 0.3F));
//RenderingRegistry.registerEntityRenderingHandler(EntityCreepy.class, new RenderCreepy(new ModelKirby(), 0.3F)); }
public static int getUniqueID(){
int EntityId = 400;
do{
EntityId++;
} while(CustomEntityList.getStringFromID(EntityId) != null);
return EntityId;
} public static void EntityEgg(Class<? extends Entity > entity, int primaryColor, int secondaryColor){
int id = getUniqueID();
CustomEntityList.idToClassMapping.put(id, entity);
CustomEntityList.entityEggs.put(id, new CustomEntityList.MyEntityEggInfo(id, primaryColor, secondaryColor));
}
@EventHandler
public void load(FMLInitializationEvent event)
{
int entityid= 0;
// kbh = ShoulderKeybindings.registerKeybindings();
plasmaGun = new ItemPlasmaGun().setCreativeTab(CreativeTabs.tabCombat).setUnlocalizedName("BlasterRifle");
EntityRegistry.registerModEntity(EntityPlasmaBolt.class, "PlasmaBolt", ++entityid, instance, 160, 1, false);
//GameRegistry.registerWorldGenerator(new WorldGenerationHalberd(), 100);
EntityRegistry.registerModEntity(EntityKirby.class, "Kirby", ++entityid, this, 43, 3, true,KirbyMod.KirbyPhoneColor, 14377823);
EntityRegistry.registerModEntity(EntityCreepy.class, "Creepy", ++entityid, this, 43, 3, true);
EntityRegistry.registerModEntity(EntityBlipper.class, "Blipper", ++entityid, this, 43, 3, true,15771042 , 14377823);
EntityRegistry.registerModEntity(EntityDedede.class, "Dedede", ++entityid, this, 43, 3, true,15771042 , 14377823);
EntityRegistry.registerModEntity(EntityWaddleDee.class, "waddledee", ++entityid, this, 43, 3, true,15771042 , 14377823);
EntityRegistry.registerModEntity(EntityWispy.class, "Wispy", ++entityid, this, 64, 10, true,15771042 , 14377823);
EntityRegistry.registerModEntity(EntityWaddleDoo.class, "waddledoo", ++entityid, this, 64, 10, true,KirbyMod.WaddleDooPhoneColor, 14377823);
// Not living mobs
EntityRegistry.registerModEntity(EntityThrownApple.class, "Thrown Apple", ++entityid, this, 64, 10, true);
EntityRegistry.registerModEntity(EntityThrownEmerald.class, "Thrown Emerald" , ++entityid, this, 64,10, true);
EntityRegistry.registerModEntity(EntityWaterSpit.class, "Spat water", ++entityid, this, 64, 10, true);
EntityRegistry.registerModEntity(EntityThrownWishStar.class, "Thrown Wish Star" , ++entityid, this, 64,10, true); EntityRegistry.registerModEntity(EntityWheelie.class, "Land Boat", 180, this, 40, 1, true);
EntityRegistry.addSpawn(EntityKirby.class, KirbySpawnRate,1 , 2, EnumCreatureType.AMBIENT, BiomeGenBase.plains);
EntityRegistry.addSpawn(EntityCreepy.class, CreepyKirbySpawnRate, 1, 2, EnumCreatureType.MONSTER, BiomeGenBase.plains);
EntityRegistry.addSpawn(EntityWaddleDee.class, WaddleDeeSpawnRate, 1, 2, EnumCreatureType.AMBIENT, BiomeGenBase.plains);
EntityRegistry.addSpawn(EntityBlipper.class, BlipperSpawnRate, 1, 2, EnumCreatureType.AMBIENT, BiomeGenBase.ocean);
EntityRegistry.addSpawn(EntityDedede.class, DededeSpawnRate, 1, 2, EnumCreatureType.MONSTER, BiomeGenBase.plains);
EntityRegistry.addSpawn(EntityWispy.class, WispySpawnRate, 1, 2, EnumCreatureType.MONSTER, BiomeGenBase.forest);
custommonsterplacer = new CustomMonsterPlacer().setUnlocalizedName("custommonsterplacer");
maxim_tomato = new Maxim_Tomato(50, false).setUnlocalizedName("maximtomato");
lollipop= new Lollipop();
wishstar = new WishStar().setCreativeTab(tabCustom).setUnlocalizedName("wishstar");
DreamBlock = new DreamBlock().setCreativeTab(tabCustom).setUnlocalizedName("DreamBlock");
creepyspawn = new ItemSummonCreepy().setUnlocalizedName("creepyspawn");
hammer = new ItemHammer(ToolMaterial.WOOD).setUnlocalizedName("hammer");
galaxia = new ItemGalaxia(ToolMaterial.GOLD);
helmet = new FalcolnHelmet(ArmorMaterial.IRON, 0, 1).setUnlocalizedName("helmet");
VehicleTestItem = new ItemTestVehicle();
GameRegistry.registerTileEntity(TileEntityTreasure.class, "tileEntityTreasure");
GameRegistry.registerTileEntity(TileEntityGordo.class, "tileEntityGordo");
Treasure = new TreasureChest(Material.wood).setUnlocalizedName("TreasureChest").setCreativeTab(tabCustom);
Gordo = new BlockGordo(Material.iron).setUnlocalizedName("Gordo").setCreativeTab(tabCustom);
//Registering stuff
GameRegistry.registerItem(helmet, "helmet");
GameRegistry.registerItem(creepyspawn,"creepyspawn");
// GameRegistry.registerItem(custommonsterplacer, "custommonsterplacer");
GameRegistry.registerItem(wishstar, "wishstar");
GameRegistry.registerItem(maxim_tomato,"maxim_tomato");
GameRegistry.registerItem(lollipop,"lollipop");
GameRegistry.registerItem(hammer, "hammer");
GameRegistry.registerItem(VehicleTestItem, "test");
GameRegistry.registerBlock(DreamBlock, "DreamBlock");
GameRegistry.registerBlock(Gordo, "Gordo");
GameRegistry.registerBlock(Treasure, "Tresure");
KirbyRecipes.addRecipes();
if(event.getSide() == Side.CLIENT)
{
RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
// this.itemModelMesher.register(Items.spawn_egg, new ItemMeshDefinition()
// {
//
// public ModelResourceLocation getModelLocation(ItemStack stack)
// {
// return new ModelResourceLocation("spawn_egg", "inventory");
// }
// });
//
// Items
renderItem.getItemModelMesher().register(lollipop, 0, new ModelResourceLocation(modid + ":" + ((Lollipop) lollipop).name(), "inventory"));
renderItem.getItemModelMesher().register(wishstar, 0, new ModelResourceLocation(modid + ":" + ((WishStar) wishstar).getName(), "inventory"));
renderItem.getItemModelMesher().register(maxim_tomato, 0, new ModelResourceLocation(modid + ":" + ((Maxim_Tomato) maxim_tomato).getName(), "inventory"));
renderItem.getItemModelMesher().register(VehicleTestItem, 0, new ModelResourceLocation(modid + ":" + ((ItemTestVehicle) VehicleTestItem).getName(), "inventory"));
renderItem.getItemModelMesher().register(plasmaGun, 0, new ModelResourceLocation(modid + ":" + ((ItemPlasmaGun) plasmaGun).getName(), "inventory"));
renderItem.getItemModelMesher().register(helmet, 0, new ModelResourceLocation(modid + ":" + ((FalcolnHelmet) helmet).getName(), "inventory"));
renderItem.getItemModelMesher().register(hammer, 0, new ModelResourceLocation(modid + ":" + ((ItemHammer) hammer).getName(), "inventory"));
//renderItem.getItemModelMesher().register(item, meta, location);
renderItem.getItemModelMesher().register(custommonsterplacer,new ItemMeshDefinition(){
public ModelResourceLocation getModelLocation(ItemStack stack)
{
return new ModelResourceLocation(modid + ":" + "cellphone", "inventory");
}
});
renderItem.getItemModelMesher().register(creepyspawn,0, new ModelResourceLocation(modid + ":" + ((ItemSummonCreepy) creepyspawn).getName(), "inventory"));
//renderItem.getItemModelMesher().register(VehicleTestItem,0, new ModelResourceLocation(modid + ":" + ((ItemTestVehicle)VehicleTestItem).getName(), "inventory"));
//Blocks
renderItem.getItemModelMesher().register(Item.getItemFromBlock(DreamBlock), 0, new ModelResourceLocation(modid + ":" + ((DreamBlock) DreamBlock).getName(), "inventory"));
renderItem.getItemModelMesher().register(Item.getItemFromBlock(Gordo), 0, new ModelResourceLocation(modid + ":" + ((BlockGordo) Gordo).getName(), "inventory"));
//renderItem.getItemModelMesher().register(Item.getItemFromBlock(DreamBlock), 0, new ModelResourceLocation(modid + ":" + ((DreamBlock) DreamBlock).getName(), "inventory"));
}
proxy.registerRenderers();
}
@EventHandler
public void postInit(FMLPostInitializationEvent event)
{
//FMLCommonHandler.instance().bus().register(new KeyHandler());
}
}
I have the feeling he's just not using the right version of your mod with the right version of Forge. Tell him to update and see.
Check out my mod, Placeable Items!
If my comment helped you or you just like me, hit the green arrow down there!
Where is line 196?