java.lang.IllegalArgumentException: Can not set static net.minecraft.src.joakleymorecraft.SuperZombie field net.minecraft.src.joakleymorecraft.mod_morecraft.instance to net.minecraft.src.joakleymorecraft.mod_morecraft
I copied and pasted code and just changed the names of a few things.
I'd have to see the code to tell you more. Did you try seeing if it worked before you changed the names?
Can you add a tutorial on how to make a custom armour slot such as a slot for gauntlets, rings, etc. I can't find a tutorial on how to do it anywhere :l
Great tutorials btw!
Can you add a tutorial on how to make a custom armour slot such as a slot for gauntlets, rings, etc. I can't find a tutorial on how to do it anywhere :l
Great tutorials btw!
the icon code does not work because it doesn't know what to do with this.getUnlocalizedName()
Which version of Forge are you using? If your class is extending the Block class, that method should work. Perhaps the block's name isn't being set properly in the preinitialization?
I'm trying to make a duck mob, and I tried creating an entity as your tutorial said, but when I use ModelChicken and RenderChicken instead of ModelBiped and RenderBiped, the duck crashes the game upon spawning. My spawnegg works fine so I'm guessing its something with my proxies. To save confusion, I put the CommonProxy and ClientProxy in the package with my other classes. If that is the problem let me know. Here is my code:
RenderDuck.class
package zmanlbp2;
import net.minecraft.client.model.ModelChicken;
import net.minecraft.client.renderer.entity.RenderChicken;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
public class RenderDuck extends RenderChicken {
private static final ResourceLocation textureLocation = new ResourceLocation(Chemistry.MODID + ":" + "textures/models/duck.png");
public RenderDuck(ModelChicken model, float shadowSize) {
super(model, shadowSize);
}
@Override
protected ResourceLocation getEntityTexture(Entity par1Entity)
{
return textureLocation;
}
}
ClientProxy.class
package zmanlbp2;
import net.minecraft.client.model.ModelChicken;
import cpw.mods.fml.client.registry.RenderingRegistry;
public class ClientProxy extends CommonProxy{
@Override
public void registerRenderers() {
RenderingRegistry.registerEntityRenderingHandler(Duck.class, new RenderDuck(new ModelChicken(), 0.5F));
}
}
Duck.class
package zmanlbp2;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.world.World;
public class Duck extends EntityMob{
public Duck(World par1World) {
super(par1World);
}
}
I believe your problem is with extending RenderChicken. It's trying to cast your Duck entity as EntityChicken in the RenderChicken class. That's the error you get, isn't it?
You should be able to make a copy of RenderChicken, rename it to RenderDuck, then change all the references to EntityChicken to your Duck entity instead.
The Meaning of Life, the Universe, and Everything.
Join Date:
6/11/2014
Posts:
59
Member Details
Thank you for these tutorials. I find them very useful.
I would like to contribute the following code and and image for use with your block sides tutorial, if you'd like to use them. It holds the individual icons in an array, then uses the "side" integer as index to return the proper icon. The individual images are suffixed with an underscore plus the number 0 thru 5. For example, if "d6.png" is my original texture file, then it would become: d6_0.png thru d6_5.png. The screenshot image demonstrates each icon's placement on the block. Notice that the bottom is drawn first, then the top, then the sides. But also notice how image index 3 is drawn opposite of image index 2. Likewise, 5 is opposite 4. Also, it isn't obvious in the image, but I've noticed that image index 2 and 5 appear horizontally flipped compared to 3 and 4. I'm guessing this is because it draws each frame from the same side, so when you see the block from the back, you're seeing the frame texture from the back as well, thus it appears flipped.
@SideOnly(Side.CLIENT)
private IIcon[] icon = new IIcon[6];
@SideOnly(Side.CLIENT)
@Override
public void registerBlockIcons(IIconRegister p_149651_1_) {
for(int i=0; i < 6 ;i++) {
icon[i] = p_149651_1_.registerIcon(getTextureName()+"_"+i);
}
}
@SideOnly(Side.CLIENT)
@Override
public IIcon getIcon(int side, int metadata) {
return icon[side];
}
Your entities tutorials don't seem to be working for me. I've copied everything exactly as you showed (after trying it w/ my custom entities and stuffs), and it still doesn't add a spawn egg, therefore making it impossible to summon the mob.
Really, really, really.... ........ Good tutorial, it helped me so much ! I wanted to do my own mod, and know I can make one ! Thanks a lot !
I also got two things to ask you, about the Mob/Entity
- Ok so I did a normal Mob like Steve, but I'd like to know if it was possible to put that mod into the creativetab, I searched in your code the "Creativetabs.tabMisc", but there wasn't any... Please help
- I kinda got another problem, I got this error in my main class in the preinit(FMLInitializationEvent event) method/function
here is the underlined stuff: proxy.registerRenders();
and here is the error: The method registerRenders() is undefined for the type ProxyCommon
Edit: Also (sorry if I got to much questions...)
- How do you change the spawn rate ? I'm making a herobrine, i'd like to low how to make him spawn only one time...
- How do you change the color of the egg ?
//Entities
public static void registerEntity(Class entityClass, String name)
{
int entityID = EntityRegistry.findGlobalUniqueEntityId();
long seed = name.hashCode();
Random rand = new Random(seed);
int primaryColor = rand.nextInt() * 16777215;
int secondaryColor = rand.nextInt() * 16777215;
I cant seem to figure out if I am putting that in the wrong place or this:
@Instance(MODID)
public static MyMod instance;
My minecraft crashes because it fails to go from PreINIT
Crashlog:
[20:17:50] [main/INFO]: No arguments specified, assuming client.
[20:17:50] [main/INFO]: Extra: []
[20:17:50] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Z3T0Z/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, FML, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --username, ForgeDevName]
[20:17:50] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:17:50] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:17:50] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[20:17:50] [main/INFO]: Forge Mod Loader version 7.10.11.1179 for Minecraft 1.7.10 loading
[20:17:50] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_05, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre8
[20:17:50] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:17:50] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:17:50] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:17:50] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:17:50] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:17:50] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:17:51] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[20:17:52] [main/ERROR]: The minecraft jar file:/C:/Users/Z3T0Z/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1179/forgeBin-1.7.10-10.13.0.1179.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[20:17:52] [main/ERROR]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[20:17:52] [main/ERROR]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Z3T0Z/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1179/forgeBin-1.7.10-10.13.0.1179.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[20:17:52] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[20:17:52] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:17:52] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:17:52] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:17:53] [main/INFO]: Setting user: ForgeDevName
[20:17:54] [Client thread/INFO]: LWJGL Version: 2.9.1
[20:17:54] [Client thread/INFO]: Attempting early MinecraftForge initialization
[20:17:54] [Client thread/INFO]: MinecraftForge v10.13.0.1179 Initialized
[20:17:55] [Client thread/INFO]: Replaced 182 ore recipies
[20:17:55] [Client thread/INFO]: Completed early MinecraftForge initialization
[20:17:55] [Client thread/INFO]: Searching C:\Users\Z3T0Z\Desktop\Minecraft Modding\eclipse\mods for mods
[20:17:55] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[20:17:55] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.Start. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[20:17:57] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load
[20:17:57] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Better Fish
[20:17:57] [Client thread/INFO]: Processing ObjectHolder annotations
[20:17:57] [Client thread/INFO]: Found 341 ObjectHolder annotations
[20:17:57] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[20:17:57] [Client thread/INFO]: Applying holder lookups
[20:17:57] [Client thread/INFO]: Holder lookups applied
[20:17:57] [Client thread/ERROR]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[20:17:57] [Client thread/ERROR]:
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{7.10.11.1179} [Forge Mod Loader] (forgeBin-1.7.10-10.13.0.1179.jar) Unloaded->Constructed->Pre-initialized
Forge{10.13.0.1179} [Minecraft Forge] (forgeBin-1.7.10-10.13.0.1179.jar) Unloaded->Constructed->Pre-initialized
fishmod{1.0} [Better Fish] (bin) Unloaded->Constructed->Errored
[20:17:57] [Client thread/ERROR]: The following problems were captured during this phase
[20:17:57] [Client thread/ERROR]: Caught exception from fishmod
java.lang.NullPointerException
at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:170) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:149) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at com.z3t0.fishmod.FishMod.registerEntity(FishMod.java:60) ~[bin/:?]
at com.z3t0.fishmod.FishMod.PreInit(FishMod.java:163) ~[bin/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-16.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-16.0.jar:?]
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-16.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-16.0.jar:?]
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:480) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:867) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at GradleStart.bounce(GradleStart.java:95) [start/:?]
at GradleStart.startClient(GradleStart.java:88) [start/:?]
at GradleStart.main(GradleStart.java:56) [start/:?]
---- Minecraft Crash Report ----
// My bad.
Time: 11/07/14 8:17 PM
Description: Initializing game
java.lang.NullPointerException: Initializing game
at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:170)
at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:149)
at com.z3t0.fishmod.FishMod.registerEntity(FishMod.java:60)
at com.z3t0.fishmod.FishMod.PreInit(FishMod.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:480)
at net.minecraft.client.Minecraft.run(Minecraft.java:867)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at GradleStart.bounce(GradleStart.java:95)
at GradleStart.startClient(GradleStart.java:88)
at GradleStart.main(GradleStart.java:56)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:170)
at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:149)
at com.z3t0.fishmod.FishMod.registerEntity(FishMod.java:60)
at com.z3t0.fishmod.FishMod.PreInit(FishMod.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:480)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:867)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at GradleStart.bounce(GradleStart.java:95)
at GradleStart.startClient(GradleStart.java:88)
at GradleStart.main(GradleStart.java:56)
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_05, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 696121768 bytes (663 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.11.1179 Minecraft Forge 10.13.0.1179 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{7.10.11.1179} [Forge Mod Loader] (forgeBin-1.7.10-10.13.0.1179.jar) Unloaded->Constructed->Pre-initialized
Forge{10.13.0.1179} [Minecraft Forge] (forgeBin-1.7.10-10.13.0.1179.jar) Unloaded->Constructed->Pre-initialized
fishmod{1.0} [Better Fish] (bin) Unloaded->Constructed->Errored
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.3345, Intel
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
#@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Z3T0Z\Desktop\Minecraft Modding\eclipse\.\crash-reports\crash-2014-07-11_20.17.57-client.txt
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Ok First of all, thanks Sea_Bass for making this tutorial. I found a video on youtube that helped me set up the mod but the person only knew basic code like how to make custom crafting recipes for in-game blocks so this tutorial is going to help alot in my mod! But i have a couple of questions for you. First of all can you view someone elses mod code from your mod folder to either edit it(if u want to) or to use their code? Second, how would add a new ore? and say that ore is ruby ore and how do you make it so that once u mine the ruby ore u get a ruby. also how do u add new block that can be crafted by a new item. like a block of ruby that can be crafted by 9 rubies. Also, to add a car that moves like a horse(only w and s to move and mouse to change direction) would just add another horse entity? how would you add a plane that moves like a horse but when u press space its goes in the air? finally, if u want a second bow which has a different texture than the standard bow,say a gun texture, u would add another bow in the code and edit the texture right?
again thanks for the tutorial. sorry if this post is long...
I'd have to see the code to tell you more. Did you try seeing if it worked before you changed the names?
Also, this forum will usually get you a faster answer for any coding questions than posting here will: http://www.minecraftforum.net/forum/140-modification-development/
Great tutorials btw!
http://www.minecraftforum.net/topic/1949352-172164-custom-inventories-in-items-and-players/
Edit: Completely missed that link in "Other Tutorials"
I'm gonna need to see the error along with the line of code that caused it. Last I checked, my code works just fine.
Which version of Forge are you using? If your class is extending the Block class, that method should work. Perhaps the block's name isn't being set properly in the preinitialization?
RenderDuck.class
ClientProxy.class
Duck.class
Entity spawn egg thing in base class
Everything else is the same as your tutorials.
Let's do some math.
1/3 = 0.333...
1/3 * 3 = 1
0.333... * 3 = 0.999...
1 = 0.999...
1 - 0.999... = 0.999... - 0.999...
0.0...1 = 0
0.0...1 * 10... = 0 * 10...
1 = 0
You should be able to make a copy of RenderChicken, rename it to RenderDuck, then change all the references to EntityChicken to your Duck entity instead.
Let's do some math.
1/3 = 0.333...
1/3 * 3 = 1
0.333... * 3 = 0.999...
1 = 0.999...
1 - 0.999... = 0.999... - 0.999...
0.0...1 = 0
0.0...1 * 10... = 0 * 10...
1 = 0
I would like to contribute the following code and and image for use with your block sides tutorial, if you'd like to use them. It holds the individual icons in an array, then uses the "side" integer as index to return the proper icon. The individual images are suffixed with an underscore plus the number 0 thru 5. For example, if "d6.png" is my original texture file, then it would become: d6_0.png thru d6_5.png. The screenshot image demonstrates each icon's placement on the block. Notice that the bottom is drawn first, then the top, then the sides. But also notice how image index 3 is drawn opposite of image index 2. Likewise, 5 is opposite 4. Also, it isn't obvious in the image, but I've noticed that image index 2 and 5 appear horizontally flipped compared to 3 and 4. I'm guessing this is because it draws each frame from the same side, so when you see the block from the back, you're seeing the frame texture from the back as well, thus it appears flipped.
Anyway, hope this helps.
See that up arrow?
Really, really, really.... ........ Good tutorial, it helped me so much ! I wanted to do my own mod, and know I can make one ! Thanks a lot !
I also got two things to ask you, about the Mob/Entity
- Ok so I did a normal Mob like Steve, but I'd like to know if it was possible to put that mod into the creativetab, I searched in your code the "Creativetabs.tabMisc", but there wasn't any... Please help
- I kinda got another problem, I got this error in my main class in the preinit(FMLInitializationEvent event) method/function
here is the underlined stuff: proxy.registerRenders();
and here is the error: The method registerRenders() is undefined for the type ProxyCommon
Edit: Also (sorry if I got to much questions...)
- How do you change the spawn rate ? I'm making a herobrine, i'd like to low how to make him spawn only one time...
- How do you change the color of the egg ?
I am most likely inactive on this account! If you want to contact me, here's my Twitter @PandawanMT.
Check out my website!
So close to releasing my new map! Gonna beta test it next week... Probably coming out in two weeks! Follow My Twitter for more info!
Where do we put:
//Entities
public static void registerEntity(Class entityClass, String name)
{
int entityID = EntityRegistry.findGlobalUniqueEntityId();
long seed = name.hashCode();
Random rand = new Random(seed);
int primaryColor = rand.nextInt() * 16777215;
int secondaryColor = rand.nextInt() * 16777215;
EntityRegistry.registerGlobalEntityID(entityClass, name, entityID);
EntityRegistry.registerModEntity(entityClass, name, entityID, instance, 64, 1, true);
EntityList.entityEggs.put(Integer.valueOf(entityID), new EntityList.EntityEggInfo(entityID, primaryColor, secondaryColor));
}
Crashlog:
[20:17:50] [main/INFO]: No arguments specified, assuming client.
[20:17:50] [main/INFO]: Extra: []
[20:17:50] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Z3T0Z/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, FML, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --username, ForgeDevName]
[20:17:50] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:17:50] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:17:50] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[20:17:50] [main/INFO]: Forge Mod Loader version 7.10.11.1179 for Minecraft 1.7.10 loading
[20:17:50] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_05, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre8
[20:17:50] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:17:50] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:17:50] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:17:50] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:17:50] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:17:50] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:17:51] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[20:17:52] [main/ERROR]: The minecraft jar file:/C:/Users/Z3T0Z/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1179/forgeBin-1.7.10-10.13.0.1179.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[20:17:52] [main/ERROR]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[20:17:52] [main/ERROR]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Z3T0Z/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1179/forgeBin-1.7.10-10.13.0.1179.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[20:17:52] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[20:17:52] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:17:52] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:17:52] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:17:53] [main/INFO]: Setting user: ForgeDevName
[20:17:54] [Client thread/INFO]: LWJGL Version: 2.9.1
[20:17:54] [Client thread/INFO]: Attempting early MinecraftForge initialization
[20:17:54] [Client thread/INFO]: MinecraftForge v10.13.0.1179 Initialized
[20:17:55] [Client thread/INFO]: Replaced 182 ore recipies
[20:17:55] [Client thread/INFO]: Completed early MinecraftForge initialization
[20:17:55] [Client thread/INFO]: Searching C:\Users\Z3T0Z\Desktop\Minecraft Modding\eclipse\mods for mods
[20:17:55] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[20:17:55] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.Start. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[20:17:57] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load
[20:17:57] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Better Fish
[20:17:57] [Client thread/INFO]: Processing ObjectHolder annotations
[20:17:57] [Client thread/INFO]: Found 341 ObjectHolder annotations
[20:17:57] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[20:17:57] [Client thread/INFO]: Applying holder lookups
[20:17:57] [Client thread/INFO]: Holder lookups applied
[20:17:57] [Client thread/ERROR]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[20:17:57] [Client thread/ERROR]:
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{7.10.11.1179} [Forge Mod Loader] (forgeBin-1.7.10-10.13.0.1179.jar) Unloaded->Constructed->Pre-initialized
Forge{10.13.0.1179} [Minecraft Forge] (forgeBin-1.7.10-10.13.0.1179.jar) Unloaded->Constructed->Pre-initialized
fishmod{1.0} [Better Fish] (bin) Unloaded->Constructed->Errored
[20:17:57] [Client thread/ERROR]: The following problems were captured during this phase
[20:17:57] [Client thread/ERROR]: Caught exception from fishmod
java.lang.NullPointerException
at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:170) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:149) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at com.z3t0.fishmod.FishMod.registerEntity(FishMod.java:60) ~[bin/:?]
at com.z3t0.fishmod.FishMod.PreInit(FishMod.java:163) ~[bin/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-16.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-16.0.jar:?]
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeBin-1.7.10-10.13.0.1179.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-16.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-16.0.jar:?]
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:480) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:867) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
at GradleStart.bounce(GradleStart.java:95) [start/:?]
at GradleStart.startClient(GradleStart.java:88) [start/:?]
at GradleStart.main(GradleStart.java:56) [start/:?]
---- Minecraft Crash Report ----
// My bad.
Time: 11/07/14 8:17 PM
Description: Initializing game
java.lang.NullPointerException: Initializing game
at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:170)
at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:149)
at com.z3t0.fishmod.FishMod.registerEntity(FishMod.java:60)
at com.z3t0.fishmod.FishMod.PreInit(FishMod.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:480)
at net.minecraft.client.Minecraft.run(Minecraft.java:867)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at GradleStart.bounce(GradleStart.java:95)
at GradleStart.startClient(GradleStart.java:88)
at GradleStart.main(GradleStart.java:56)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:170)
at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:149)
at com.z3t0.fishmod.FishMod.registerEntity(FishMod.java:60)
at com.z3t0.fishmod.FishMod.PreInit(FishMod.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:480)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:867)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at GradleStart.bounce(GradleStart.java:95)
at GradleStart.startClient(GradleStart.java:88)
at GradleStart.main(GradleStart.java:56)
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_05, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 696121768 bytes (663 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.11.1179 Minecraft Forge 10.13.0.1179 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{7.10.11.1179} [Forge Mod Loader] (forgeBin-1.7.10-10.13.0.1179.jar) Unloaded->Constructed->Pre-initialized
Forge{10.13.0.1179} [Minecraft Forge] (forgeBin-1.7.10-10.13.0.1179.jar) Unloaded->Constructed->Pre-initialized
fishmod{1.0} [Better Fish] (bin) Unloaded->Constructed->Errored
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.3345, Intel
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
#@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Z3T0Z\Desktop\Minecraft Modding\eclipse\.\crash-reports\crash-2014-07-11_20.17.57-client.txt
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
registerEntity(MobEntity.class, "Tuna Fish");
I figured out that was the problem.
Is it supposed to be in PreInit? Or in with the GameRegistry
I figured it out
Can you please create a tutorial on how to use a custom model for entities.
again thanks for the tutorial. sorry if this post is long...