
Koenn
Members-
Posts
26 -
Joined
-
Last visited
Converted
-
Gender
Male
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Koenn's Achievements

Tree Puncher (2/8)
0
Reputation
-
Oh, I completely didn't see that, thanks for pointing it out!
-
For some reason, when starting the game with my mod, it almost instantly crashes. The weird thing is, that it used to work before, but I don't know what I changed that's causing it. Here's the full crash report: ---- Minecraft Crash Report ---- // Who set us up the TNT? Time: 9/13/17 4:57 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from null (welcomer) Caused by: java.lang.RuntimeException at net.minecraftforge.fml.common.LoadController.buildModObjectList(LoadController.java:289) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:225) 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:498) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:604) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:266) at net.minecraft.client.Minecraft.init(Minecraft.java:508) at net.minecraft.client.Minecraft.run(Minecraft.java:416) at net.minecraft.client.main.Main.main(Main.java:118) 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:498) 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(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.12.1 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_101, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 2012434184 bytes (1919 MB) / 2560098304 bytes (2441 MB) up to 3817865216 bytes (3641 MB) JVM Flags: 2 total; -Xmx4g -Xms2g IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.41 Powered by Forge 14.22.1.2479 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored | State | ID | Version | Source | Signature | |:----- |:--------- |:------------ |:-------------------------------- |:--------- | | U | minecraft | 1.12.1 | minecraft.jar | None | | U | mcp | 9.19 | minecraft.jar | None | | U | FML | 8.0.99.99 | forgeSrc-1.12.1-14.22.1.2479.jar | None | | U | forge | 14.22.1.2479 | forgeSrc-1.12.1-14.22.1.2479.jar | None | | U | welcomer | 1.3 | Welcomer | None | Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 385.41' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' And the game log: [16:56:42] [main/INFO]: username: [email protected] [16:56:42] [main/INFO]: Extra: [] [16:56:42] [main/INFO]: Password found, attempting login [16:56:42] [main/INFO]: Logging in with username & password [16:56:43] [main/INFO]: Login Succesful! [16:56:43] [main/INFO]: Running with arguments: [--userProperties, [], --assetsDir, C:/Users/Koen/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --userType, mojang, --accessToken{REDACTED}, --version, 1.12.1, --uuid, cac04f5f726f4192829024bdd9e7c9aa, --username, Koenn, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [16:56:43] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [16:56:43] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [16:56:43] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [16:56:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [16:56:43] [main/INFO]: Forge Mod Loader version 14.22.1.2479 for Minecraft 1.12.1 loading [16:56:43] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_101, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_101\jre [16:56:43] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [16:56:43] [main/INFO]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin [16:56:43] [main/INFO]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin [16:56:43] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [16:56:43] [main/INFO]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [16:56:43] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [16:56:43] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [16:56:43] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [16:56:43] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [16:56:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [16:56:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [16:56:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [16:56:46] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing [16:56:46] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [16:56:46] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [16:56:47] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [16:56:47] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [16:56:47] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [16:56:47] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main} [16:56:49] [main/INFO]: Setting user: Koenn [16:56:56] [main/INFO]: LWJGL Version: 2.9.4 [16:56:59] [main/INFO]: -- System Details -- Details: Minecraft Version: 1.12.1 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_101, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 2325250360 bytes (2217 MB) / 2560098304 bytes (2441 MB) up to 3817865216 bytes (3641 MB) JVM Flags: 2 total; -Xmx4g -Xms2g IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 385.41' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' [16:56:59] [main/INFO]: MinecraftForge v14.22.1.2479 Initialized [16:56:59] [main/INFO]: Starts to replace vanilla recipe ingredients with ore ingredients. [16:56:59] [main/INFO]: Replaced 1036 ore ingredients [16:57:00] [main/INFO]: Found 0 mods from the command line. Injecting into mod discoverer [16:57:00] [main/INFO]: Searching G:\Modding\Welcomer\run\mods for mods [16:57:01] [main/INFO]: Forge Mod Loader has identified 5 mods to load [16:57:01] [main/ERROR]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.buildModList(net.minecraftforge.fml.common.event.FMLLoadEvent) to java.lang.RuntimeException: An unexpected exception occurred constructing the custom resource pack for Welcomer [16:57:01] [main/ERROR]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.propogateStateMessage(net.minecraftforge.fml.common.event.FMLEvent) to java.lang.NullPointerException [16:57:01] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge [16:57:01] [main/INFO]: Processing ObjectHolder annotations [16:57:01] [main/INFO]: Found 1168 ObjectHolder annotations [16:57:01] [main/INFO]: Identifying ItemStackHolder annotations [16:57:01] [main/INFO]: Found 0 ItemStackHolder annotations [16:57:01] [main/FATAL]: There is a severe problem with welcomer - it appears not to have constructed correctly [16:57:01] [main/ERROR]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.propogateStateMessage(net.minecraftforge.fml.common.event.FMLEvent) to java.lang.NullPointerException [16:57:01] [main/INFO]: Applying holder lookups [16:57:01] [main/INFO]: Holder lookups applied [16:57:01] [main/INFO]: Applying holder lookups [16:57:01] [main/INFO]: Holder lookups applied [16:57:01] [main/INFO]: Applying holder lookups [16:57:01] [main/INFO]: Holder lookups applied [16:57:01] [main/INFO]: Applying holder lookups [16:57:01] [main/INFO]: Holder lookups applied [16:57:01] [main/INFO]: Injecting itemstacks [16:57:01] [main/INFO]: Itemstack injection complete [16:57:01] [main/FATAL]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [16:57:01] [main/FATAL]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored | State | ID | Version | Source | Signature | |:----- |:--------- |:------------ |:-------------------------------- |:--------- | | U | minecraft | 1.12.1 | minecraft.jar | None | | U | mcp | 9.19 | minecraft.jar | None | | U | FML | 8.0.99.99 | forgeSrc-1.12.1-14.22.1.2479.jar | None | | U | forge | 14.22.1.2479 | forgeSrc-1.12.1-14.22.1.2479.jar | None | | U | welcomer | 1.3 | Welcomer | None | [16:57:01] [main/FATAL]: The following problems were captured during this phase [16:57:01] [main/ERROR]: Caught exception from welcomer (java.lang.RuntimeException) [16:57:01] [Thread-3/INFO]: Using sync timing. 200 frames of Display.update took 110482154 nanos [16:57:01] [main/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:630]: ---- Minecraft Crash Report ---- // I just don't know what went wrong :( Time: 9/13/17 4:57 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from null (welcomer) Caused by: java.lang.RuntimeException at net.minecraftforge.fml.common.LoadController.buildModObjectList(LoadController.java:289) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:225) 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:498) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:604) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:266) at net.minecraft.client.Minecraft.init(Minecraft.java:508) at net.minecraft.client.Minecraft.run(Minecraft.java:416) at net.minecraft.client.main.Main.main(Main.java:118) 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:498) 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(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.12.1 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_101, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 2012434184 bytes (1919 MB) / 2560098304 bytes (2441 MB) up to 3817865216 bytes (3641 MB) JVM Flags: 2 total; -Xmx4g -Xms2g IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.41 Powered by Forge 14.22.1.2479 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored | State | ID | Version | Source | Signature | |:----- |:--------- |:------------ |:-------------------------------- |:--------- | | U | minecraft | 1.12.1 | minecraft.jar | None | | U | mcp | 9.19 | minecraft.jar | None | | U | FML | 8.0.99.99 | forgeSrc-1.12.1-14.22.1.2479.jar | None | | U | forge | 14.22.1.2479 | forgeSrc-1.12.1-14.22.1.2479.jar | None | | U | welcomer | 1.3 | Welcomer | None | Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 385.41' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' [16:57:01] [main/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:630]: #@!@# Game crashed! Crash report saved to: #@!@# G:\Modding\Welcomer\run\.\crash-reports\crash-2017-09-13_16.57.01-client.txt And here's the github repo of the project. Does anyone have a clue what's going on? latest.log crash-2017-09-13_16.57.01-client.txt
-
Oh, I really didn't see that, my mistake... Thanks!
-
Alright, so I'm a little confused about the new system for registering items and models. I registered my item in the item RegistryEvent which seems to work fine, the item does exist in-game. To register the model I used the ModelRegistryEvent and simply called ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(MODID + ":" + id, "inventory")); (only on the client of course). The model file is very simple: { "parent": "minecraft:item/generated", "textures": { "layer0": "minecraft:items/bow_pulling_2" } } When loading up the game, the item does exist, but the texture doesn't load, and a strange model seems to appear (see attached screenshot). Any clues why this is happening and what I'm doing wrong? Here's the link to the GitHub repo.
-
Oh my god, I'm so stupid. Thanks!!!!
-
So I made a packet and a handler for it, and I registered it: public class EventPacket implements IMessage { private EventType type; private String[] args; private EventPacket() { } public EventPacket(EventType type, String[] args) { this.type = type; this.args = args; } @Override public void fromBytes(ByteBuf buf) { //From bytes } @Override public void toBytes(ByteBuf buf) { //To bytes } public enum EventType { BREAK_RELAY } public static class EventPacketHandler implements IMessageHandler<EventPacket, IMessage> { public static final HashMap<EventType, EventReceiver> receivers = new HashMap<>(); @Override public EventPacket onMessage(EventPacket message, MessageContext ctx) { //Handler code return null; } } } INSTANCE.registerMessage(EventPacket.EventPacketHandler.class, EventPacket.class, id++, Side.SERVER); INSTANCE.registerMessage(EventPacket.EventPacketHandler.class, EventPacket.class, id++, Side.CLIENT); Now when I send the packet from the server to the client I get the following error: [11:21:48] [Netty Local Client IO #0/ERROR] [FML]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.IllegalAccessException: Class net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec can not access a member of class me.koenn.weapons.networking.EventPacket with modifiers "private" at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:4.0.23.Final] at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:109) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:156) [NetworkManager.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:51) [NetworkManager.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [SimpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleClientSideCustomPacket(NetworkDispatcher.java:410) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:276) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:73) [NetworkDispatcher.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [SimpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.local.LocalChannel.finishPeerRead(LocalChannel.java:326) [LocalChannel.class:4.0.23.Final] at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:45) [LocalChannel.class:4.0.23.Final] at io.netty.channel.local.LocalChannel$5.run(LocalChannel.java:312) [LocalChannel$5.class:4.0.23.Final] at io.netty.channel.local.LocalEventLoop.run(LocalEventLoop.java:33) [LocalEventLoop.class:4.0.23.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [SingleThreadEventExecutor$2.class:4.0.23.Final] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101] The weird thing is, I have another packet that I made in the exact same way (I think) and it works fine. Does anyone know what I'm doing wrong (probably just a stupid mistake)
-
So I have the following code to add a tooltip to an item: @SubscribeEvent public void onItemTooltip(ItemTooltipEvent event) { ItemStack stack = event.getItemStack(); NBTTagCompound tag = stack.getTagCompound(); if (tag == null) { return; } if (!tag.getString("infused_element").equals("")) { Element element = Element.valueOf(tag.getString("infused_element")); int level = tag.getInteger("infusion_level"); event.getToolTip().add(String.format(TOOLTIP_FORMAT, element.toString(), RomanNumber.toRoman(level))); } } When in game I look at an item with this NBT tag the game crashes with the following error: [12:03:21] [server thread/ERROR]: Encountered an unexpected exception net.minecraft.util.ReportedException: Ticking player at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:789) ~[MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:687) ~[MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) ~[integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111] Caused by: java.lang.StackOverflowError at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:523) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:17) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:525) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:17) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:525) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:17) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:525) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:17) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:525) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:17) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:525) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:17) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:525) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:17) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:525) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:17) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.copy(NBTTagCompound.java:525) ~[NBTTagCompound.class:?] Any idea what I'm doing wrong?
-
Oh, nevermind, I fixed it! I think calling super.renderTileEntityAt in my renderTileEntityAt method caused the name to show up. Removing the call fixed it.
-
So I have a TileEntity with a TileEntitySpecialRenderer attached to it, rendering an item on top of the block. The weird thing is, when I look at the block in game, it shows a name tag with the block name. I don't see any methods to hide this in the classes, so how do I do that?
-
That page is incorrect, the event is always fired when an item tooltip is displayed; regardless of the advanced tooltip setting. The doc comments in the event class explain this. Oh, that worked, thanks a lot for the help!
-
That page is incorrect, the event is always fired when an item tooltip is displayed; regardless of the advanced tooltip setting. The doc comments in the event class explain this. Allright, let me test that, would be awesome if that's true
-
According to the Forge event list page: "Fired to check whether the advanced information on item tooltips is being shown, toggled by F3+H". I want my tooltip to show all the time, not just toggled by F3+H, similair to the information on potions or weapons showing their effects/damage.
-
So I have a device in my mod that adds special properties to vanilla tools. I also want it to show a custom tooltip on the items, so you can see what properties the item has. I know there's a method in Item you can override to add information, but I can't do that for vanilla items. Do I need to add information to the ItemStacks? I can't seem to find a method in there to do that.
-
Well, it only takes an x and y, how to I set the z?
-
I'm trying to make some sort of custom sign block, but I'm having some trouble with writing text on it. I looked at the code for the vanilla TileEntitySignRenderer, but it uses a FontRenderer and I don't really understand how to use that. Can anyone explain to me how I would write text on a block?