Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

texture not working


Mystic4pheonix
 Share

Recommended Posts

its registered here

 

package mystic4pheonix.core.init;

import mystic4pheonix.core.blocks.BlockArouralblock;
import mystic4pheonix.core.items.ItemArouraboots;
import mystic4pheonix.core.items.ItemArourachestplate;
import mystic4pheonix.core.items.ItemArourahelmet;
import mystic4pheonix.core.items.ItemArouraingot;
import mystic4pheonix.core.items.ItemArouraleggings;
import mystic4pheonix.core.items.ItemArourasword;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class CModItems {

	// items

	public static Item arouraingot;
	public static Item arouraboots;
	public static Item arourachestplate;
	public static Item arouraleggings;
	public static Item arourahelmet;
	public static Item arourasword;
	
	//block
	
	public static Block arouralblock;

	public static void init() {

		// items

		arouraingot = new ItemArouraingot();
		arouraboots = new ItemArouraboots();
		arourachestplate = new ItemArourachestplate();
		arouraleggings = new ItemArouraleggings();
		arourahelmet = new ItemArourahelmet();
		arourasword = new ItemArourasword(EnumHelper.addToolMaterial("AROURA-LIGHT", 2, 3000, 10.0F, 5.5F, 13));
		arouralblock = new BlockArouralblock();
		//block
		
	}

	public static void register() {

		// items

		GameRegistry.register(arouraingot);
		GameRegistry.register(arouraboots);
		GameRegistry.register(arourachestplate);
		GameRegistry.register(arouraleggings);
		GameRegistry.register(arourahelmet);
		GameRegistry.register(arourasword);
		GameRegistry.register(arouralblock);

	}

	public static void registerRenders() {

		// items

		registerRender(arouraingot);
		registerRender(arouraboots);
		registerRender(arourachestplate);
		registerRender(arouraleggings);
		registerRender(arourahelmet);
		registerRender(arourasword);
		registerRender(arouralblock);
	}

	private static void registerRender(Item item) {
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0,
				new ModelResourceLocation(item.getRegistryName(), "inventory"));
	}
	private static void registerRender(Block block) {
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0,
				new ModelResourceLocation(block.getRegistryName(), "inventory"));
	}
}

 

Link to comment
Share on other sites

12 minutes ago, Draco18s said:

Also:

blocks.png

Why does the "registry" name have capital letters in it?

Why isn't your unlocalized name based off the registry name?

someBlock.setUnlocalizedName(someBlock.getRegistryName());

Basically only set the registryName in the Enum.

Also in the screen there is a typo "arourablock"

Edited by Pingubro
Link to comment
Share on other sites

5 minutes ago, Pingubro said:

Basically just set the registryName in the Enum.

Also in the screen there is a typo "arourablock"


[17:20:38] [Client thread/ERROR] [FML]: Exception loading model for variant alcm:arourablock#normal for blockstate "alcm:arourablock"
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model alcm:arourablock#normal with loader VariantLoader.INSTANCE, skipping
	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
	at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:260) ~[ModelLoader.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:153) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:248) ~[ModelLoader.class:?]
	at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:155) ~[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:122) [SimpleReloadableResourceManager.class:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:541) [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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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:1253) ~[ModelLoader$VariantLoader.class:?]
	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
	... 21 more
[17:20:38] [Client thread/ERROR] [FML]: Exception loading blockstate for the variant alcm:arourablock#normal: 
java.lang.Exception: Could not load model definition for variant alcm:arourablock
	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:293) ~[ModelLoader.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:248) ~[ModelLoader.class:?]
	at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:155) ~[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:122) [SimpleReloadableResourceManager.class:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:541) [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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of model alcm:blockstates/arourablock.json
	at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:228) ~[ModelBakery.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:289) ~[ModelLoader.class:?]
	... 20 more
Caused by: java.io.FileNotFoundException: alcm:blockstates/arourablock.json
	at net.minecraft.client.resources.FallbackResourceManager.getAllResources(FallbackResourceManager.java:104) ~[FallbackResourceManager.class:?]
	at net.minecraft.client.resources.SimpleReloadableResourceManager.getAllResources(SimpleReloadableResourceManager.java:79) ~[SimpleReloadableResourceManager.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:221) ~[ModelBakery.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:289) ~[ModelLoader.class:?]
	... 20 more

