Jump to content

Recommended Posts

Posted (edited)

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

 

In Game screenshot

Src - Workspace

 

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 : [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
[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

 

Edited by WARDOGSK93
Solved
Posted
2 minutes ago, WARDOGSK93 said:

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

 

In Game screenshot

Src - Workspace

 

Log

  Reveal hidden contents

"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 : [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
[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

 

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.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

You aren't registering am item model anywhere that I can see

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
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?

Posted
Just now, WARDOGSK93 said:

 

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?

Put inventory.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
1 minute ago, WARDOGSK93 said:

Thanks guys that fixed my issue :D

 

Screenshot

You also need to add a @SideOnly(Side.CLIENT) to the top of your ModelRegistryEvent class and register it in your Client proxy. Otherwise it will crash the dedicated server.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
2 minutes ago, diesieben07 said:

@SideOnly is not needed here.

Why is that isn't ModelLoader a Client only class and when loaded on the dedicated server won't it crash the game?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
Just now, diesieben07 said:

Yes. But if you only reference it from your client proxy, it will not be loaded on the dedicated server.

Classes (not methods!) are lazy-loaded.

Ahh that makes sense, but is there any down side to marking it with @SideOnly?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • So me and a couple of friends are playing with a shitpost mod pack and one of the mods in the pack is corail tombstone and for some reason there is a problem with it, where on death to fire the player will get kicked out of the server and the tombstone will not spawn basically deleting an entire inventory, it doesn't matter what type of fire it is, whether it's from vanilla fire/lava, or from modded fire like ice&fire/lycanites and it's common enough to where everyone on the server has experienced at least once or twice and it doesn't give any crash log. a solution to this would be much appreciated thank you!
    • It is 1.12.2 - I have no idea if there is a 1.12 pack
    • Okay, but does the modpack works with 1.12 or just with 1.12.2, because I need the Forge client specifically for Minecraft 1.12, not 1.12.2
    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.