
Egietje
Forge Modder-
Posts
388 -
Joined
-
Last visited
Everything posted by Egietje
-
When I try to launch Minecraft in debug mode it crashes, but when i launch it normally it just runs fine, the crash happens at line 545 of the Minecraft class: this.renderManager = new RenderManager(this.renderEngine, this.renderItem); whilst Rendering Setup - Loading Item Renderer, my crash log (.txt): ---- Minecraft Crash Report ---- // But it works on my machine. Time: 29-6-16 12:13 Description: Initializing game java.lang.NullPointerException: Initializing game at net.minecraftforge.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:182) at net.minecraftforge.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:168) at com.Egietje.degeweldigemod.DeGeweldigeMod.initEntity(DeGeweldigeMod.java:69) at com.Egietje.degeweldigemod.DeGeweldigeMod.init(DeGeweldigeMod.java:56) 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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:575) 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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:235) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:213) 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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:774) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:322) at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) at net.minecraft.client.Minecraft.run(Minecraft.java:386) at net.minecraft.client.main.Main.main(Main.java:118) 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:135) 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 net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at net.minecraftforge.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:182) at net.minecraftforge.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:168) at com.Egietje.degeweldigemod.DeGeweldigeMod.initEntity(DeGeweldigeMod.java:69) at com.Egietje.degeweldigemod.DeGeweldigeMod.init(DeGeweldigeMod.java:56) 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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:575) 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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:235) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:213) 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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:774) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:322) at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:386) at net.minecraft.client.main.Main.main(Main.java:118) 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:135) 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 net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_77, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 593714928 bytes (566 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.32 Powered by Forge 12.18.0.1986 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHI mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHI FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10-12.18.0.1986-1.10.0.jar) UCHI Forge{12.18.0.1986} [Minecraft Forge] (forgeSrc-1.10-12.18.0.1986-1.10.0.jar) UCHE dgm{1.0} [§6De§r§eGeweldige§r§6Mod§r] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 364.72' Renderer: 'GeForce GTX 750/PCIe/SSE2' Launched Version: 1.10 LWJGL: 2.9.4 OpenGL: GeForce GTX 750/PCIe/SSE2 GL version 4.5.0 NVIDIA 364.72, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes 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) CPU: 4x Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz
-
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
UGH, need to stop, need to sleep, can you help me tomorrow? -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
Well, can you tell me what to do if i give you my code (for download)? -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
Ans BTW: If this is SO clear for you, I'm pretty new to java, but I know enough to do basic things but this just... -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
But what renderer should I use? -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
Then, what do I need to return in the createRenderFor method? null? CheeseRenderManager? CheeseCowRender? -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
Then, what do I need to put in as param that is the IRenderFactory -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
Let me clear it out: I don't get how to use the new registerEntityRenderingHandler so I ask you if you want to give me the line of code that I can put in my preInit event And my classes (For the params) are: Entityclass : CheeseCow Modelclass : CheeseCowModel Renderclass : CheeseCowRender Rendermanagerclass : CheeseRenderManager -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
I mean from the registerEntityRenderingHandler method, the params (and the createRenderFor method) -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
Can you put the line of code here, here are the classes: Entityclass : CheeseCow Modelclass : CheeseCowModel Renderclass : CheeseCowRender Rendermanagerclass : CheeseRenderManager -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
what does the createRenderFor method need to return? -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
So I need to implement it? Srry, I don't understand anything without having ever seen a tutorial about it -
[1.10] How to use registerEntityRenderingHandler
Egietje replied to Egietje's topic in Modder Support
How do I make a IRenderFactory is what i mean -
So, I want to add a mob but I don't know how to use the new RenderingRegistry.registerEntityRenderingHandler, what params do I need to put in?
-
Thanks!
-
On youtube are a lot of tutorials, here are some channels for 1.9 (haven't found any 1.10): DiscultGA MrCrayfish HyCraftHD(German but you can still 'copy' the code)
-
Can you give me a link to a tutorial?
-
Is there a way to change vanilla classes to add mobs, or a way around it?
-
Yes, i know what it is, but what parameters do i need to put in?
-
So.. how would I do that?
-
I have a removeItem() method that if it is called it will remove as much from the item you're holding as the stacks of that item you have in your inventory Here's my code: public void removeItem(EntityPlayer playerIn, ItemStack removeitem) { IInventory inv = playerIn.inventory; for (int i = 0; i < inv.getSizeInventory(); i++) { if (inv.getStackInSlot(i) != null) { ItemStack j = inv.getStackInSlot(i); if (j.getItem() != null && j.getItem() == removeitem.getItem()) { inv.decrStackSize(playerIn.inventory.currentItem, 1); } } } }
-
Well, i found the problem, i needed to restart minecraft and not F3-T, weird (and YES i was in debug)
-
That doesn't work for me
-
I am trying to make the belgium flag as 3D model but when i place it it doesn't render the blocks behind the flag, here's is my flag's code: package com.Egietje.degeweldigemod.init; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.util.BlockRenderLayer; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class BelgiumFlag extends Block { public BelgiumFlag() { super(Material.CLOTH); } @Override public boolean isOpaqueCube(IBlockState state) { return false; } @Override public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.CUTOUT; } } And also: isOpaqueCube can't be overridden with @Override without the IBlockState state
-
WHUT it randomly only takes 1, wow