now it says this

Link to comment
Share on other sites

Just now, Mystic4pheonix said:

Caused by: java.io.FileNotFoundException: alcm:blockstates/arourablock.json

That's because this isn't the name of your blockstates file. Your blockstates file needs to have the exact same name as your block's registry name. Right now your registry name is aurorablock and the blockstates file is called blockarouralblock.

Link to comment
Share on other sites

ok fix that now it says

[17:22:57] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[17:22:57] [Client thread/INFO] [FML]: Searching C:\Users\luket\Desktop\mod\run\mods for mods
[17:22:59] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[17:22:59] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, alcm] at CLIENT
[17:22:59] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, alcm] at SERVER
[17:23:01] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Arouraalliance custom mod
[17:23:01] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[17:23:01] [Client thread/INFO] [FML]: Found 444 ObjectHolder annotations
[17:23:01] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[17:23:01] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[17:23:01] [Client thread/INFO] [FML]: Applying holder lookups
[17:23:01] [Client thread/INFO] [FML]: Holder lookups applied
[17:23:01] [Client thread/INFO] [FML]: Applying holder lookups
[17:23:01] [Client thread/INFO] [FML]: Holder lookups applied
[17:23:01] [Client thread/INFO] [FML]: Applying holder lookups
[17:23:01] [Client thread/INFO] [FML]: Holder lookups applied
[17:23:01] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[17:23:01] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[17:23:01] [Client thread/INFO] [FML]: Applying holder lookups
[17:23:01] [Client thread/INFO] [FML]: Holder lookups applied
[17:23:01] [Client thread/INFO] [FML]: Injecting itemstacks
[17:23:01] [Client thread/INFO] [FML]: Itemstack injection complete
[17:23:02] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: OUTDATED Target: 13.20.0.2263
[17:23:05] [Sound Library Loader/INFO]: Starting up SoundSystem...
[17:23:06] [Thread-8/INFO]: Initializing LWJGL OpenAL
[17:23:06] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:23:06] [Thread-8/INFO]: OpenAL initialized.
[17:23:06] [Sound Library Loader/INFO]: Sound engine started
[17:23:12] [Client thread/INFO] [FML]: Max texture size: 16384
[17:23:12] [Client thread/INFO]: Created: 16x16 textures-atlas
[17:23:12] [Client thread/ERROR] [FML]: Exception loading model for variant alcm:arourablock#normal for blockstate "alcm:arourablock"
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model alcm:arourablock#normal with loader VariantLoader.INSTANCE, skipping
	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
	at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:260) ~[ModelLoader.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:153) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:248) ~[ModelLoader.class:?]
	at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:155) ~[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:122) [SimpleReloadableResourceManager.class:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:541) [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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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:1253) ~[ModelLoader$VariantLoader.class:?]
	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
	... 21 more
[17:23:12] [Client thread/ERROR] [FML]: Exception loading blockstate for the variant alcm:arourablock#normal: 
java.lang.Exception: Could not load model definition for variant alcm:arourablock
	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:293) ~[ModelLoader.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:248) ~[ModelLoader.class:?]
	at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:155) ~[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:122) [SimpleReloadableResourceManager.class:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:541) [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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of model alcm:blockstates/arourablock.json
	at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:228) ~[ModelBakery.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:289) ~[ModelLoader.class:?]
	... 20 more
Caused by: java.io.FileNotFoundException: alcm:blockstates/arourablock.json
	at net.minecraft.client.resources.FallbackResourceManager.getAllResources(FallbackResourceManager.java:104) ~[FallbackResourceManager.class:?]
	at net.minecraft.client.resources.SimpleReloadableResourceManager.getAllResources(SimpleReloadableResourceManager.java:79) ~[SimpleReloadableResourceManager.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:221) ~[ModelBakery.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:289) ~[ModelLoader.class:?]
	... 20 more
