Jump to content

Item won't render correctly in inventory


Macintoshuser_2

Recommended Posts

Hello. When trying to update my own mod to Minecraft 1.8.9, I tried to create my Ruby Item. As I created it, I got to the JSON Model file step. Used the code from the apple.json file, changed it to what I needed. Then I put the texture into it's necessary location. When I ran the game, It rendered in the inventory as an untextured Block.

 

 

Here is my Main file:

import Josh.Mod.Main.init.MacItems;
import Josh.Mod.Main.proxy.CommonProxy;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

@Mod(modid=Reference.modid, version=Reference.version, name=Reference.name)
public class ModMain 
{
@SidedProxy(clientSide=Reference.clientProxy, serverSide=Reference.serverProxy)
public static CommonProxy proxy;

@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
	System.out.println("Called PreInitialization");
	MacItems.init();
	MacItems.register();
}
@EventHandler
public void init(FMLInitializationEvent event)
{
	System.out.println("Called Initialization");
	proxy.registerRenders();
}
@EventHandler
public void postInit(FMLPostInitializationEvent event)
{
	System.out.println("Called Post Initialization");
}
}

 

My Items Class:

import Josh.Mod.Main.Reference;
import Josh.Mod.Main.Items.Ingots.RubyIngot;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class MacItems 
{
public static Item RubyIngot;

public static void init()
{
	RubyIngot = new RubyIngot();
}
public static void register()
{
	GameRegistry.registerItem(RubyIngot, RubyIngot.getUnlocalizedName().substring(5));
}
public static void registerRenders()
{
	registerRender(RubyIngot);
}
public static void registerRender(Item item)
{
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.modid.concat(item.getUnlocalizedName().substring(5)), "inventory"));
}
}

 

My Common Proxy:

public class CommonProxy 
{
public void registerRenders()
{

}
}

 

My Client Proxy:

import Josh.Mod.Main.init.MacItems;

public class ClientProxy extends CommonProxy
{
@Override
public void registerRenders(){
	MacItems.registerRenders();
}
}

 

The Class Defining my Item Properties:

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

public class RubyIngot extends Item 
{
public RubyIngot()
{
	super();
	this.setUnlocalizedName("Ruby");
	this.setCreativeTab(CreativeTabs.tabMaterials);
}
}

 

 

