Jump to content

[1.10.2] Textures not working.


10forever

Recommended Posts

When I run minecraft from eclipse, the item that I added into the game has a purple and black texture. I have no idea why!

 

My cheese.png is 16x16 pixels.

 

My ItemCheese.json is under src/main/resources/assets/rm/models/item

My cheese.png is under src/main/resources/assets/rm/textures/items

 

Here is the latest.log

[17:01:16] [main/INFO]: Extra: []
[17:01:16] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/Tnt/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[17:01:16] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:01:16] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:01:16] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[17:01:16] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[17:01:16] [main/INFO]: Forge Mod Loader version 12.18.1.2046 for Minecraft 1.10.2 loading
[17:01:16] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_60, running on Mac OS X:x86_64:10.12, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre
[17:01:16] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[17:01:16] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[17:01:16] [main/INFO]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[17:01:16] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[17:01:16] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:01:16] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:01:16] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[17:01:16] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:01:16] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:01:16] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:01:16] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[17:01:18] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[17:01:18] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:01:18] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:01:19] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[17:01:19] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:01:19] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:01:19] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[17:01:21] [Client thread/INFO]: Setting user: Player905
[17:01:39] [Client thread/WARN]: Skipping bad option: lastServer:
[17:01:39] [Client thread/INFO]: LWJGL Version: 2.9.2
[17:01:41] [Client thread/INFO]: MinecraftForge v12.18.1.2046 Initialized
[17:01:42] [Client thread/INFO]: Replaced 233 ore recipes
[17:01:43] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[17:01:43] [Client thread/INFO]: Searching /Users/Tnt/Desktop/Modding Workspace 1.10 Crayfish/run/mods for mods
[17:01:53] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load
[17:01:54] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, rm] at CLIENT
[17:01:54] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, rm] at SERVER
[17:01:57] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Regid Mod
[17:01:58] [Client thread/INFO]: Processing ObjectHolder annotations
[17:01:58] [Client thread/INFO]: Found 423 ObjectHolder annotations
[17:01:58] [Client thread/INFO]: Identifying ItemStackHolder annotations
[17:01:58] [Client thread/INFO]: Found 0 ItemStackHolder annotations
[17:01:58] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[17:01:58] [Forge Version Check/INFO]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[17:01:58] [Client thread/INFO]: Applying holder lookups
[17:01:58] [Client thread/INFO]: Holder lookups applied
[17:01:58] [Client thread/INFO]: Injecting itemstacks
[17:01:58] [Client thread/INFO]: Itemstack injection complete
[17:01:59] [Forge Version Check/INFO]: [Forge] Found status: OUTDATED Target: 12.18.3.2185
[17:02:07] [sound Library Loader/INFO]: Starting up SoundSystem...
[17:02:07] [Thread-6/INFO]: Initializing LWJGL OpenAL
[17:02:07] [Thread-6/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:02:08] [Thread-6/INFO]: OpenAL initialized.
[17:02:08] [sound Library Loader/INFO]: Sound engine started
[17:02:27] [Client thread/INFO]: Max texture size: 16384
[17:02:27] [Client thread/INFO]: Created: 16x16 textures-atlas
[17:02:43] [Client thread/INFO]: Injecting itemstacks
[17:02:43] [Client thread/INFO]: Itemstack injection complete
[17:02:44] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods
[17:02:44] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Regid Mod
[17:02:54] [Client thread/INFO]: SoundSystem shutting down...
[17:02:55] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[17:02:55] [sound Library Loader/INFO]: Starting up SoundSystem...
[17:02:55] [Thread-8/INFO]: Initializing LWJGL OpenAL
[17:02:55] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:02:55] [Thread-8/INFO]: OpenAL initialized.
[17:02:55] [sound Library Loader/INFO]: Sound engine started
[17:03:04] [Client thread/INFO]: Max texture size: 16384
[17:03:06] [Client thread/INFO]: Created: 1024x512 textures-atlas
[17:03:13] [Client thread/WARN]: Skipping bad option: lastServer:
[17:03:17] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[17:03:36] [server thread/INFO]: Starting integrated minecraft server version 1.10.2
[17:03:36] [server thread/INFO]: Generating keypair
[17:03:36] [server thread/INFO]: Injecting existing block and item data into this server instance
[17:03:36] [server thread/INFO]: Applying holder lookups
[17:03:36] [server thread/INFO]: Holder lookups applied
[17:03:37] [server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@633af164)
[17:03:37] [server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@633af164)
[17:03:37] [server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@633af164)
[17:03:37] [server thread/INFO]: Preparing start region for level 0
[17:03:39] [server thread/INFO]: Preparing spawn area: 0%
[17:03:40] [server thread/INFO]: Preparing spawn area: 21%
[17:03:41] [server thread/INFO]: Preparing spawn area: 51%
[17:03:42] [server thread/INFO]: Preparing spawn area: 68%
[17:03:43] [server thread/INFO]: Changing view distance to 12, from 10
[17:03:45] [Netty Local Client IO #0/INFO]: Server protocol version 2
[17:03:45] [Netty Server IO #1/INFO]: Client protocol version 2
[17:03:45] [Netty Server IO #1/INFO]: Client attempting to join with 4 mods : FML@8.0.99.99,Forge@12.18.1.2046,mcp@9.19,rm@1.0
[17:03:45] [Netty Local Client IO #0/INFO]: [Netty Local Client IO #0] Client side modded connection established
[17:03:45] [server thread/INFO]: [server thread] Server side modded connection established
[17:03:45] [server thread/INFO]: Player905[local:E:165da51a] logged in with entity id 158 at (-26.527895212686403, 69.0, 74.09669836263329)
[17:03:46] [server thread/INFO]: Player905 joined the game
[17:03:47] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2974ms behind, skipping 59 tick(s)
[17:03:50] [server thread/INFO]: Saving and pausing game...
[17:03:50] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[17:03:51] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[17:03:51] [server thread/INFO]: Saving chunks for level 'New World'/The End
[17:03:54] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@48006a30[id=a498be5d-0142-3d23-a17c-8823a1cd27b0,name=Player905,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:65) ~[YggdrasilAuthenticationService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]
at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:2907) [Minecraft.class:?]
at net.minecraft.client.resources.SkinManager$3.run(SourceFile:106) [skinManager$3.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
[17:03:57] [server thread/INFO]: Saving and pausing game...
[17:03:57] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[17:03:58] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[17:03:58] [server thread/INFO]: Saving chunks for level 'New World'/The End
[17:04:02] [server thread/INFO]: [Player905: Cleared the inventory of Player905, removing 1 items]
[17:04:02] [Client thread/INFO]: [CHAT] Cleared the inventory of Player905, removing 1 items
[17:04:04] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2054ms behind, skipping 41 tick(s)
[17:04:07] [server thread/INFO]: [Player905: Given [Cheese] * 1 to Player905]
[17:04:07] [Client thread/INFO]: [CHAT] Given [Cheese] * 1 to Player905
[17:04:09] [server thread/INFO]: Saving and pausing game...
[17:04:09] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[17:04:09] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[17:04:09] [server thread/INFO]: Saving chunks for level 'New World'/The End

 

Here is my RegidMod.java

package tntdiamond.regidmod;

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;
import tntdiamond.regidmod.init.ModItems;
import tntdiamond.regidmod.proxy.CommonProxy;

@Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = "[1.10.2]")
public class RegidMod {

@Instance
public static RegidMod instance;

@SidedProxy(serverSide = Reference.CLIENT_PROXY_CLASS, clientSide = Reference.SERVER_PROXY_CLASS)
public static CommonProxy proxy;

@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {

	ModItems.init();
	ModItems.register();
}

@Mod.EventHandler
public void init(FMLInitializationEvent event) {
	proxy.init();
}

@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {

}
}

 

Here is my ItemCheese.json

{
    "parent": "builtin/generated",
    "textures": {
        "layer0": "rm:items/cheese"
    },
    "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 ]
      }
    }
}

 

Here is my ModItems.java

package tntdiamond.regidmod.init;

import net.minecraft.client.Minecraft;
import net.minecraft.item.Item;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraftforge.fml.common.registry.GameRegistry;
import tntdiamond.regidmod.Reference;
import tntdiamond.regidmod.items.ItemCheese;

public class ModItems {

public static Item cheese;

public static void init() {
	cheese = new ItemCheese();
}

public static void register() {
	GameRegistry.register(cheese);
}

public static void registerRenders() {
	registerRender(cheese);
}

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

 

 

Link to comment
Share on other sites

Stop using the model mesher.  Use ModelLoader.setCustomModelResourceLocation

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.

Link to comment
Share on other sites

I changed the

ModItems.java to ModelLoader.setCustomModelResrouceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));

 