[17:23:13] [Client thread/INFO] [FML]: Injecting itemstacks
[17:23:13] [Client thread/INFO] [FML]: Itemstack injection complete
[17:23:13] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[17:23:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Arouraalliance custom mod
[17:23:17] [Client thread/INFO]: SoundSystem shutting down...
[17:23:17] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[17:23:17] [Sound Library Loader/INFO]: Starting up SoundSystem...
[17:23:17] [Thread-10/INFO]: Initializing LWJGL OpenAL
[17:23:17] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:23:17] [Thread-10/INFO]: OpenAL initialized.
[17:23:18] [Sound Library Loader/INFO]: Sound engine started
[17:23:23] [Client thread/INFO] [FML]: Max texture size: 16384
[17:23:23] [Client thread/INFO]: Created: 512x512 textures-atlas
[17:23:26] [Client thread/WARN]: Skipping bad option: lastServer:
[17:23:28] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[17:25:15] [Client thread/INFO]: Stopping!
[17:25:15] [Client thread/INFO]: SoundSystem shutting down...
[17:25:15] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future releas

 

Link to comment
Share on other sites

i took out the L's

 

[17:32:45] [Client thread/ERROR] [FML]: Exception loading model for variant alcm:arourablock#normal for blockstate "alcm:arourablock"
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model alcm:arourablock#normal with loader VariantLoader.INSTANCE, skipping
	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
	at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:260) ~[ModelLoader.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:153) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:248) ~[ModelLoader.class:?]
	at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:155) ~[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:122) [SimpleReloadableResourceManager.class:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:541) [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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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:1253) ~[ModelLoader$VariantLoader.class:?]
	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
	... 21 more
[17:32:45] [Client thread/ERROR] [FML]: Exception loading blockstate for the variant alcm:arourablock#normal: 
java.lang.Exception: Could not load model definition for variant alcm:arourablock
	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:293) ~[ModelLoader.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:248) ~[ModelLoader.class:?]
	at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:155) ~[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:122) [SimpleReloadableResourceManager.class:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:541) [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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of model alcm:blockstates/arourablock.json
	at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:228) ~[ModelBakery.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:289) ~[ModelLoader.class:?]
	... 20 more
Caused by: java.io.FileNotFoundException: alcm:blockstates/arourablock.json
	at net.minecraft.client.resources.FallbackResourceManager.getAllResources(FallbackResourceManager.java:104) ~[FallbackResourceManager.class:?]
	at net.minecraft.client.resources.SimpleReloadableResourceManager.getAllResources(SimpleReloadableResourceManager.java:79) ~[SimpleReloadableResourceManager.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:221) ~[ModelBakery.class:?]
	at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:289) ~[ModelLoader.class:?]
	... 20 more

 

Edited by Mystic4pheonix
Link to comment
Share on other sites

6 minutes ago, Mystic4pheonix said:

Caused by: java.io.FileNotFoundException: alcm:blockstates/arourablock.json

58e51bffebb68_ScreenShot2017-04-05at17_31_15.png.57800694cc2b60d073e189095a3b33b6.png

 

Can you see what is happening here? Look at the name of the file which the crash report can't find, and look at the name of the file you have in your workspace. Why can't it find the file it's looking for?

Link to comment
Share on other sites

package mystic4pheonix.core.init;

import mystic4pheonix.core.blocks.Arourablock;
import mystic4pheonix.core.items.ItemArouraboots;
import mystic4pheonix.core.items.ItemArourachestplate;
import mystic4pheonix.core.items.ItemArourahelmet;
import mystic4pheonix.core.items.ItemArouraingot;
import mystic4pheonix.core.items.ItemArouraleggings;
import mystic4pheonix.core.items.ItemArourasword;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class CModItems {

	// items

	public static Item arouraingot;
	public static Item arouraboots;
	public static Item arourachestplate;
	public static Item arouraleggings;
	public static Item arourahelmet;
	public static Item arourasword;
	
	//block
	
	public static Block arourablock;

	public static void init() {

		// items

		arouraingot = new ItemArouraingot();
		arouraboots = new ItemArouraboots();
		arourachestplate = new ItemArourachestplate();
		arouraleggings = new ItemArouraleggings();
		arourahelmet = new ItemArourahelmet();
		arourasword = new ItemArourasword(EnumHelper.addToolMaterial("AROURA-LIGHT", 2, 3000, 10.0F, 5.5F, 13));
		arourablock = new Arourablock();
		//block
		
	}

	public static void register() {

		// items

		GameRegistry.register(arouraingot);
		GameRegistry.register(arouraboots);
		GameRegistry.register(arourachestplate);
		GameRegistry.register(arouraleggings);
		GameRegistry.register(arourahelmet);
		GameRegistry.register(arourasword);
		GameRegistry.register(arourablock);

	}

	public static void registerRenders() {

		// items

		registerRender(arouraingot);
		registerRender(arouraboots);
		registerRender(arourachestplate);
		registerRender(arouraleggings);
		registerRender(arourahelmet);
		registerRender(arourasword);
		registerRender(arourablock);
	}

	private static void registerRender(Item item) {
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0,
				new ModelResourceLocation(item.getRegistryName(), "inventory"));
	}
	private static void registerRender(Block block) {
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0,
				new ModelResourceLocation(block.getRegistryName(), "inventory"));
	}
}
package mystic4pheonix.core.blocks;

