Jump to content

Recommended Posts

Posted

Help !!! My item textures are not working!!! Can you find the problem.

//init
 //ModItems
   package com.flordiaducky.duckyutilmod.init;

import java.util.ArrayList;
import java.util.List;

import com.flordiaducky.duckyutilmod.items.ItemBase;

import net.minecraft.item.Item;

public class ModItems 
{

	public static final List<Item> ITEMS = new ArrayList<Item>();
	
	public static final Item RUBBER_DUCKY = new ItemBase("rubber_ducky");
	
}
//Items
  //ItemBase
    public class ItemBase extends Item implements IHasModel
{

	public ItemBase(String name)
	{
		setUnlocalizedName(name);
		setRegistryName(name);
		setCreativeTab(Main.duckyutilmodtab);
		
		ModItems.ITEMS.add(this);
	}
	
	@Override
	public void registerModels() 
	{
		Main.proxy.registerItemRenderer(this, 0, "inventory");
	}

}
//proxy
  //commonproxy
    package com.flordiaducky.duckyutilmod.proxy;

import net.minecraft.item.Item;

public class CommonProxy 
{

	public void registerItemRenderer(Item item, int meta, String id){}
	
}
  //clientproxy
    package com.flordiaducky.duckyutilmod.proxy;

import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;

public class ClientProxy extends CommonProxy
{

	public void registerItemRenderer(Item item, int meta, String id)
	{
		ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id));
	}
	
}
//util
  //IHasModel
    package com.flordiaducky.duckyutilmod.util;

public interface IHasModel 
{
	public void registerModels();
}
  //Reference
    package com.flordiaducky.duckyutilmod.util;

public class Reference 
{

	public static final String MOD_ID = "dum";
	public static final String NAME = "Ducky's Util Mod";
	public static final String VERSION = "1.0";
	public static final String ACCEPTED_VERSIONS = "[1.12.2]";
	public static final String CLIENT_PROXY_CLASS = "com.flordiaducky.duckyutilmod.proxy.ClientProxy";
	public static final String COMMON_PROXY_CLASS = "com.flordiaducky.duckyutilmod.proxy.CommonProxy";
	
}
   //Handler
     //RegistryHandler
       package com.flordiaducky.duckyutilmod.util.handlers;

import com.flordiaducky.duckyutilmod.init.ModItems;
import com.flordiaducky.duckyutilmod.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(ModItems.ITEMS.toArray(new Item[0]));
	}
	
	@SubscribeEvent
	public static void onModelRegister(ModelRegistryEvent event)
	{
		for(Item item : ModItems.ITEMS)
		{
			if(item instanceof IHasModel)
			{
				((IHasModel)item).registerModels();
			}
		}
	}
	
}
//ASSETS
 //en_us.lang
   //Items
item.rubber_ducky.name=Rubber Ducky
//Tabs
itemGroup.duckyutilmodtab=Ducky's Util Mod
  //models
    //items
      //rubber_ducky.json
       {
   "parent": "item/generated",
   "textures": {
       "layer0": "dum:items/rubber_ducky"
   }
}
 //textures
  rubber_ducky.png

 

rubber_ducky.png

Posted

Read this:

 

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

 

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

 

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

Posted
17 minutes ago, FlordiaDucky said:

public static final Item RUBBER_DUCKY = new ItemBase("rubber_ducky");

Don't ever use static initializers. Instantinate your things in the appropriate registry event.

 

17 minutes ago, FlordiaDucky said:

ItemBase

ItemBase is an antipattern, you do not need it.

 

17 minutes ago, FlordiaDucky said:

implements IHasModel

IHasModel is stupid. All items need models, no exceptions and there is nothing about registering an item model that requires access to private/protected stuff. Just register your models directly in the model registry event, not in your item class.

 

17 minutes ago, FlordiaDucky said:

CommonProxy

CommonProxy makes no sense. Proxies are meant to separate sided-only code. If the code is common it goes into your main class, not in your proxy.

 

17 minutes ago, FlordiaDucky said:

COMMON_PROXY_CLASS = "com.flordiaducky.duckyutilmod.proxy.CommonProxy";

(I am assuming you are using this as your server proxy)This makes even less sense. A server proxy either provides noop implementations for client-only methods or contains server-sided only code. A common proxy can't be your server proxy.

 

17 minutes ago, FlordiaDucky said:

public static final String MOD_ID = "dum";

dum is a terrible modid. You have 64 characters available. 

 

public class ClientProxy extends CommonProxy
{

