
Noxxous
Members-
Content Count
13 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Noxxous
-
Rank
Tree Puncher
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Ok it's fine I just changed the modid in the JSON file
-
Ok I fixed that issue by lengthening my modid. That seemed to do the trick but there's one other error [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: The following texture errors were found. [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ================================================== [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: DOMAIN minecraft [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: -------------------------------------------------- [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: domain minecraft is missing 1 texture [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: domain minecraft has 3 locations: [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Forge Mod Loader [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Minecraft Forge [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ------------------------- [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: The missing resources for domain minecraft are: [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: textures/items/angel.png [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ------------------------- [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: No other errors exist for domain minecraft [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ================================================== [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
-
package com.blake.cloudmod; import net.minecraft.item.Item; public class CommonProxy { public void registerItemRenderer (Item item, int meta, String id) {} }
-
package com.blake.cloudmod; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemAnvilBlock; import net.minecraft.item.ItemAppleGold; import net.minecraftforge.client.model.ModelLoader; public class ClientProxy extends CommonProxy { //this appears to be the issue public void registerItemRenderer (Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation (item, meta, new ModelResourceLocation(item.getRegistryName(), id)); } } package com.blake.cloudmod.util.handlers; import com.blake.cloudmod.init.Items; import com.blake.cloudmod.util.IHasModel; import net.minecraft.item.Item; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @EventBusSubscriber public class RegistryHandler { @SubscribeEvent public static void onItemRegister(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll(Items.ITEMS.toArray(new Item[0])); } @SubscribeEvent public static void onModelRegister(ModelRegistryEvent event) { for (Item item : Items.ITEMS) { if (item instanceof IHasModel) { ((IHasModel)item).registerModels(); } } } } package com.blake.cloudmod.init.items; import com.blake.cloudmod.mainClass; import com.blake.cloudmod.init.Items; import com.blake.cloudmod.util.IHasModel; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class ItemBase extends Item implements IHasModel { public ItemBase(String name) { setUnlocalizedName(name); setRegistryName(name); setCreativeTab(CreativeTabs.MISC); Items.ITEMS.add(this); } //this method is loaded @Override public void registerModels() { mainClass.proxy.registerItemRenderer(this, 0, "inventory"); } }
-
I'm trying to Render my Item but my code throws an exception. [06:13:42] [Client thread/ERROR] [FML]: Exception loading model for variant minecraft:hello#inventory for item "d:hello", normal location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model minecraft:item/hello with loader VanillaLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:302) ~[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:151) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:560) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:422) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_212] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_212] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_212] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_212] 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_212] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_212] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_212] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_212] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: java.io.FileNotFoundException: minecraft:models/item/hello.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:69) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:65) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1400(ModelLoader.java:115) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:861) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 20 more [06:13:42] [Client thread/ERROR] [FML]: Exception loading model for variant minecraft:hello#inventory for item "d:hello", blockstate location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model minecraft:hello#inventory with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:296) ~[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:151) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:560) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:422) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_212] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_212] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_212] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_212] 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_212] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_212] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_212] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_212] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1175) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 20 more { "parent": "item/generated", "textures": { "layer0": "d:item/angel" } } I have created the code. It seems to be isolated to the custom resource location. "d" is my modid, and "angel" is a png. I'm honestly at my wit's end trying to find what's wrong with the code. It doesn't seem to want to load the JSON file.
-
Ok the material changing helped. Thanks
-
Hi, I am trying to use 'setHarvestLevel("pickaxe", 3)' in my block constructor but nothing seems to be working. It does render but I am legitimately out of ideas, what might I be doing wrong as I do not get error messages yet will be able harvest it with my fist.
-
I did that because of the smallness of the code I wanted to put in there. I didn't want to show a whole class just a bit of code
-
@Mod.EventBusSubscriber needs to be at the top of the class, before declaration and the subscribe event needs to be a static. Other than that, this is the smallest you can get it and it is good because you don't need to create another class for the items. Thanks, you helped me get to understand this
-
Ok, so I have been spending all day trying to code in an Item and it seems to work but when I check miscellaneous tab, it just doesn't show up. I don't know what I am doing wrong, no crash reports, nothing. What am I doing wrong? Please help. Thank you