import mystic4pheonix.core.Arouraalliancecustommod;
import mystic4pheonix.core.Reference;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;

public class Arourablock extends Block {

	public Arourablock() {
		super(Material.IRON);
		setUnlocalizedName(Reference.ModBlocks.AROURALBLOCK.getUnlocalizedName());
		setRegistryName(Reference.ModBlocks.AROURALBLOCK.getRegistryName());
		setCreativeTab(Arouraalliancecustommod.tabArouraAlliance);
	}

}
public static final String MOD_ID = "alcm";
	public static final String NAME = "Arouraalliance custom mod";
	public static final String VERSION = "pre-alpha:0.1";
	public static final String ACCEPTED_VERSIONS = "[1.11.2]";

	public static final String SERVER_PROXY_CLASS = "mystic4pheonix.core.proxy.ServerProxy";
	public static final String CLIENT_PROXY_CLASS = "mystic4pheonix.core.proxy.ClientProxy";

	// enums

	public static enum ModItems {
		AROURAINGOT("arouraingot", "ItemArouraingot"), AROURABOOTS("arouraboots", "ItemArouraboots"), AROURACHESTPLATE(
				"arourachestplate",
				"ItemArourachestplate"), AROURALEGGINGS("arouraleggings", "ItemArouraleggings"), AROURAHELMET(
						"arourahelmet", "ItemArourahelmet"), AROURASWORD("arourasword", "ItemArourasword");

		private String unlocalizedName;
		private String registryName;

		ModItems(String unlocalizedName, String registryName) {
			this.unlocalizedName = unlocalizedName;
			this.registryName = registryName;
		}

		public String getUnlocalizedName() {
			return unlocalizedName;
		}

		public String getRegistryName() {
			return registryName;
		}
	}

	public static enum ModBlocks {
		AROURALBLOCK("arourablock", "arourablock");

		private String unlocalizedName;
		private String registryName;

		ModBlocks(String unlocalizedName, String registryName) {
			this.unlocalizedName = unlocalizedName;
			this.registryName = registryName;
		}

		public String getUnlocalizedName() {
			return unlocalizedName;
		}

		public String getRegistryName() {
			return registryName;
		}
	}
}

 

Edited by Mystic4pheonix
Link to comment
Share on other sites

  • The name for your tool material should include your ModID to avoid conflicts.
  • Common code (such as your CModItems class) cannot reference client-only code, such as Minecraft, this must be done from your client proxy or another client-only class.
  • Do not use the ItemModelMesher to register your models. Use ModelLoader.setCustomModelResourceLocation in preInit.
  • Why do you have a separate class for every piece of your armor? O.o
  • Like 1