	public void registerItemRenderer(Item item, int meta, String id)
	{
		ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id));
	}
	
}

Use the @Override annotation when overriding methods. Don't ever manually override methods, use the generate override feature of your IDE.

 

As for your issue I would need to see the log generated by your game when it starts up. You can find it in %workspace_dir%/run/logs/latest.log(or debug.log)

 

As a sidenote don't use tutorials from youtube. They are made by people who have no clue what they are doing or how to write propper forge mod(or in most cases even how to write okay java code in the first place) who just figured out how to make their code not explode on them and have some effect on the game and are very eager to share the knowledge. The problem is that they have written their code in the worst possible way making every mistake possible dragging along years of cargo-cult programming. This is probably the worst place/way to learn minecraft modding.

Posted

I think the problem is the location of your .json

 

Spoiler

//models
    //items <<<<<< HERE
      //rubber_ducky.json
       {
   "parent": "item/generated",
   "textures": {
       "layer0": "dum:items/rubber_ducky"
   }
}

 

the folder must be models / item / (and here your json)

 

tell me,  if work or not!

greetings!

  • Thanks 1
Posted
29 minutes ago, FlordiaDucky said:
19 hours ago, V0idWa1k3r said:

don't use tutorials from youtube. They are made by people who have no clue what they are doing or how to write propper forge mod(or in most cases even how to write okay java code in the first place) who just figured out how to make their code not explode on them and have some effect on the game and are very eager to share the knowledge. The problem is that they have written their code in the worst possible way making every mistake possible dragging along years of cargo-cult programming. This is probably the worst place/way to learn minecraft modding.

 

29 minutes ago, FlordiaDucky said:

I Don't know what the problem is and you don't make any sense!!!

19 hours ago, V0idWa1k3r said:

As for your issue I would need to see the log generated by your game when it starts up. You can find it in %workspace_dir%/run/logs/latest.log(or debug.log)

 

30 minutes ago, FlordiaDucky said:

And also plz make the awnser a little bit easier to read.

What exactly is difficult to read here? I think I've explained everything pretty clearly - telling you what's wrong, why it's wrong and how to fix it. I don't know how can I be more clear than that.

Posted
25 minutes ago, FlordiaDucky said:

you don't make any sense!!! 

Learn Java before making a mod.

26 minutes ago, FlordiaDucky said:

followed  everything in this turioral

Try a different tutorial possibly in vain. Or better yet, learn Java.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

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

Forge and vanilla BlockState generator.

Posted

Hey!!I I just a beginner and here my log.

