Jump to content

Absithium_gamer

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by Absithium_gamer

  1. (ModelLoader).setCustomModelResourceLocation(obsidianingot, 0, null).register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); i got this but it says model loader cannot be resolved to a variable and line breakpoint: mod items line 26 register render(items)
  2. Cant figure it out can you give the string to see how it was done
  3. private static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().setcustommodelresourcelocation().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } } i replaced them but get the error method.setcustommodelresourcelocation()cant be resolved
  4. how to change item model mesher to modelloader
  5. Learningmod.java package Com.absithiumgamer.learningmod; import Com.absithiumgamer.learningmod.proxy.CommonProxy; import init.ModItems; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_VESRIONS) public class learningmod { @Instance public static learningmod instance; @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { ModItems.init(); ModItems.register(); } @EventHandler public void Init(FMLInitializationEvent event) { proxy.init(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } } Reference package Com.absithiumgamer.learningmod; public class Reference { public static final String MOD_ID = "alm"; public static final String NAME = "Learning Mod"; public static final String VERSION="1.0"; public static final String ACCEPTED_VESRIONS = "[1.11.2]"; public static final String CLIENT_PROXY_CLASS = "Com.absithiumgamer.learningmod.proxy.ClientProxy"; public static final String SERVER_PROXY_CLASS = "Com.absithiumgamer.learningmod.proxy.Serverproxy"; public static enum learningmodItems{ OBSIDIANINGOT("obsidianingot","ItemObsidianingot"); private String unlocalizedName; private String registryName; learningmodItems(String unlocalizedName,String registryName) { this.unlocalizedName = unlocalizedName; this.registryName = registryName; } public String getUnlocalizedName() { return unlocalizedName; } public String getRegistryName() { return registryName; } } } ModItems.java package init; import items.ItemObsidianingot; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems { public static Item obsidianingot; public static void init () { obsidianingot = new ItemObsidianingot(); } public static void register() { GameRegistry.register(obsidianingot); } public static void registerRenders() { registerRender(obsidianingot); } private static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } } ItemObsidianingot package items; import Com.absithiumgamer.learningmod.Reference; import net.minecraft.item.Item; public class ItemObsidianingot extends Item { public ItemObsidianingot() { setUnlocalizedName(Reference.learningmodItems.OBSIDIANINGOT.getUnlocalizedName()); setRegistryName(Reference.learningmodItems.OBSIDIANINGOT.getRegistryName()); } } itemobsidianingot { "parent": "item/generated", "textures": { "layer0": "alm:item/obsidianingot" }, "display": { "thirdperson": { "rotation": [-90,0,0], "translation": [0,1,-3], "scale": [0.55,0.55,0.55] }, "firstperson": { "rotation": [0,-135,25], "translation": [0,4,2], "scale": [1.7,1.7,1.7] } } } en_US.lang item.obsidianingot.name=Obsidian Ingot Any help would be appreciated the problem is that the item texture does not display in the game
  6. Thx for the help it really helped
  7. Thx for the advice on the title and for the help and Heres the code would you mind telling me what could be wrong with my code package Com.absithiumgamer.learningmod; import Com.absithiumgamer.learningmod.proxy.CommonProxy; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_VESRIONS) public class learningmod { @Instance public static learningmod instance; @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { } @EventHandler public void Init(FMLInitializationEvent event) { } @EventHandler public void postInit(FMLPostInitializationEvent event) { } } Refernce code package Com.absithiumgamer.learningmod; public class Reference { public static final String MOD_ID = "alm"; public static final String NAME = "Learning Mod"; public static final String VERSION="1.0"; public static final String ACCEPTED_VESRIONS = "1.11.2"; public static final String CLIENT_PROXY_CLASS = "com.absithiumgamer.learningmod.proxy.ClientProxy"; public static final String SERVER_PROXY_CLASS = "com.absithiumgamer.learningmod.proxy.Serverproxy"; } Clientproxy code package Com.absithiumgamer.learningmod.proxy; public class ClientProxy implements CommonProxy { } Serverproxy code package Com.absithiumgamer.learningmod.proxy; public class ServerProxy implements CommonProxy{ } Commonproxy code package Com.absithiumgamer.learningmod.proxy; public interface CommonProxy { }
  8. What do I do to fix it and how do I do it
  9. 2017-10-01 21:36:38,904 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-10-01 21:36:38,907 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [21:36:39] [main/INFO] [GradleStart]: Extra: [] [21:36:39] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Marcos/.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] [21:36:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:36:39] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:36:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [21:36:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [21:36:39] [main/INFO] [FML]: Forge Mod Loader version 13.20.1.2476 for Minecraft 1.11.2 loading [21:36:39] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_144, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_144 [21:36:39] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [21:36:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [21:36:39] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [21:36:39] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [21:36:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:36:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [21:36:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [21:36:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:36:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:36:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper 2017-10-01 21:36:40,274 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-10-01 21:36:40,378 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-10-01 21:36:40,406 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [21:36:40] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [21:36:45] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [21:36:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [21:36:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [21:36:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [21:36:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [21:36:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [21:36:47] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [21:36:49] [Client thread/INFO]: Setting user: Player741 [21:37:02] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:37:05] [Client thread/INFO] [FML]: -- System Details -- Details: Minecraft Version: 1.11.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_144, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 818607040 bytes (780 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13447 Compatibility Profile Context 16.300.2701.0' Renderer: 'AMD Radeon(TM) R5 Graphics' [21:37:05] [Client thread/INFO] [FML]: MinecraftForge v13.20.1.2476 Initialized [21:37:05] [Client thread/INFO] [FML]: Replaced 232 ore recipes [21:37:06] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [21:37:06] [Client thread/INFO] [FML]: Searching C:\Users\Marcos\Desktop\Learning mod\run\mods for mods [21:37:08] [Thread-6/INFO] [FML]: Using sync timing. 200 frames of Display.update took 366742694 nanos [21:37:10] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [21:37:12] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, alm] at CLIENT [21:37:12] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, alm] at SERVER [21:37:14] [Client thread/ERROR] [FML]: An error occurred trying to load a proxy into proxy.java.lang.ClassNotFoundException: com.absithiumgamer.learningmod.proxy.ClientProxy [21:37:14] [Client thread/FATAL] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue [21:37:14] [Client thread/FATAL] [FML]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UC minecraft{1.11.2} [Minecraft] (minecraft.jar) UC mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UC FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.1.2476.jar) UC forge{13.20.1.2476} [Minecraft Forge] (forgeSrc-1.11.2-13.20.1.2476.jar) UE alm{1.0} [learningmod] (bin) [21:37:14] [Client thread/FATAL] [FML]: The following problems were captured during this phase [21:37:14] [Client thread/ERROR] [FML]: Caught exception from alm (net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: com.absithiumgamer.learningmod.proxy.ClientProxy) [21:37:14] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ---- // Hey, that tickles! Hehehe! Time: 10/1/17 9:37 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from learningmod (alm) Caused by: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: com.absithiumgamer.learningmod.proxy.ClientProxy at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:102) at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:626) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:253) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:231) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:582) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:233) at net.minecraft.client.Minecraft.init(Minecraft.java:478) at net.minecraft.client.Minecraft.run(Minecraft.java:387) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) Caused by: java.lang.ClassNotFoundException: com.absithiumgamer.learningmod.proxy.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at net.minecraftforge.fml.common.ModClassLoader.loadClass(ModClassLoader.java:75) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:85) ... 39 more Caused by: java.lang.NoClassDefFoundError: com/absithiumgamer/learningmod/proxy/ClientProxy (wrong name: Com/absithiumgamer/learningmod/proxy/ClientProxy) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ... 45 more 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_144, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 689221584 bytes (657 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.38 Powered by Forge 13.20.1.2476 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UC minecraft{1.11.2} [Minecraft] (minecraft.jar) UC mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UC FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.1.2476.jar) UC forge{13.20.1.2476} [Minecraft Forge] (forgeSrc-1.11.2-13.20.1.2476.jar) UE alm{1.0} [learningmod] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13447 Compatibility Profile Context 16.300.2701.0' Renderer: 'AMD Radeon(TM) R5 Graphics' [21:37:14] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Marcos\Desktop\Learning mod\run\.\crash-reports\crash-2017-10-01_21.37.14-client.txt Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
×
×
  • Create New...

Important Information

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