-
Posts
81 -
Joined
-
Last visited
Posts posted by WARDOGSK93
-
-
14 minutes ago, jabelar said:
Depending on how you do the event subscribing, the method can need to be static. Draco18s knows the details and can explain better. But basically trying making your method static.
27 minutes ago, WARDOGSK93 said:ive tried using both the Mod.EventBusSubscriber annotation and manually registering in mods preInit
@Mod.EventHandler public final void onFMLPreInitializationEvent(FMLPreInitializationEvent event) { logger = event.getModLog(); GuiEventHandler eventHandler = new GuiEventHandler(); FMLCommonHandler.instance().bus().register(event); MinecraftForge.EVENT_BUS.register(event); }
EDIT: Making the method static didnt work either, for both methods of registering event handler
-
Could anyone tell me why this event is not firing?
Im wanting to modify and add a button to a gui, which i know how to do in 1.7.10 but 1.12.2 the method i use doesnt seem to workive tried using both the Mod.EventBusSubscriber annotation and manually registering in mods preInit
the System.out never prints
Using System.out as a test, was using my logger but that wasnt printing so changed to System.out to see if my logger wasnt working but that wasnt the case
@Mod.EventHandler public final void onFMLPreInitializationEvent(FMLPreInitializationEvent event) { logger = event.getModLog(); GuiEventHandler eventHandler = new GuiEventHandler(); FMLCommonHandler.instance().bus().register(event); MinecraftForge.EVENT_BUS.register(event); }
-
41 minutes ago, diesieben07 said:
Thanks for the link, fixed my issue
-
1 minute ago, Draco18s said:
Use Java 8.
thats the version of Java i use, tried updating to Java 9 to see if that would fix it and it didnt, also tried reinstalling my Java 8, nothing seems to fix it
-
Recently ive had this really weird issue with my Java when trying to setup a dev environment with idea and gradle. When ever idea tries to import changes made to the build.gradle and sync the workspace it errors out saying could not get std handle.
Dont know whats causing this, using same JDK install as ive always used, ive tried reinstalling Java and even updating to Java 9 JDK but nothing seems to fix it.
Ive tried many different Minecraft versions from 1.7.10 upto 1.10 as well cant seem what causing it
If anyone could point me in the right direction to whats causing it and fix it, that would be greatly appreciated.
Could not start 'D:\Program Files\Java\jdk-9.0.4\bin\java.exe': could not get std handle (errno 6)
Spoiler -
I added SideOnly just to be safe anyways, better safe than sorry
-
-
4 minutes ago, Animefan8888 said:
From what I saw of your project you don't register the Item models. You need to subscribe to the ModelRegistryEvent and register your models using ModelLoader.setCustomModelResourceLocation.
3 minutes ago, Draco18s said:You aren't registering am item model anywhere that I can see
what arguments does `ModelResourceLocation` take? i see a `ResourceLocation` which i assume is the registry name of my block / item but what do i put in variant?
-
Been a while since i modded minecraft and coming back to it a lot has changed since 1.7.10, i've been able to get my custom item and block to register using the new registry events the blocks in world texture even loads but none of my textures load when in my inventory, weird thing is i get no errors when game loads so i feel like i've done nothing wrong
if anyone could let me know what i've done wrong to make my items / blocks in inventory not load there textures that would be very helpful
Log
Spoiler"E:\64 Bit\Java\jdk1.8.0_121\bin\java" -javaagent:C:\Users\WARDOGSK93\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\172.3317.76\lib\idea_rt.jar=55138:C:\Users\WARDOGSK93\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\172.3317.76\bin -Dfile.encoding=UTF-8 -classpath "E:\64 Bit\Java\jdk1.8.0_121\jre\lib\charsets.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\deploy.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\access-bridge-64.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\cldrdata.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\dnsns.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\jaccess.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\jfxrt.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\localedata.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\nashorn.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\sunec.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\sunjce_provider.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\sunmscapi.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\sunpkcs11.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\ext\zipfs.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\javaws.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\jce.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\jfr.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\jfxswt.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\jsse.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\management-agent.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\plugin.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\resources.jar;E:\64 Bit\Java\jdk1.8.0_121\jre\lib\rt.jar;C:\Users\WARDOGSK93\.gradle\caches\minecraft\net\minecraftforge\forge\1.12-14.21.1.2402\start;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\ca.weblite\java-objc-bridge\1.0.0\6ef160c3133a78de015830860197602ca1c855d3\java-objc-bridge-1.0.0.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.google.code.findbugs\jsr305\3.0.1\f7be08ec23c21485b9b5a1cf1654c2ec8c58168d\jsr305-3.0.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.8.0\c4ba5371a29ac9b2ad6129b1d39ea38750043eff\gson-2.8.0.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.google.guava\guava\21.0\3a3d111be1be1b745edfa7d91678a12d7ed38709\guava-21.0.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.ibm.icu\icu4j-core-mojang\51.2\63d216a9311cca6be337c1e458e587f99d382b84\icu4j-core-mojang-51.2.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.mojang\authlib\1.5.25\9834cdf236c22e84b946bba989e2f94ef5897c3c\authlib-1.5.25.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.mojang\patchy\1.1\aef610b34a1be37fa851825f12372b78424d8903\patchy-1.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.mojang\realms\1.10.17\e6a623bf93a230b503b0e3ae18c196fcd5aa3299\realms-1.10.17.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.mojang\text2speech\1.10.3\48fd510879dff266c3815947de66e3d4809f8668\text2speech-1.10.3.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.paulscode\codecjorbis\20101023\c73b5636faf089d9f00e8732a829577de25237ee\codecjorbis-20101023.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.paulscode\codecwav\20101023\12f031cfe88fef5c1dd36c563c0a3a69bd7261da\codecwav-20101023.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.paulscode\libraryjavasound\20101123\5c5e304366f75f9eaa2e8cca546a1fb6109348b3\libraryjavasound-20101123.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.paulscode\librarylwjglopenal\20100824\73e80d0794c39665aec3f62eee88ca91676674ef\librarylwjglopenal-20100824.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.paulscode\soundsystem\20120107\419c05fe9be71f792b2d76cfc9b67f1ed0fec7f6\soundsystem-20120107.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.typesafe.akka\akka-actor_2.11\2.3.3\ed62e9fc709ca0f2ff1a3220daa8b70a2870078e\akka-actor_2.11-2.3.3.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\com.typesafe\config\1.2.1\f771f71fdae3df231bcd54d5ca2d57f0bf93f467\config-1.2.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\commons-codec\commons-codec\1.10\4b95f4897fa13f2cd904aee711aeafc0c5295cd8\commons-codec-1.10.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\commons-io\commons-io\2.5\2852e6e05fbb95076fc091f6d1780f1f8fe35e0f\commons-io-2.5.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\commons-logging\commons-logging\1.1.3\f6f66e966c70a83ffbdb6f17a0919eaf7c8aca7f\commons-logging-1.1.3.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\io.netty\netty-all\4.1.9.Final\97860965d6a0a6b98e7f569f3f966727b8db75\netty-all-4.1.9.Final.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\it.unimi.dsi\fastutil\7.1.0\9835253257524c1be7ab50c057aa2d418fb72082\fastutil-7.1.0.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\java3d\vecmath\1.5.2\79846ba34cbd89e2422d74d53752f993dcc2ccaf\vecmath-1.5.2.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\jline\jline\2.13\2d9530d0a25daffaffda7c35037b046b627bb171\jline-2.13.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\lzma\lzma\0.0.1\521616dc7487b42bef0e803bd2fa3faf668101d7\lzma-0.0.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\mezz.jei\jei_1.12\4.7.1.74\637f9a9f0e3ea17e1f1c38e291a3567631b66c02\jei_1.12-4.7.1.74.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\mezz.jei\jei_1.12\4.7.1.74\96c34ca89df62ba083be0bd862b1838319ba0da8\jei_1.12-4.7.1.74-api.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna\4.4.0\cb208278274bf12ebdb56c61bd7407e6f774d65a\jna-4.4.0.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\platform\3.4.0\e3f70017be8100d3d6923f50b3d2ee17714e9c13\platform-3.4.0.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput-platform\2.0.5\7ff832a6eb9ab6a767f1ade2b548092d0fa64795\jinput-platform-2.0.5-natives-linux.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput-platform\2.0.5\53f9c919f34d2ca9de8c51fc4e1e8282029a9232\jinput-platform-2.0.5-natives-osx.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput-platform\2.0.5\385ee093e01f587f30ee1c8a2ee7d408fd732e16\jinput-platform-2.0.5-natives-windows.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput\2.0.5\39c7796b469a600f72380316f6b1f11db6c2c7c4\jinput-2.0.5.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.java.jutils\jutils\1.0.0\e12fe1fda814bd348c1579329c86943d2cd3c6a6\jutils-1.0.0.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.minecraft\launchwrapper\1.12\111e7bea9c968cdb3d06ef4632bf7ff0824d0f36\launchwrapper-1.12.jar;C:\Users\WARDOGSK93\.gradle\caches\minecraft\net\minecraftforge\forge\1.12-14.21.1.2402\snapshot\20170624\forgeSrc-1.12-14.21.1.2402.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.sf.jopt-simple\jopt-simple\5.0.3\cdd846cfc4e0f7eefafc02c0f5dce32b9303aa2a\jopt-simple-5.0.3.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\net.sf.trove4j\trove4j\3.0.3\42ccaf4761f0dfdfa805c9e340d99a755907e2dd\trove4j-3.0.3.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-compress\1.8.1\a698750c16740fd5b3871425f4cb3bbaa87f529d\commons-compress-1.8.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-lang3\3.5\6c6c702c89bfff3cd9e80b04d668c5e190d588c6\commons-lang3-3.5.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpclient\4.3.3\18f4247ff4572a074444572cee34647c43e7c9c7\httpclient-4.3.3.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpcore\4.3.2\31fbbff1ddbf98f3aa7377c94d33b0447c646b6e\httpcore-4.3.2.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.8.1\e801d13612e22cad62a3f4f3fe7fdbe6334a8e72\log4j-api-2.8.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-core\2.8.1\4ac28ff2f1ddf05dae3043a190451e8c46b73c31\log4j-core-2.8.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.fusesource.jansi\jansi\1.11\655c643309c2f45a56a747fda70e3fadf57e9f11\jansi-1.11.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl-platform\2.9.4-nightly-20150209\931074f46c795d2f7b30ed6395df5715cfd7675b\lwjgl-platform-2.9.4-nightly-20150209-natives-linux.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl-platform\2.9.4-nightly-20150209\bcab850f8f487c3f4c4dbabde778bb82bd1a40ed\lwjgl-platform-2.9.4-nightly-20150209-natives-osx.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl-platform\2.9.4-nightly-20150209\b84d5102b9dbfabfeb5e43c7e2828d98a7fc80e0\lwjgl-platform-2.9.4-nightly-20150209-natives-windows.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl\2.9.4-nightly-20150209\697517568c68e78ae0b4544145af031c81082dfe\lwjgl-2.9.4-nightly-20150209.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl_util\2.9.4-nightly-20150209\d51a7c040a721d13efdfbd34f8b257b2df882ad0\lwjgl_util-2.9.4-nightly-20150209.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.ow2.asm\asm-debug-all\5.2\3354e11e2b34215f06dab629ab88e06aca477c19\asm-debug-all-5.2.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang.modules\scala-parser-combinators_2.11\1.0.1\f05d7345bf5a58924f2837c6c1f4d73a938e1ff0\scala-parser-combinators_2.11-1.0.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang.modules\scala-swing_2.11\1.0.1\b1cdd92bd47b1e1837139c1c53020e86bb9112ae\scala-swing_2.11-1.0.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang.modules\scala-xml_2.11\1.0.2\820fbca7e524b530fdadc594c39d49a21ea0337e\scala-xml_2.11-1.0.2.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang.plugins\scala-continuations-library_2.11\1.0.2\e517c53a7e9acd6b1668c5a35eccbaa3bab9aac\scala-continuations-library_2.11-1.0.2.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang.plugins\scala-continuations-plugin_2.11.1\1.0.2\f361a3283452c57fa30c1ee69448995de23c60f7\scala-continuations-plugin_2.11.1-1.0.2.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-actors-migration_2.11\1.1.0\dfa8bc42b181d5b9f1a5dd147f8ae308b893eb6f\scala-actors-migration_2.11-1.1.0.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-actors\2.11.0\8ccfb6541de179bb1c4d45cf414acee069b7f78b\scala-actors-2.11.0.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-compiler\2.11.1\56ea2e6c025e0821f28d73ca271218b8dd04926a\scala-compiler-2.11.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-library\2.11.1\e11da23da3eabab9f4777b9220e60d44c1aab6a\scala-library-2.11.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-reflect\2.11.1\6580347e61cc7f8e802941e7fde40fa83b8badeb\scala-reflect-2.11.1.jar;C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\oshi-project\oshi-core\1.1\9ddf7b048a8d701be231c0f4f95fd986198fd2d8\oshi-core-1.1.jar;F:\Development\Java\Minecraft\1.12\out\production\TestMod" GradleStart --username <REDACTED> --password <REDACTED>
2017-07-18 22:11:58,491 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[22:11:58] [main/INFO]: username: <REDACTED>
[22:11:58] [main/INFO]: Extra: []
[22:11:58] [main/INFO]: Password found, attempting login
[22:11:58] [main/INFO]: Logging in with username & password
[22:11:59] [main/INFO]: Login Succesful!
[22:11:59] [main/INFO]: Running with arguments: [--userProperties, [], --assetsDir, C:/Users/WARDOGSK93/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --userType, mojang, --accessToken{REDACTED}, --version, 1.12, --uuid, 43fd393b879d45ecb2d5ce8c4688ab66, --username, WARDOGSK93, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[22:11:59] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[22:12:00] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[22:12:00] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[22:12:00] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[22:12:00] [main/INFO]: Forge Mod Loader version 14.21.1.2402 for Minecraft 1.12 loading
[22:12:00] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 10:amd64:10.0, installed at E:\64 Bit\Java\jdk1.8.0_121\jre
[22:12:00] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[22:12:00] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[22:12:00] [main/INFO]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[22:12:00] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[22:12:00] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[22:12:00] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[22:12:00] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[22:12:00] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[22:12:00] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[22:12:00] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
2017-07-18 22:12:01,197 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-07-18 22:12:02,033 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[22:12:02] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[22:12:05] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[22:12:05] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[22:12:05] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[22:12:06] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[22:12:06] [main/INFO]: Remapping AccessTransformer rules...
[22:12:06] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[22:12:06] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[22:12:06] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[22:12:08] [main/INFO]: Setting user: WARDOGSK93
[22:12:17] [main/WARN]: Skipping bad option: lastServer:
[22:12:17] [main/INFO]: LWJGL Version: 2.9.4
[22:12:20] [main/INFO]: -- System Details --
Details:
Minecraft Version: 1.12
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_121, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 118040560 bytes (112 MB) / 559415296 bytes (533 MB) up to 3318218752 bytes (3164 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
Loaded coremods (and transformers):
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 382.05' Renderer: 'GeForce GTX 1050 Ti/PCIe/SSE2'
[22:12:20] [main/INFO]: MinecraftForge v14.21.1.2402 Initialized
[22:12:20] [main/INFO]: Replaced 921 ore ingredients
[22:12:21] [main/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[22:12:21] [main/INFO]: Searching F:\Development\Java\Minecraft\1.12\run\mods for mods
[22:12:23] [Thread-3/INFO]: Using sync timing. 200 frames of Display.update took 356514070 nanos
[22:12:23] [main/INFO]: Forge Mod Loader has identified 6 mods to load
[22:12:23] [main/WARN]: ****************************************
[22:12:23] [main/WARN]: * The API JustEnoughItemsAPI from source C:\Users\WARDOGSK93\.gradle\caches\modules-2\files-2.1\mezz.jei\jei_1.12\4.7.1.74\96c34ca89df62ba083be0bd862b1838319ba0da8\jei_1.12-4.7.1.74-api.jar is loaded from an incompatible classloader. THIS WILL NOT WORK!
[22:12:23] [main/WARN]: * at net.minecraftforge.fml.common.ModAPIManager$APIContainer.validate(ModAPIManager.java:114)
[22:12:23] [main/WARN]: * at net.minecraftforge.fml.common.ModAPIManager.registerDataTableAndParseAPI(ModAPIManager.java:174)
[22:12:23] [main/WARN]: * at net.minecraftforge.fml.common.ModAPIManager.manageAPI(ModAPIManager.java:232)
[22:12:23] [main/WARN]: * at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:544)
[22:12:23] [main/WARN]: * at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:227)
[22:12:23] [main/WARN]: * at net.minecraft.client.Minecraft.init(Minecraft.java:508)...
[22:12:23] [main/WARN]: ****************************************
[22:12:24] [main/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, jei, testmod] at CLIENT
[22:12:24] [main/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, jei, testmod] at SERVER
[22:12:25] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Just Enough Items, FMLFileResourcePack:Test Mod
[22:12:25] [main/INFO]: Processing ObjectHolder annotations
[22:12:25] [main/INFO]: Found 1170 ObjectHolder annotations
[22:12:25] [main/INFO]: Identifying ItemStackHolder annotations
[22:12:25] [main/INFO]: Found 0 ItemStackHolder annotations
[22:12:26] [main/INFO]: Configured a dormant chunk cache size of 0
[22:12:26] [Forge Version Check/INFO]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[22:12:26] [main/INFO]: TestMod - FMLPreInitializationEvent - Start
[22:12:26] [main/INFO]: TestMod - FMLPreInitializationEvent - End, Took: 5ms
[22:12:26] [main/INFO]: Applying holder lookups
[22:12:26] [main/INFO]: Holder lookups applied
[22:12:26] [main/INFO]: Applying holder lookups
[22:12:26] [main/INFO]: Holder lookups applied
[22:12:26] [main/INFO]: Applying holder lookups
[22:12:26] [Forge Version Check/INFO]: [forge] Found status: OUTDATED Target: 14.21.1.2415
[22:12:26] [main/INFO]: Holder lookups applied
[22:12:26] [main/INFO]: Applying holder lookups
[22:12:26] [main/INFO]: Holder lookups applied
[22:12:26] [main/INFO]: Injecting itemstacks
[22:12:26] [main/INFO]: Itemstack injection complete
[22:12:32] [Sound Library Loader/INFO]: Starting up SoundSystem...
[22:12:32] [Thread-5/INFO]: Initializing LWJGL OpenAL
[22:12:32] [Thread-5/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[22:12:32] [Thread-5/INFO]: OpenAL initialized.
[22:12:32] [Sound Library Loader/INFO]: Sound engine started
[22:12:40] [main/INFO]: Max texture size: 16384
[22:12:40] [main/INFO]: Created: 512x512 textures-atlas
[22:12:44] [main/INFO]: TestMod - FMLInitializationEvent - Start
[22:12:44] [main/INFO]: TestMod - FMLInitializationEvent - End, Took: 0ms
[22:12:44] [main/INFO]: Injecting itemstacks
[22:12:44] [main/INFO]: Itemstack injection complete
[22:12:44] [main/INFO]: TestMod - FMLPostInitializationEvent - Start
[22:12:44] [main/INFO]: TestMod - FMLPostInitializationEvent - End, Took: 1ms
[22:12:44] [main/INFO]: Starting JEI...
[22:12:44] [main/INFO]: Registering categories: mezz.jei.plugins.vanilla.VanillaPlugin ...
[22:12:44] [main/INFO]: Registered categories: mezz.jei.plugins.vanilla.VanillaPlugin in 25 ms
[22:12:44] [main/INFO]: Registering categories: mezz.jei.plugins.jei.JEIInternalPlugin ...
[22:12:44] [main/INFO]: Registered categories: mezz.jei.plugins.jei.JEIInternalPlugin in 2 ms
[22:12:44] [main/INFO]: Registering plugin: mezz.jei.plugins.vanilla.VanillaPlugin ...
[22:12:44] [main/INFO]: Registered vanilla repair recipes in 3 ms
[22:12:44] [main/INFO]: Registered enchantment recipes in 38 ms
[22:12:44] [main/INFO]: Registered plugin: mezz.jei.plugins.vanilla.VanillaPlugin in 259 ms
[22:12:44] [main/INFO]: Registering plugin: mezz.jei.plugins.jei.JEIInternalPlugin ...
[22:12:44] [main/INFO]: Registered plugin: mezz.jei.plugins.jei.JEIInternalPlugin in 0 ms
[22:12:44] [main/INFO]: Building recipe registry...
[22:12:45] [main/INFO]: Built recipe registry in 168 ms
[22:12:45] [main/INFO]: Loading ingredient lookup history...
[22:12:45] [main/INFO]: Loaded ingredient lookup history in 13 ms
[22:12:45] [main/INFO]: Building ingredient list...
[22:12:45] [main/INFO]: Built ingredient list in 41 ms
[22:12:45] [main/INFO]: Building ingredient filter...
[22:12:45] [main/INFO]: Built ingredient filter in 187 ms
[22:12:45] [main/INFO]: Building runtime...
[22:12:45] [main/INFO]: Built runtime in 154 ms
[22:12:45] [main/INFO]: Sending runtime to plugin: mezz.jei.plugins.vanilla.VanillaPlugin ...
[22:12:45] [main/INFO]: Sending runtime to plugin: mezz.jei.plugins.jei.JEIInternalPlugin ...
[22:12:45] [main/INFO]: Finished Starting JEI in 1067 ms
[22:12:45] [main/INFO]: Forge Mod Loader has successfully loaded 6 mods
[22:12:45] [main/WARN]: Skipping bad option: lastServer:
[22:12:45] [main/INFO]: Narrator library for x64 successfully loaded
[22:12:49] [Server thread/INFO]: Starting integrated minecraft server version 1.12
[22:12:49] [Server thread/INFO]: Generating keypair
[22:12:49] [Server thread/INFO]: Injecting existing registry data into this server instance
[22:12:50] [Server thread/INFO]: Applying holder lookups
[22:12:50] [Server thread/INFO]: Holder lookups applied
[22:12:50] [Server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1c156ca8)
[22:12:51] [Server thread/INFO]: Loaded 488 advancements
[22:12:51] [Server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1c156ca8)
[22:12:51] [Server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1c156ca8)
[22:12:51] [Server thread/INFO]: Preparing start region for level 0
[22:12:51] [Server thread/INFO]: Changing view distance to 12, from 10
[22:12:53] [Netty Local Client IO #0/INFO]: Server protocol version 2
[22:12:53] [Netty Server IO #1/INFO]: Client protocol version 2
[22:12:53] [Netty Server IO #1/INFO]: Client attempting to join with 6 mods : minecraft@1.12,FML@8.0.99.99,forge@14.21.1.2402,testmod@0.0.1-1.12,mcp@9.19,jei@4.7.1.74
[22:12:53] [Netty Local Client IO #0/INFO]: [Netty Local Client IO #0] Client side modded connection established
[22:12:53] [Server thread/INFO]: [Server thread] Server side modded connection established
[22:12:53] [Server thread/INFO]: WARDOGSK93[local:E:03ae80dd] logged in with entity id 0 at (2.031588065941459, 2.2791111727909716, 0.6053656687017187)
[22:12:53] [Server thread/INFO]: WARDOGSK93 joined the game
[22:12:55] [Server thread/INFO]: Saving and pausing game...
[22:12:55] [Thread-11/INFO]: Saved tooltip cache to F:\Development\Java\Minecraft\1.12\run\config\jei\tooltipCache.zip.
[22:12:55] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[22:12:55] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[22:12:55] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[22:12:55] [main/INFO]: Loaded 40 advancements
[22:13:05] [Server thread/INFO]: Saving and pausing game...
[22:13:05] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[22:13:05] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[22:13:05] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[22:15:46] [Server thread/INFO]: Saving and pausing game...
[22:15:47] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[22:15:47] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[22:15:47] [Server thread/INFO]: Saving chunks for level 'New World'/the_end -
After abit of google'ing i got my build.gradle file to do what i want
(mix of old gradle fiiles before i quit modding and what i just searched)
This sets up my workspace fully for me all in 1 build.gradle file, all mods depend on forge stuff and my 'Core' mod
*Please note i tested this on 1.7.10 since that was the last version i modded and want to try it with something im some what familiar with*
Basic setup: http://www.minecraftforge.net/forum/index.php?topic=14048.0
One workspace == one project. One project != one mod.
So yeah, you can have many packages and classes with @Mod annotation (making your project have multiple mods), but when you compile it (build), you will have to either make Jars on your own or write script to do so (for such help you will probably need to look into gradle itself - there are help forums/tutorials I guess).
Ive looked at that and i dont rly want to run 'gradle setupDevWorkspace' in all my mod folders, main reason why im making this post
isnt there any way using the 'dependencies {}' part of the 'build.gradle' file to make it depend on my 'CoreMod'? (if there is I would just do the same to make 'Mod C' depend on 'Mod A' right?)
This goes in the @Mod annotation
I assume you mean like that?
Thanks i was also about to ask how does one do dependencies again in @Mod
-
Basic setup: http://www.minecraftforge.net/forum/index.php?topic=14048.0
One workspace == one project. One project != one mod.
So yeah, you can have many packages and classes with @Mod annotation (making your project have multiple mods), but when you compile it (build), you will have to either make Jars on your own or write script to do so (for such help you will probably need to look into gradle itself - there are help forums/tutorials I guess).
Ive looked at that and i dont rly want to run 'gradle setupDevWorkspace' in all my mod folders, main reason why im making this post
isnt there any way using the 'dependencies {}' part of the 'build.gradle' file to make it depend on my 'CoreMod'? (if there is I would just do the same to make 'Mod C' depend on 'Mod A' right?)
-
Do not make coremods -.-CoreMod -¬
thats not what you think is a 'CoreMod' its what all my mods require like 'iChunUtil' 'CoFHCore' 'CodeChickenLib' etc but ye I guess calling it a CoreMod is wrong, no base Minecraft edits
-
So im looking to get back into Minecraft Modding but dont know how to setup my build.gradle files
Want to layout my workspace like below, I havnt used gradle ever (I left Minecraft Modding just after gradle was added, between 1.6.4 and 1.7.10)
If anyone watches iChun's Dev streams (if he even still does them) this layout is kinda like how his is
Anyone know of a good tutorial or way that will make gradle set up my workspace how I want it
--------------------------------------------------------------
Workspace -¬
CoreMod -¬
Can have deps that children can access
Src/Main/Java_Resources -¬
Mod A -¬
Requires Core Mod
Src/Main/Java_Resources -¬
Mod B -¬
Requires Core Mod
Src/Main/Java_Resources -¬
Mod C (Mainly for testing if a API / Impl works) -¬
Requires Core Mod
Requires Mod A
Src/Main/Java_Resources -¬
Run -¬
Clients / Servers run from here (Layout eg: 'Run/saves')
--------------------------------------------------------------
-
*BUMP*
So ive done more work on my grid system and no one has replied i guess im alone on this then or no one knows how to make a grid system (but someone must know as their are already mods with pipes)
-
So i've started work on my grid system (i'm wanting to add pipes to my mod) but don't know if the way i'm doing this is a good / efficient way of doing a grid system
anyways if you want to see my code i've created a new branch on my Git repo (Grid-Tests) and the code can be found here
any help is much appreciated
-
Nevermind this is a perfectly fine way to do custom recipes
(Created a custom furnace and used my recipes instead of FurnaceRecipes.java)
-
Just a simple question to any intermediate+ Minecraft Modders out there, would this be a good way of doing custom recipes (fully custom like custom machine recipes not crafting or furnace recipes) just want to know before i make a custom machine and find out that this method will not work
-
You still need to
return true
on the client.
For instance, I have this in one of my inventory blocks:
@Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) { if (world.isRemote) { return true; } else { player.openGui(IndustryBase.instance, 1, world, x, y, z); return true; } }
Thanks dude that fixed it
-
Been a while since i last modded minecraft so i thought i would add a simple block (SlabChest) but getting the gui to open is proving to be a issue
WarCraft src (The mod adding the SlabChest)
WardogUtility src (My utility mod)
I know the method where im calling the openGui method is being called as my arm swings (Block#onBlockActivated returning true only when gui was opend false other wise)
Note: Yes i have tried using both FMLNetworkHandler#openGui and EntityPlayer#openGui both of them havnt worked
Sorry if the way ive layed out my mod is a mess as i said i havnt modded in a while
-
Dude, way too complicated.
Pseudocode:
int getBlocks() { Set<Coord> set = new HashSet(); getBlocksRecursive(set, null); return set.size(); } void getBlocksRecursive(Set<Coord> done, ForgeDirection from) { if (!done.add(this.position)) return; for (side : ForgeDirection.VALID) { if (side == from) continue; world.getTile(this.position.offset(side)).getBlocksRecursive(done, side.getOpposite()); } }
@Failender: Sometimes HashSet is faster, sometimes ArrayList is. It depends on your usecase.
ah thank fuck it now works but i have to say thats so simple yet i would never had thought of doing it like this
-
so far this is my new piece of code but im not 100% sure that it will even work (im doubting that it will)
https://gist.github.com/WARDOGSK93/17613103bf835155434f
anyone see any issues in there
-
Yeah, you have to keep a set of "already checked" (HashSet should be fine, do not use ArrayList as Failender said, it's contains method is slow!). Then pass that into each getAmount method and if the position is already in there, just return.
i know you are gonna say no to this but could you post some "reference" code or something cause im having a hard time with this i get so close but then a 2x2x2 destroys my dreams
-
No, that part is correct. The error is when recursively calling getAmount. You need to pass the opposite of "side" there instead of "side" itself ("side" is the black arrow in my drawing).
this works perfectly fine until i create a circle / loop / square (for example it crashes if i make a 2x2x2 square) but other than that it works perfectly fine for
-
Well, you have a logic error in that code.
Imagine this (prepare for epic paint skills):
Black is the TE that is checking and calling getAmount on the red TE (in the direction of the black arrow). The red TE now has to check all blue sides, but not the yellow one (that one would go backwards and cause an infinite loop). But this yellow one is the opposite of the black one, not the black one itself
so instead of
if(side == null || side == from)
continue;
i should do this
if(side == null || side == from.getOpposite())
continue;
anyways im gonna try this out in game
and where can i get paint skills like that
[SOLVED] GuiInitEvent not firing
in Modder Support
Posted
SOLVED: Dont know how or what changed but it randomly started working, only thing ive changed is method is now static, but that didnt seem to fix it for a min, but it now works randomly lol