//Log
[19:06:36] [main/INFO] [GradleStart]: Extra: []
[19:06:36] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/wolf0/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[19:06:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[19:06:36] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[19:06:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[19:06:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[19:06:36] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2772 for Minecraft 1.12.2 loading
[19:06:36] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_171, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_171
[19:06:36] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[19:06:36] [main/ERROR] [FML]: Full: C:\Users\wolf0\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[19:06:36] [main/ERROR] [FML]: Trimmed: c:/users/wolf0/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[19:06:37] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[19:06:37] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
[19:06:38] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[19:06:38] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[19:06:38] [main/INFO] [FML]: Searching C:\Users\wolf0\Desktop\MinecraftModding\Ducky's Util Mod\run\.\mods for mods
[19:06:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[19:06:38] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[19:06:38] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[19:06:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[19:06:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[19:06:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[19:06:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[19:06:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[19:06:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[19:06:40] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[19:06:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[19:06:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[19:06:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[19:06:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[19:06:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[19:06:40] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[19:06:41] [main/INFO] [net.minecraft.client.Minecraft]: Setting user: Player771
[19:06:45] [main/INFO] [net.minecraft.client.Minecraft]: LWJGL Version: 2.9.4
[19:06:46] [main/INFO] [FML]: -- System Details --
Details:
	Minecraft Version: 1.12.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_171, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 830033144 bytes (791 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.13399 Compatibility Profile Context 15.200.1062.1004' Renderer: 'AMD Radeon HD 8670D'
[19:06:46] [main/INFO] [FML]: MinecraftForge v14.23.5.2772 Initialized
[19:06:46] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[19:06:46] [main/INFO] [FML]: Replaced 1036 ore ingredients
[19:06:46] [main/INFO] [FML]: Searching C:\Users\wolf0\Desktop\MinecraftModding\Ducky's Util Mod\run\.\mods for mods
[19:06:48] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[19:06:48] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 90921609 nanos
[19:06:48] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dum] at CLIENT
[19:06:48] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dum] at SERVER
[19:06:49] [main/INFO] [net.minecraft.client.resources.SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Ducky's Util Mod
[19:06:50] [main/INFO] [FML]: Processing ObjectHolder annotations
[19:06:50] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[19:06:50] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[19:06:50] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[19:06:50] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
[19:06:50] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[19:06:50] [main/INFO] [FML]: Applying holder lookups
[19:06:50] [main/INFO] [FML]: Holder lookups applied
[19:06:50] [main/INFO] [FML]: Applying holder lookups
[19:06:50] [main/INFO] [FML]: Holder lookups applied
[19:06:50] [main/INFO] [FML]: Applying holder lookups
[19:06:50] [main/INFO] [FML]: Holder lookups applied
[19:06:50] [main/INFO] [FML]: Applying holder lookups
[19:06:50] [main/INFO] [FML]: Holder lookups applied
[19:06:50] [main/INFO] [FML]: Injecting itemstacks
[19:06:50] [main/INFO] [FML]: Itemstack injection complete
[19:06:50] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: AHEAD Target: null
[19:06:54] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager]: Starting up SoundSystem...
[19:06:54] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager]: Initializing LWJGL OpenAL
[19:06:54] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[19:06:54] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager]: OpenAL initialized.
[19:06:54] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager]: Sound engine started
[19:07:01] [main/INFO] [FML]: Max texture size: 16384
[19:07:03] [main/INFO] [net.minecraft.client.renderer.texture.TextureMap]: Created: 512x512 textures-atlas
[19:07:04] [main/ERROR] [FML]: Exception loading model for variant dum:rubber_ducky#inventory for item "dum:rubber_ducky", normal location exception: 
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dum:item/rubber_ducky 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:559) [Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171]
	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_171]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: java.io.FileNotFoundException: dum:models/item/rubber_ducky.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
[19:07:04] [main/ERROR] [FML]: Exception loading model for variant dum:rubber_ducky#inventory for item "dum:rubber_ducky", blockstate location exception: 
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dum:rubber_ducky#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:559) [Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171]
	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_171]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171]
	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
[19:07:05] [main/INFO] [FML]: Applying holder lookups
[19:07:05] [main/INFO] [FML]: Holder lookups applied
[19:07:05] [main/INFO] [FML]: Injecting itemstacks
[19:07:05] [main/INFO] [FML]: Itemstack injection complete
[19:07:05] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[19:07:05] [main/INFO] [com.mojang.text2speech.NarratorWindows]: Narrator library for x64 successfully loaded
[19:07:06] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient]: Could not authorize you against Realms server: Invalid session id
[19:07:11] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Starting integrated minecraft server version 1.12.2
[19:07:11] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Generating keypair
[19:07:11] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance
[19:07:11] [Server thread/INFO] [FML]: Applying holder lookups
[19:07:11] [Server thread/INFO] [FML]: Holder lookups applied
[19:07:12] [Server thread/INFO] [FML]: Loading dimension 0 (testing) (net.minecraft.server.integrated.IntegratedServer@74f5fcb1)
[19:07:12] [Server thread/INFO] [net.minecraft.advancements.AdvancementList]: Loaded 488 advancements
[19:07:12] [Server thread/INFO] [FML]: Loading dimension -1 (testing) (net.minecraft.server.integrated.IntegratedServer@74f5fcb1)
[19:07:12] [Server thread/INFO] [FML]: Loading dimension 1 (testing) (net.minecraft.server.integrated.IntegratedServer@74f5fcb1)
[19:07:12] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing start region for level 0
[19:07:13] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing spawn area: 10%
[19:07:15] [Server thread/INFO] [FML]: Unloading dimension -1
[19:07:15] [Server thread/INFO] [FML]: Unloading dimension 1
[19:07:15] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Changing view distance to 12, from 10
[19:07:16] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[19:07:16] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[19:07:16] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]
[19:07:16] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[19:07:16] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[19:07:16] [Server thread/INFO] [net.minecraft.server.management.PlayerList]: Player771[local:E:706e91fe] logged in with entity id 281 at (179.83963817114733, 69.0, 272.39649962127953)
[19:07:16] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Player771 joined the game
[19:07:17] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Saving and pausing game...
[19:07:17] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'testing'/overworld
[19:07:18] [pool-2-thread-1/WARN] [com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@44f9826d[id=03825f5c-cf99-36d9-8f32-2c0adc70aba9,name=Player771,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
	at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3181) [Minecraft.class:?]
	at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
	at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_171]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_171]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
[19:07:24] [main/INFO] [net.minecraft.client.Minecraft]: Stopping!
[19:07:25] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server
[19:07:25] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players
[19:07:25] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds
[19:07:25] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'testing'/overworld
[19:07:25] [Server thread/INFO] [FML]: Unloading dimension 0
[19:07:25] [Server thread/INFO] [FML]: Applying holder lookups
[19:07:25] [Server thread/INFO] [FML]: Holder lookups applied
[19:07:25] [main/INFO] [net.minecraft.client.audio.SoundManager]: SoundSystem shutting down...
[19:07:25] [main/WARN] [net.minecraft.client.audio.SoundManager]: Author: Paul Lamb, www.paulscode.com

 

Posted
2 hours ago, luiihns said:

I think the problem is the location of your .json

 

  Reveal hidden contents


//models
    //items <<<<<< HERE
      //rubber_ducky.json
       {
   "parent": "item/generated",
   "textures": {
       "layer0": "dum:items/rubber_ducky"
   }
}

 

the folder must be models / item / (and here your json)

 

tell me,  if work or not!

greetings!

Did you read this?
I'm pretty sure it's the solution

Posted
2 hours ago, luiihns said:

I think the problem is the location of your .json

 

  Reveal hidden contents


//models
    //items <<<<<< HERE
      //rubber_ducky.json
       {
   "parent": "item/generated",
   "textures": {
       "layer0": "dum:items/rubber_ducky"
   }
}

 

the folder must be models / item / (and here your json)

 

tell me,  if work or not!

greetings!

There nothing wrong with my resource location.

Posted

but you wrote in the description 

 

21 hours ago, FlordiaDucky said:

 


  //models
    //items
      //rubber_ducky.json
       {
   "parent": "item/generated",
   "textures": {
       "layer0": "dum:items/rubber_ducky"
   }
}

 

it says resource location:

models, its ok

items, its no ok

 

must be item (without 's')

Posted
16 minutes ago, FlordiaDucky said:

There nothing wrong with my resource location.

Quote

Caused by: java.io.FileNotFoundException: dum:models/item/rubber_ducky.json

The game clearly thinks otherwise because it can't find the model file at the specified location. Check the folders carefully. As @luiihns pointed out items != item.

 

11 minutes ago, FlordiaDucky said:

i tryed it but it not working!!!

What exactly have you tried? You need to move your model json file from the models/items folder into the models/item folder. Can we see your project's folder structure?

Posted
21 hours ago, FlordiaDucky said:

 


@EventBusSubscriber << THIS CHANGE TO @Mod.EventBusSubscriber
public class RegistryHandler 
{
	...	
}

 

use this, maybe works

 

Spoiler

@Mod.EventBusSubscriber

 

Posted
14 minutes ago, luiihns said:

@EventBusSubscriber << THIS CHANGE TO @Mod.EventBusSubscriber

Unless the OP made a class that is named EventBusSubscriber there is exactly zero difference between using the class prefixed name and the non-prefixed name. More than that you already know that their event handlers are working otherwise they would not have an item at all and wouldn't be able to report a missing model issue, they would be reporting a missing item issue.

As the log clearly points out their model file is not in the right location and this is the issue that needs to be fixed for the model to appear in game.

 

7 minutes ago, FlordiaDucky said:

Here my mod MDK folder for you to fix!!! Try not to change to much!! 

This is not how anything works. We are not here to write code/organize your workspace for you. 2 people have already told you what you need to do. Your models are in the blocks and the items folders, but the game looks for the block and item folders. Notice how there is no S at the end. Your folder structure is incorrect and you need to fix this.We told you how to do it, so just do it. There is nothing hard in renaming a folder.

Besides this is dropbox. The most I could do with it is download it to my PC which doesn't help your in the slightest.

Posted

Can you post a new log?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

Spoiler

Logs (Most issues require logs to diagnose):

Spoiler

Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.

 

What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...

 

...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension

 

Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.

 

Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

Spoiler
  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.

Video:

Spoiler

 

 

 

or alternately, 

 

Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft

 

Server Not Starting:

Spoiler

If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.

 

Reporting Illegal/Inappropriate Adfocus Ads:

Spoiler

Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.

 

Posting your mod as a GitHub Repo:

Spoiler

When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.

 

  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]

 

  • 1 year later...
Posted
40 minutes ago, Minecraftian14 said:

So, it would be nice to share how you fixed your problem please. i am also facing similar issues.

This thread is from 2018... please make a new thread for your problem instead of bumping this one.

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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