and it still doesn't work, I get a purple texture in the game.

package tntdiamond.regidmod.init;

import net.minecraft.client.Minecraft;
import net.minecraft.item.Item;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.registry.GameRegistry;
import tntdiamond.regidmod.Reference;
import tntdiamond.regidmod.items.ItemCheese;

public class ModItems {

public static Item cheese;

public static void init() {
	cheese = new ItemCheese();
}

public static void register() {
	GameRegistry.register(cheese);
}

public static void registerRenders() {
	registerRender(cheese);
}

private static void registerRender(Item item) {
	ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));	}
}

 

 

Link to comment
Share on other sites

Also, do you have UnlocalizedName and RegistryName for this ItemCheese?

 

I can tell you're following MrCrayfish's tutorial, am I right? :D

 

And yes, where do you call ModItems.registerRenders()?

 

Lastly, you are not MrCrayfish, please change your information...

[17:01:43] [Client thread/INFO]: Searching /Users/Tnt/Desktop/Modding Workspace 1.10 Crayfish/run/mods for mods

 

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Link to comment
Share on other sites

Your json filename must be the registry name of your Item. Show us your

ItemCheese

class - are you setting the registry name?

 

Also, if you want your item to display like a 'standard' vanilla item, you can set the parent to

item/generated

and then you don't need to set the displays manually. The displays you have set in your json won't actually do anything in this case anyway, because since dual-wielding was introduced the displays for each hand are defined separately - i.e.

"thirdperson_righthand"

,

"firstperson_righthand"

.

 

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

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