Jump to content

kingkoronov

Members
  • Posts

    9
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

kingkoronov's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I like the text chat, the crosshair, and GUI elements from other mods to be small, set to the "GUI scale: normal" but I prefer the larger inventory of "GUI scale: auto" at 1080p (on smaller scales the items look like crap). Is there a way to change the way the inventory and hotbar are rendered in Forge? There isn't a whole lot of information out there on this subject, as it is not something commonly done like adding new blocks and items.
  2. @Choonster Is there a tutorial for how to create custom entities in 1.11? Mostly I'm stuck because I have no idea how to get the game to render the custom entity. I copied the creeper class to modify explode(), but now the custom mob renders as a white box.
  3. Are there any complete, up-to-date (1.11) tutorials or docs on how to use the forge API?
  4. Thanks. It's working now.
  5. Ok I'll try that.
  6. Classes: package org.nukreeper64.testMod; import net.minecraft.init.Blocks; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; @Mod(modid = TestMod.MODID, version = TestMod.VERSION) public class TestMod { public static final String MODID = "testmod"; public static final String VERSION = "1.0"; @SidedProxy(serverSide = "org.nukreeper64.testMod.CommonProxy", clientSide = "org.nukreeper64.testMod.ClientProxy") public static CommonProxy proxy; @EventHandler public void init(FMLInitializationEvent event) { // some example code System.out.println("DIRT BLOCK >> "+Blocks.DIRT.getUnlocalizedName()); Food food = new Food(); GameRegistry.register(food); } } package org.nukreeper64.testMod; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemFood; public class Food extends ItemFood { public static final int AMOUNT = 2; public static final String NAME = "food"; public Food() { super(AMOUNT, false); TestMod.proxy.registerItemRenderer(this, 0, NAME); this.setCreativeTab(CreativeTabs.FOOD); setUnlocalizedName(NAME); setRegistryName(NAME); } } package org.nukreeper64.testMod; import net.minecraft.item.Item; public class CommonProxy { public void registerItemRenderer(Item item, int meta, String id) {} } package org.nukreeper64.testMod; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; public class ClientProxy extends CommonProxy { @Override public void registerItemRenderer(Item item, int meta, String name) { System.out.println("TEST1"); ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation("testmod:food")); System.out.println("TEST2"); } } Command run: gradlew runClient Full log, from when command was run to game start: C:\Users\Pyotr\Desktop\forge-1.11.2-13.20.0.2216-mdk>gradlew runClient Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html. This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril. ################################################# ForgeGradle 2.2-SNAPSHOT-35fdca6 https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :sourceApiJava UP-TO-DATE :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava UP-TO-DATE :compileJava warning: [options] bootstrap class path not set in conjunction with -source 1.6 1 warning :processResources UP-TO-DATE :classes :jar UP-TO-DATE :getVersionJson :extractNatives SKIPPED :extractUserdev UP-TO-DATE :getAssetIndex UP-TO-DATE :getAssets Current status: 272/1196 22% Current status: 543/1196 45% Current status: 858/1196 71% Current status: 1130/1196 94% :makeStart :runClient 2017-01-21 15:51:51,588 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-01-21 15:51:51,590 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [15:51:51] [main/INFO] [GradleStart]: Extra: [] [15:51:51] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Pyotr/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [15:51:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [15:51:51] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [15:51:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [15:51:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [15:51:51] [main/INFO] [FML]: Forge Mod Loader version 13.20.0.2216 for Minecraft 1.11.2 loading [15:51:51] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_91\jre [15:51:51] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [15:51:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [15:51:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [15:51:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [15:51:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [15:51:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [15:51:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [15:51:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [15:51:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [15:51:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [15:51:51] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [15:51:52] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [15:51:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [15:51:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [15:51:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [15:51:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [15:51:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [15:51:52] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2017-01-21 15:51:53,007 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-01-21 15:51:53,025 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-01-21 15:51:53,027 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [15:51:53] [Client thread/INFO]: Setting user: Player705 [15:51:55] [Client thread/WARN]: Skipping bad option: lastServer: [15:51:55] [Client thread/INFO]: LWJGL Version: 2.9.4 [15:51:56] [Client thread/INFO]: [sTDOUT]: ---- Minecraft Crash Report ---- // I blame Dinnerbone. Time: 1/21/17 3:51 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR > Building 94% > :runClient A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.11.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_91, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 515590296 bytes (491 MB) / 735576064 bytes (701 MB) up to 1900019712 bytes (1812 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.14008 Compatibility Profile Context 21.19.137.1' Renderer: 'AMD Radeon (TM) R9 380 Series' [15:51:56] [Client thread/INFO] [FML]: MinecraftForge v13.20.0.2216 Initialized [15:51:56] [Client thread/INFO] [FML]: Replaced 232 ore recipes [15:51:56] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [15:51:56] [Client thread/INFO] [FML]: Searching C:\Users\Pyotr\Desktop\forge-1.11.2-13.20.0.2216-mdk\run\mods for mods [15:51:57] [Client thread/INFO] [testmod]: Mod testmod is missing the required element 'name'. Substituting testmod [15:51:57] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [15:51:57] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, testmod] at CLIENT [15:51:57] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, testmod] at SERVER [15:51:58] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:testmod [15:51:58] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [15:51:58] [Client thread/INFO] [FML]: Found 444 ObjectHolder annotations [15:51:58] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [15:51:58] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [15:51:58] [Client thread/INFO] [FML]: Applying holder lookups [15:51:58] [Client thread/INFO] [FML]: Holder lookups applied [15:51:58] [Client thread/INFO] [FML]: Applying holder lookups [15:51:58] [Client thread/INFO] [FML]: Holder lookups applied [15:51:58] [Client thread/INFO] [FML]: Applying holder lookups [15:51:58] [Client thread/INFO] [FML]: Holder lookups applied [15:51:58] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [15:51:58] [Client thread/INFO] [FML]: Applying holder lookups [15:51:58] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [15:51:58] [Client thread/INFO] [FML]: Holder lookups applied [15:51:58] [Client thread/INFO] [FML]: Injecting itemstacks [15:51:58] [Client thread/INFO] [FML]: Itemstack injection complete [15:51:58] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: BETA_OUTDATED Target: 13.20.0.2224 [15:51:59] [sound Library Loader/INFO]: Starting up SoundSystem... [15:51:59] [Thread-8/INFO]: Initializing LWJGL OpenAL [15:51:59] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [15:51:59] [Thread-8/INFO]: OpenAL initialized. [15:51:59] [sound Library Loader/INFO]: Sound engine started [15:52:01] [Client thread/INFO] [FML]: Max texture size: 16384 [15:52:01] [Client thread/INFO]: Created: 16x16 textures-atlas [15:52:02] [Client thread/INFO]: [sTDOUT]: DIRT BLOCK >> tile.dirt [15:52:02] [Client thread/INFO]: [sTDOUT]: TEST1 [15:52:02] [Client thread/INFO]: [sTDOUT]: TEST2 [15:52:02] [Client thread/INFO] [FML]: Injecting itemstacks [15:52:02] [Client thread/INFO] [FML]: Itemstack injection complete [15:52:02] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [15:52:02] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:testmod [15:52:03] [Client thread/INFO]: SoundSystem shutting down... [15:52:03] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [15:52:03] [sound Library Loader/INFO]: Starting up SoundSystem... [15:52:03] [Thread-10/INFO]: Initializing LWJGL OpenAL [15:52:03] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [15:52:03] [Thread-10/INFO]: OpenAL initialized. [15:52:04] [sound Library Loader/INFO]: Sound engine started [15:52:05] [Client thread/INFO] [FML]: Max texture size: 16384 [15:52:05] [Client thread/INFO]: Created: 512x512 textures-atlas [15:52:06] [Client thread/WARN]: Skipping bad option: lastServer: [15:52:06] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
  7. No errors that mention the name of my mod. And the line of code I mentioned for sure doesn't output any errors.
  8. You were right about that. I changed it and now the line is running without any exceptions/errors, but the item is still a pink/black block in my hand.
  9. You probably get a lot of these, but I can't figure out what is wrong. [23:59:35] [Client thread/ERROR] [FML]: [glow=red,2,300]Exception loading model for variant testmod:food#normal for item "testmod:food", normal location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model testmod:item/food with loader VanillaLoader.INSTANCE, skipping[/glow] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:336) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:156) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:800) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:359) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:562) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:387) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] [glow=red,2,300]Caused by: java.io.FileNotFoundException: testmod:models/item/food.json at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:69) [/glow]~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1600(ModelLoader.java:126) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:936) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 23 more [23:59:35] [Client thread/ERROR] [FML]: [glow=red,2,300]Exception loading model for variant testmod:food#normal for item "testmod:food", blockstate location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model testmod:food#normal with loader VariantLoader.INSTANCE, skipping[/glow] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:344) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:156) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:800) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:359) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:562) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:387) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1252) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 23 more I am sure there is a JSON file at src/main/resources/testmod/models/item/food.json. In my client proxy, this code is running: ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation("testmod:food")); If you need to see more code, let me know.
×
×
  • Create New...

Important Information

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