CONSOLE OUTPUT:

Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
[08:31:23] [main/INFO]: Extra: []
[08:31:23] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/209143/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken{REDACTED}, --version, 1.8.9, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[08:31:23] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[08:31:24] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[08:31:24] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[08:31:24] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[08:31:24] [main/INFO]: Forge Mod Loader version 11.15.1.1722 for Minecraft 1.8.9 loading
[08:31:24] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_71, running on Mac OS X:x86_64:10.9.5, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/Home/jre
[08:31:24] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[08:31:24] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[08:31:24] [main/INFO]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[08:31:24] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[08:31:24] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[08:31:24] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[08:31:24] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[08:31:24] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[08:31:24] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[08:31:24] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[08:31:24] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[08:31:28] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[08:31:28] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[08:31:28] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[08:31:29] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[08:31:29] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[08:31:29] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[08:31:29] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[08:31:35] [Client thread/INFO]: Setting user: Player758
[08:31:43] [Client thread/INFO]: LWJGL Version: 2.9.2
[08:31:46] [Client thread/INFO]: MinecraftForge v11.15.1.1722 Initialized
[08:31:46] [Client thread/INFO]: Replaced 204 ore recipies
[08:31:47] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[08:31:47] [Client thread/INFO]: Searching /Users/209143/Downloads/forge-1.8.9-11.15.1.1722-mdk/run/mods for mods
[08:31:49] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load
[08:31:50] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, macid] at CLIENT
[08:31:50] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, macid] at SERVER
[08:31:51] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mac's Utilities Mod - 1.8 Edition
[08:31:51] [Client thread/INFO]: Processing ObjectHolder annotations
[08:31:51] [Client thread/INFO]: Found 384 ObjectHolder annotations
[08:31:51] [Client thread/INFO]: Identifying ItemStackHolder annotations
[08:31:51] [Client thread/INFO]: Found 0 ItemStackHolder annotations
[08:31:52] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[08:31:52] [Forge Version Check/INFO]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[08:31:52] [Client thread/INFO]: [Josh.Mod.Main.ModMain:preInit:21]: Called PreInitialization
[08:31:52] [Client thread/INFO]: Applying holder lookups
[08:31:52] [Client thread/INFO]: Holder lookups applied
[08:31:52] [Client thread/INFO]: Injecting itemstacks
[08:31:52] [Client thread/INFO]: Itemstack injection complete
[08:31:53] [sound Library Loader/INFO]: Starting up SoundSystem...
[08:31:54] [Thread-7/INFO]: Initializing LWJGL OpenAL
[08:31:54] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[08:31:55] [Thread-7/INFO]: OpenAL initialized.
[08:31:55] [sound Library Loader/INFO]: Sound engine started
[08:32:07] [Client thread/INFO]: Max texture size: 8192
[08:32:07] [Client thread/INFO]: Created: 16x16 textures-atlas
[08:32:10] [Client thread/INFO]: [Josh.Mod.Main.ModMain:init:28]: Called Initialization
[08:32:10] [Client thread/INFO]: Injecting itemstacks
[08:32:10] [Client thread/INFO]: Itemstack injection complete
[08:32:10] [Client thread/INFO]: [Josh.Mod.Main.ModMain:postInit:34]: Called Post Initialization
[08:32:10] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods
[08:32:10] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mac's Utilities Mod - 1.8 Edition
[08:32:10] [Client thread/INFO]: SoundSystem shutting down...
[08:32:11] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[08:32:11] [sound Library Loader/INFO]: Starting up SoundSystem...
[08:32:11] [Thread-9/INFO]: Initializing LWJGL OpenAL
[08:32:11] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[08:32:11] [Thread-9/INFO]: OpenAL initialized.
[08:32:11] [sound Library Loader/INFO]: Sound engine started
[08:32:18] [Client thread/INFO]: Max texture size: 8192
[08:32:19] [Client thread/INFO]: Created: 512x512 textures-atlas
[08:32:20] [Client thread/ERROR]: ########## GL ERROR ##########
[08:32:20] [Client thread/ERROR]: @ Post startup
[08:32:20] [Client thread/ERROR]: 1281: Invalid value
[08:32:33] [server thread/INFO]: Starting integrated minecraft server version 1.8.9
[08:32:33] [server thread/INFO]: Generating keypair
[08:32:33] [server thread/INFO]: Injecting existing block and item data into this server instance
[08:32:33] [server thread/INFO]: Applying holder lookups
[08:32:33] [server thread/INFO]: Holder lookups applied
[08:32:34] [server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@41f8bb43)
[08:32:34] [server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@41f8bb43)
[08:32:34] [server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@41f8bb43)
[08:32:34] [server thread/INFO]: Preparing start region for level 0
[08:32:35] [server thread/INFO]: Preparing spawn area: 7%
[08:32:36] [server thread/INFO]: Preparing spawn area: 46%
[08:32:37] [server thread/INFO]: Changing view distance to 12, from 10
[08:32:38] [Client thread/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@4efcf5a4[id=92f8a523-1476-36c1-a74b-ef7c8b1d0bfd,name=Player758,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact authentication server
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:71) ~[YggdrasilAuthenticationService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:168) [YggdrasilMinecraftSessionService.class:?]
at net.minecraft.client.Minecraft.launchIntegratedServer(Minecraft.java:2230) [Minecraft.class:?]
at net.minecraftforge.fml.client.FMLClientHandler.tryLoadExistingWorld(FMLClientHandler.java:698) [FMLClientHandler.class:?]
at net.minecraft.client.gui.GuiSelectWorld.func_146615_e(GuiSelectWorld.java:189) [GuiSelectWorld.class:?]
at net.minecraft.client.gui.GuiSelectWorld$List.elementClicked(GuiSelectWorld.java:261) [GuiSelectWorld$List.class:?]
at net.minecraft.client.gui.GuiSlot.handleMouseInput(GuiSlot.java:295) [GuiSlot.class:?]
at net.minecraft.client.gui.GuiSelectWorld.handleMouseInput(GuiSelectWorld.java:77) [GuiSelectWorld.class:?]
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:523) [GuiScreen.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1674) [Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1024) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:349) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_71]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_71]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_71]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_71]
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_71]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_71]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_71]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_71]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching sessionserver.mojang.com found.
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) ~[?:1.8.0_71]
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509) ~[?:1.8.0_71]
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) ~[?:1.8.0_71]
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) ~[?:1.8.0_71]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:90) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1433) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1431) ~[?:1.8.0_71]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71]
at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1430) ~[?:1.8.0_71]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) ~[?:1.8.0_71]
at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:126) ~[HttpAuthenticationService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:54) ~[YggdrasilAuthenticationService.class:?]
... 25 more
Caused by: java.security.cert.CertificateException: No subject alternative DNS name matching sessionserver.mojang.com found.
at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:204) ~[?:1.8.0_71]
at sun.security.util.HostnameChecker.match(HostnameChecker.java:95) ~[?:1.8.0_71]
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:455) ~[?:1.8.0_71]
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:436) ~[?:1.8.0_71]
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:200) ~[?:1.8.0_71]
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) ~[?:1.8.0_71]
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491) ~[?:1.8.0_71]
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) ~[?:1.8.0_71]
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) ~[?:1.8.0_71]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:90) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1433) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1431) ~[?:1.8.0_71]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71]
at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1430) ~[?:1.8.0_71]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) ~[?:1.8.0_71]
at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:126) ~[HttpAuthenticationService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:54) ~[YggdrasilAuthenticationService.class:?]
... 25 more
[08:32:39] [Netty Local Client IO #0/INFO]: Server protocol version 2
[08:32:39] [Netty Server IO #1/INFO]: Client protocol version 2
[08:32:39] [Netty Server IO #1/INFO]: Client attempting to join with 4 mods : FML@8.0.99.99,macid@1.0,Forge@11.15.1.1722,mcp@9.19
[08:32:39] [server thread/INFO]: [server thread] Server side modded connection established
[08:32:39] [Netty Local Client IO #0/INFO]: [Netty Local Client IO #0] Client side modded connection established
[08:32:39] [server thread/INFO]: Player758[local:E:26fbd115] logged in with entity id 259 at (13.5, 58.0, -11.5)
[08:32:39] [server thread/INFO]: Player758 joined the game
[08:32:42] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@5cf1f49f[id=92f8a523-1476-36c1-a74b-ef7c8b1d0bfd,name=Player758,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact authentication server
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:71) ~[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.func_181037_M(Minecraft.java:2778) [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_71]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_71]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_71]
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching sessionserver.mojang.com found.
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) ~[?:1.8.0_71]
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509) ~[?:1.8.0_71]
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) ~[?:1.8.0_71]
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) ~[?:1.8.0_71]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:90) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1433) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1431) ~[?:1.8.0_71]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71]
at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1430) ~[?:1.8.0_71]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) ~[?:1.8.0_71]
at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:126) ~[HttpAuthenticationService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:54) ~[YggdrasilAuthenticationService.class:?]
... 19 more
Caused by: java.security.cert.CertificateException: No subject alternative DNS name matching sessionserver.mojang.com found.
at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:204) ~[?:1.8.0_71]
at sun.security.util.HostnameChecker.match(HostnameChecker.java:95) ~[?:1.8.0_71]
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:455) ~[?:1.8.0_71]
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:436) ~[?:1.8.0_71]
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:200) ~[?:1.8.0_71]
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) ~[?:1.8.0_71]
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491) ~[?:1.8.0_71]
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) ~[?:1.8.0_71]
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) ~[?:1.8.0_71]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) ~[?:1.8.0_71]
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) ~[?:1.8.0_71]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:90) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1433) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1431) ~[?:1.8.0_71]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_71]
at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782) ~[?:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1430) ~[?:1.8.0_71]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) ~[?:1.8.0_71]
at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:126) ~[HttpAuthenticationService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:54) ~[YggdrasilAuthenticationService.class:?]
... 19 more
[08:32:43] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2253ms behind, skipping 45 tick(s)
[08:33:11] [server thread/INFO]: Saving and pausing game...
[08:33:12] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[08:33:12] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[08:33:12] [server thread/INFO]: Saving chunks for level 'New World'/The End
[08:33:12] [server thread/INFO]: Stopping server
[08:33:12] [server thread/INFO]: Saving players
[08:33:12] [server thread/INFO]: Saving worlds
[08:33:12] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[08:33:12] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[08:33:12] [server thread/INFO]: Saving chunks for level 'New World'/The End
[08:33:13] [server thread/INFO]: Unloading dimension 0
[08:33:13] [server thread/INFO]: Unloading dimension -1
[08:33:13] [server thread/INFO]: Unloading dimension 1
[08:33:13] [server thread/INFO]: Applying holder lookups
[08:33:13] [server thread/INFO]: Holder lookups applied
[08:33:15] [Client thread/INFO]: Stopping!
[08:33:15] [Client thread/INFO]: SoundSystem shutting down...
AL lib: (WW) FreeDevice: (0x7ff59abe9600) Deleting 9 Buffer(s)
[08:33:15] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

 

My JSON file:

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

 

How can I fix this?

Link to comment
Share on other sites

Oh god.

 

Why is your render registration code inside your item?  That will absolutely positively crash the server, it does not give a shit that you only call that method from the client, the JVM still needs to load the class and validate it and the mere existence of a reference to a client-side class will cause it to attempt to also load that class.

Why are you using getUnlocalizedName()?  The unlocalized name shouldn't be used for anything other than language localization.

 

You did not include your JSON

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

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.