Link to comment
Share on other sites

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
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.

 Share




  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Here is the log. 08.12 12:25:29 [Multicraft] Starting server! 08.12 12:25:29 [Multicraft] Loaded config for "Custom JAR (Place "custom.jar" in base directory)" 08.12 12:25:31 [Multicraft] Updating eula.txt file 08.12 12:25:31 [Server] INFO WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. 08.12 12:25:33 [Server] INFO 2021-12-08 12:25:33,132 main WARN Advanced terminal features are not available in this environment 08.12 12:25:33 [Server] main/INFO [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 35.1.37, --fml.mcpVersion, 20201102.104115, --fml.mcVersion, 1.16.4, --fml.forgeGroup, net.minecraftforge, nogui] 08.12 12:25:33 [Server] main/INFO [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_275 by Oracle Corporation 08.12 12:25:33 [Server] main/INFO [op.OptiFineTransformationService/]: OptiFineTransformationService.onLoad 08.12 12:25:33 [Server] main/INFO [op.OptiFineTransformationService/]: OptiFine ZIP file: /mods/OptiFine-1.16.4_HD_U_G7.jar 08.12 12:25:33 [Server] main/INFO [op.OptiFineTransformer/]: Target.PRE_CLASS is available 08.12 12:25:33 [Server] main/INFO [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust 08.12 12:25:33 [Server] main/INFO [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/libraries/org/spongepowered/mixin/0.8.2/mixin-0.8.2.jar Service=ModLauncher Env=SERVER 08.12 12:25:33 [Server] main/INFO [op.OptiFineTransformationService/]: OptiFineTransformationService.initialize 08.12 12:25:34 [Server] main/INFO [op.OptiFineTransformationService/]: OptiFineTransformationService.transformers 08.12 12:25:34 [Server] main/INFO [op.OptiFineTransformer/]: Targets: 308 08.12 12:25:35 [Server] main/INFO [op.OptiFineTransformationService/]: additionalClassesLocator: [optifine., net.optifine.] 08.12 12:25:35 [Server] main/INFO [mixin/]: Successfully loaded Mixin Connector [vazkii.botania.common.MixinConnector] 08.12 12:25:35 [Server] main/INFO [mixin/]: Successfully loaded Mixin Connector [vazkii.patchouli.common.MixinConnector] 08.12 12:25:35 [Server] main/INFO [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, ., nogui] 08.12 12:25:36 [Server] main/FATAL [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/gui/screen/Screen for invalid dist DEDICATED_SERVER 08.12 12:25:36 [Server] INFO Exception in thread "main" [12:25:36] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.reflect.InvocationTargetException 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.reflect.Method.invoke(Method.java:498) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: ... 7 more 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:644]: Caused by: java.lang.ExceptionInInitializerError 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:644]: at net.minecraft.crash.CrashReport.func_71504_g(CrashReport.java:101) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:644]: at net.minecraft.crash.CrashReport.<init>(CrashReport.java:54) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:644]: at net.minecraft.crash.CrashReport.func_230188_h_(CrashReport.java:425) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:644]: at net.minecraft.server.Main.main(Main.java:91) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:644]: ... 13 more 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screen/Screen for invalid dist DEDICATED_SERVER 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:71) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: at java.lang.ClassLoader.loadClass(ClassLoader.java:351) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: at net.optifine.reflect.Reflector.<clinit>(Reflector.java:184) 08.12 12:25:36 [Server] main/INFO [STDERR/]: [java.lang.Throwable:printStackTrace:668]: ... 17 more 08.12 12:25:37 [Multicraft] Server shut down (starting) 08.12 12:25:37 [Multicraft] Restarting crashed server in 10 seconds 08.12 12:25:37 [Multicraft] Looks like a crash, check the server console. Return value: 1 08.12 12:25:37 [Multicraft] Server stopped 08.12 12:25:40 [Multicraft] Received stop command 08.12 12:25:40 [Multicraft] Server stopped
    • Ah thankyou, yeah sometimes when it's not clear on the stacktrace where the problem started because of nullptrs or lambdas or something I find it quite difficult to work out where to look. Is this what caused the crash and can I simply fix it by adding something like: modEventBus.addListener(EntityAISetupManager::addEntityAttributes); to my LotbMod constructor
    • Hello, i have installed latest version of MC Forge and it don't want to start. It gives me error: somewhere in internet i found information that Forge for MC 1.17.1 don't support Java 17, but from other side Minecraft 1.18 don't support Java 8 (with JDK 17 it worked perfectly) so which version of java should I install to make it work together? When i trying to run MC with Java 8 it gives me error:  
    • Thanks,but could you tell me what should accurately do to modify the codes to achieve my goal?
    • Hello everyone, today i tried to setup project on version 1.18, but it always throws error (1.17.1 and lower dont) FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project '1_18'. > Invalid patcher dependency: de.oceanlabs.mcp:mcp_config:1.18-20211130.085255@zip * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 13s What should I do?
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.