Jump to content

Meta Item Textures Missing


ThatCreepyUncle

Recommended Posts

Currently I am trying to add circuits, however the textures are not showing and I can't find a error in the log.

 

LOG

2016-07-07 18:48:29,080 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-07 18:48:29,083 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[18:48:29] [main/INFO] [GradleStart]: Extra: []
[18:48:29] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Bob/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:48:29] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[18:48:29] [main/INFO] [FML]: Forge Mod Loader version 12.17.0.1976 for Minecraft 1.9.4 loading
[18:48:29] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_66\jre
[18:48:29] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:48:29] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[18:48:29] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:48:29] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[18:48:31] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[18:48:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:48:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:48:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:48:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:48:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:48:33] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2016-07-07 18:48:34,174 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-07 18:48:34,214 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-07 18:48:34,218 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[18:48:34] [Client thread/INFO]: Setting user: Player503
[18:48:39] [Client thread/INFO]: LWJGL Version: 2.9.4
[18:48:41] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:202]: ---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 7/7/16 6:48 PM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.9.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 896680584 bytes (855 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.13416 Compatibility Profile Context 15.300.1025.1001' Renderer: 'AMD Radeon R7 200 Series'
[18:48:41] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1976 Initialized
[18:48:41] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[18:48:41] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[18:48:41] [Client thread/INFO] [FML]: Searching C:\Users\Bob\Desktop\LogicalTech 1.9.4\run\mods for mods
[18:48:41] [Client thread/INFO] [ltech]: Mod ltech is missing the required element 'name'. Substituting ltech
[18:48:43] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[18:48:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at CLIENT
[18:48:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at SERVER
[18:48:44] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech
[18:48:44] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[18:48:44] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations
[18:48:44] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[18:48:44] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[18:48:44] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[18:48:44] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[18:48:45] [Client thread/INFO] [FML]: Applying holder lookups
[18:48:45] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null
[18:48:45] [Client thread/INFO] [FML]: Holder lookups applied
[18:48:45] [Client thread/INFO] [FML]: Injecting itemstacks
[18:48:45] [Client thread/INFO] [FML]: Itemstack injection complete
[18:48:49] [sound Library Loader/INFO]: Starting up SoundSystem...
[18:48:49] [Thread-8/INFO]: Initializing LWJGL OpenAL
[18:48:49] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:48:49] [Thread-8/INFO]: OpenAL initialized.
[18:48:50] [sound Library Loader/INFO]: Sound engine started
[18:48:56] [Client thread/INFO] [FML]: Max texture size: 16384
[18:48:56] [Client thread/INFO]: Created: 16x16 textures-atlas
[18:48:58] [Client thread/INFO] [FML]: Injecting itemstacks
[18:48:58] [Client thread/INFO] [FML]: Itemstack injection complete
[18:48:58] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[18:48:58] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech
[18:49:02] [Client thread/INFO]: SoundSystem shutting down...
[18:49:02] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[18:49:02] [sound Library Loader/INFO]: Starting up SoundSystem...
[18:49:02] [Thread-10/INFO]: Initializing LWJGL OpenAL
[18:49:02] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:49:02] [Thread-10/INFO]: OpenAL initialized.
[18:49:03] [sound Library Loader/INFO]: Sound engine started
[18:49:07] [Client thread/INFO] [FML]: Max texture size: 16384
[18:49:08] [Client thread/INFO]: Created: 1024x512 textures-atlas
[18:49:10] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[18:50:17] [server thread/INFO]: Starting integrated minecraft server version 1.9.4
[18:50:17] [server thread/INFO]: Generating keypair
[18:50:17] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[18:50:17] [server thread/INFO] [FML]: Applying holder lookups
[18:50:17] [server thread/INFO] [FML]: Holder lookups applied
[18:50:17] [server thread/INFO] [FML]: Loading dimension 0 (Dev World) (net.minecraft.server.integrated.IntegratedServer@3e33e4ba)
[18:50:18] [server thread/INFO] [FML]: Loading dimension 1 (Dev World) (net.minecraft.server.integrated.IntegratedServer@3e33e4ba)
[18:50:18] [server thread/INFO] [FML]: Loading dimension -1 (Dev World) (net.minecraft.server.integrated.IntegratedServer@3e33e4ba)
[18:50:18] [server thread/INFO]: Preparing start region for level 0
[18:50:20] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[18:50:20] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[18:50:20] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[18:50:20] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[18:50:20] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[18:50:20] [server thread/INFO]: Player503[local:E:6a2fdb05] logged in with entity id 1253 at (19.42612807298208, -120.6795103751531, -4.886012161662722)
[18:50:20] [server thread/INFO]: Player503 joined the game
[18:50:21] [server thread/INFO]: Saving and pausing game...
[18:50:21] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld
[18:50:21] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether
[18:50:21] [server thread/INFO]: Saving chunks for level 'Dev World'/The End
[18:50:21] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@3c394e9e[id=6b7bc9c9-e7da-3a47-9bb3-2051e22e10b9,name=Player503,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:3043) [Minecraft.class:?]
at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
[18:50:26] [server thread/INFO]: Player503 has just earned the achievement [Taking Inventory]
[18:50:26] [Client thread/INFO]: [CHAT] Player503 has just earned the achievement [Taking Inventory]

 

ModItems Class

 

package com.thatcreepyuncle.logicalTech.core;

import java.util.ArrayList;

import com.thatcreepyuncle.logicalTech.item.Circuit;
import com.thatcreepyuncle.logicalTech.item.RemoteSwitch;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class ModItems {

public static ArrayList<Item> items;

public static Item circuit;
public static Item remote_switch;

public static void preInit() {
	items = new ArrayList<Item>();

	circuit = new Circuit();
	GameRegistry.register(circuit);

	remote_switch = new RemoteSwitch();
	GameRegistry.register(remote_switch);

	for (Item item : items) {
		GameRegistry.register(item);
	}
}

public static void init() {
	registerItemRenderer(circuit, 0, "toolCircuit");
	registerItemRenderer(circuit, 1, "redstoneCircuit");
	registerItemRenderer(circuit, 2, "motherboardCircuit");

	registerItemRenderer(remote_switch, 0, "remote_switch");
	registerItemRenderer(remote_switch, 1, "remote_switch_activated");

	for (Item item : items) {
		registerItemRenderer(item);
	}
}

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

public static void registerItemRenderer(Item item, int meta, String fileName) {
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
    .register(item, meta, new ModelResourceLocation((fileName), "inventory"));
}
}

 

 

Item Class:

package com.thatcreepyuncle.logicalTech.item;

import java.util.List;

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

public class Circuit extends Item{

public Circuit() {
	super();
        this.setHasSubtypes(true);
        this.setRegistryName("circuit");
        this.setCreativeTab(CreativeTabs.REDSTONE);
        this.setUnlocalizedName("circuit");
}

@Override
public String getUnlocalizedName(ItemStack stack) {
	 String name = EnumCircuit.values()[stack.getItemDamage()].getUnlocalizedName();
	 if(name == null){
		 name = "";
	 }
	return "circuit_" + name;
}

@Override
public void getSubItems(Item itemIn, CreativeTabs tab, List subItems) {
    for (int i = 0; i < 3; i++) {
		subItems.add(new ItemStack(itemIn, 1, i));
	}
}

}

 

Client Proxy:

 

package com.thatcreepyuncle.logicalTech.core;

import net.minecraft.client.renderer.block.model.ModelBakery;
import net.minecraft.util.ResourceLocation;

public class ClientProxy extends CommonProxy{

@Override
public void init() {
	ModItems.init();
}

@Override
public void loadMetaItems() {
	ModelBakery.registerItemVariants(ModItems.circuit, new ResourceLocation("ltech:toolCircuit"), new ResourceLocation("ltech:redstoneCircuit"), new ResourceLocation("ltech:motherboardCircuit"));
	ModelBakery.registerItemVariants(ModItems.remote_switch, new ResourceLocation("ltech:remote_switch"), new ResourceLocation("ltech:remote_switch_activated"));
}

}

Link to comment
Share on other sites

1) you call registerItemRenderer in init, not preinit.

2) You call it on common code, you should call it on client s side

3) you never call loadMetaItems

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

That still doesn't work:

 

New Client Proxy Code:

package com.thatcreepyuncle.logicalTech.core;

import net.minecraft.client.renderer.block.model.ModelBakery;
import net.minecraft.util.ResourceLocation;

public class ClientProxy extends CommonProxy{

@Override
public void init() {
	loadMetaItems();
	ModItems.init();
}

@Override
public void preInit() {
	super.preInit();
}

@Override
public void loadMetaItems() {
	ModelBakery.registerItemVariants(ModItems.circuit, new ResourceLocation("ltech:toolCircuit"), new ResourceLocation("ltech:redstoneCircuit"), new ResourceLocation("ltech:motherboardCircuit"));
	ModelBakery.registerItemVariants(ModItems.remote_switch, new ResourceLocation("ltech:remote_switch"), new ResourceLocation("ltech:remote_switch_activated"));
}

}

Link to comment
Share on other sites

You still have

registerItemRenderer

in common code.  That method calls

Minecraft.getMinecraft()

which will crash the dedicated server.

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

Does your ModItems class have, or not have, a registerItemRenderer method?

Does it, or does it not, call a registerItemRenderer method?

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

Does your ModItems class have, or not have, a registerItemRenderer method?

Does it, or does it not, call a registerItemRenderer method?

 

Look closely, the ModItems.init is called in client proxy, ModItems is not his mod class

 

on another note, use what diesieben07 said.

 

Link to comment
Share on other sites

How does that matter?

The smallest amount of code loaded is a class, not a method. If the method exists in a class that the server uses, the server will see that method, whether it's called or not.

 

So he should annotate the method to be client only?

Link to comment
Share on other sites

Or move it to the client proxy, but yes, annotating it as side-only-client would work.

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

Show your updated code.

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

Updated Client Proxy:

 

package com.thatcreepyuncle.logicalTech.core;

import net.minecraft.client.renderer.block.model.ModelBakery;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class ClientProxy extends CommonProxy{

@Override
public void init() {
	loadMetaItems();
	ModItems.init();
}

@Override
public void preInit() {
	super.preInit();
}

@Override
public void loadMetaItems() {
	ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 0, new ModelResourceLocation("ltech:toolCircuit"));
	ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 1, new ModelResourceLocation("ltech:redstoneCircuit"));
	ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 2, new ModelResourceLocation("ltech:motherboardCircuit"));

	ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 0, new ModelResourceLocation("ltech:remote_switch"));
	ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 1, new ModelResourceLocation("ltech:remote_switch_activated"));
}

}

 

Updated Mod Items:

 

package com.thatcreepyuncle.logicalTech.core;

import java.util.ArrayList;

import com.thatcreepyuncle.logicalTech.item.Circuit;
import com.thatcreepyuncle.logicalTech.item.RemoteSwitch;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class ModItems {

public static ArrayList<Item> items;

public static Item circuit;
public static Item remote_switch;

public static void preInit() {
	items = new ArrayList<Item>();

	circuit = new Circuit();
	GameRegistry.register(circuit);

	remote_switch = new RemoteSwitch();
	GameRegistry.register(remote_switch);

	for (Item item : items) {
		GameRegistry.register(item);
	}
}

@SideOnly(Side.CLIENT)
public static void init() {
	registerItemRenderer(circuit, 0, "toolCircuit");
	registerItemRenderer(circuit, 1, "redstoneCircuit");
	registerItemRenderer(circuit, 2, "motherboardCircuit");

	registerItemRenderer(remote_switch, 0, "remote_switch");
	registerItemRenderer(remote_switch, 1, "remote_switch_activated");

	for (Item item : items) {
		registerItemRenderer(item);
	}
}

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

public static void registerItemRenderer(Item item, int meta, String fileName) {
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
    .register(item, meta, new ModelResourceLocation((fileName), "inventory"));
}
}

 

Item Class

 

package com.thatcreepyuncle.logicalTech.item;

import java.util.List;

import com.thatcreepyuncle.logicalTech.util.ModCreativeTabs;

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

public class Circuit extends Item{

public Circuit() {
	super();
        this.setHasSubtypes(true);
        this.setRegistryName("circuit");
        this.setCreativeTab(ModCreativeTabs.GENERAL);
        this.setUnlocalizedName("circuit");
}

@Override
public String getUnlocalizedName(ItemStack stack) {
	 String name = EnumCircuit.values()[stack.getItemDamage()].getUnlocalizedName();
	return "circuit_" + name;
}

@Override
public void getSubItems(Item itemIn, CreativeTabs tab, List subItems) {
    for (int i = 0; i < 3; i++) {
		subItems.add(new ItemStack(itemIn, 1, i));
	}
}

}

Link to comment
Share on other sites

package com.thatcreepyuncle.logicalTech.core;

import net.minecraft.client.renderer.block.model.ModelBakery;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class ClientProxy extends CommonProxy{

@Override
public void init() {
	loadMetaItems();
	ModItems.init();
}

@Override
public void preInit() {
	super.preInit();
	loadMetaItems();
}

@Override
public void loadMetaItems() {
	ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 0, new ModelResourceLocation("ltech:toolCircuit"));
	ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 1, new ModelResourceLocation("ltech:redstoneCircuit"));
	ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 2, new ModelResourceLocation("ltech:motherboardCircuit"));

	ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 0, new ModelResourceLocation("ltech:remote_switch"));
	ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 1, new ModelResourceLocation("ltech:remote_switch_activated"));
}

}

Link to comment
Share on other sites

You have

loadMetaItems();

in both

init()

and

preInit()

. Why?

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 removed It ,but it still Doesn't Work. The textures are black and purple still.

 

Log(If it helps):

 

2016-07-10 12:28:37,998 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-10 12:28:38,000 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:28:38] [main/INFO] [GradleStart]: Extra: []
[12:28:38] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Bob/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:28:38] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[12:28:38] [main/INFO] [FML]: Forge Mod Loader version 12.17.0.1976 for Minecraft 1.9.4 loading
[12:28:38] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_66\jre
[12:28:38] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:28:38] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[12:28:38] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:28:38] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[12:28:41] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[12:28:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:28:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:28:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:28:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:28:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:28:43] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2016-07-10 12:28:44,026 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-10 12:28:44,094 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-10 12:28:44,102 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:28:44] [Client thread/INFO]: Setting user: Player512
[12:28:50] [Client thread/INFO]: LWJGL Version: 2.9.4
[12:28:53] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:202]: ---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 7/10/16 12:28 PM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.9.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 772421544 bytes (736 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.13416 Compatibility Profile Context 15.300.1025.1001' Renderer: 'AMD Radeon R7 200 Series'
[12:28:53] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1976 Initialized
[12:28:53] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[12:28:54] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[12:28:54] [Client thread/INFO] [FML]: Searching C:\Users\Bob\Desktop\LogicalTech 1.9.4\run\mods for mods
[12:28:54] [Client thread/INFO] [ltech]: Mod ltech is missing the required element 'name'. Substituting ltech
[12:28:55] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[12:28:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at CLIENT
[12:28:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at SERVER
[12:28:57] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech
[12:28:57] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[12:28:57] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations
[12:28:57] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[12:28:57] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[12:28:57] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[12:28:57] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[12:28:57] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null
[12:28:57] [Client thread/INFO] [FML]: Applying holder lookups
[12:28:57] [Client thread/INFO] [FML]: Holder lookups applied
[12:28:57] [Client thread/INFO] [FML]: Injecting itemstacks
[12:28:57] [Client thread/INFO] [FML]: Itemstack injection complete
[12:29:03] [sound Library Loader/INFO]: Starting up SoundSystem...
[12:29:03] [Thread-8/INFO]: Initializing LWJGL OpenAL
[12:29:03] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[12:29:03] [Thread-8/INFO]: OpenAL initialized.
[12:29:03] [sound Library Loader/INFO]: Sound engine started
[12:29:10] [Client thread/INFO] [FML]: Max texture size: 16384
[12:29:10] [Client thread/INFO]: Created: 16x16 textures-atlas
[12:29:13] [Client thread/INFO] [FML]: Injecting itemstacks
[12:29:13] [Client thread/INFO] [FML]: Itemstack injection complete
[12:29:13] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[12:29:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech
[12:29:18] [Client thread/INFO]: SoundSystem shutting down...
[12:29:19] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[12:29:19] [sound Library Loader/INFO]: Starting up SoundSystem...
[12:29:19] [Thread-10/INFO]: Initializing LWJGL OpenAL
[12:29:19] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[12:29:19] [Thread-10/INFO]: OpenAL initialized.
[12:29:19] [sound Library Loader/INFO]: Sound engine started
[12:29:25] [Client thread/INFO] [FML]: Max texture size: 16384
[12:29:25] [Client thread/INFO]: Created: 1024x512 textures-atlas
[12:29:27] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[12:30:16] [server thread/INFO]: Starting integrated minecraft server version 1.9.4
[12:30:16] [server thread/INFO]: Generating keypair
[12:30:16] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[12:30:16] [server thread/INFO] [FML]: Applying holder lookups
[12:30:16] [server thread/INFO] [FML]: Holder lookups applied
[12:30:16] [server thread/INFO] [FML]: Loading dimension 0 (World) (net.minecraft.server.integrated.IntegratedServer@7023b082)
[12:30:17] [server thread/INFO] [FML]: Loading dimension 1 (World) (net.minecraft.server.integrated.IntegratedServer@7023b082)
[12:30:17] [server thread/INFO] [FML]: Loading dimension -1 (World) (net.minecraft.server.integrated.IntegratedServer@7023b082)
[12:30:17] [server thread/INFO]: Preparing start region for level 0
[12:30:18] [server thread/INFO]: Preparing spawn area: 58%
[12:30:19] [server thread/INFO]: Changing view distance to 2, from 10
[12:30:21] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[12:30:21] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[12:30:21] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[12:30:21] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[12:30:21] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[12:30:21] [server thread/INFO]: Player512[local:E:0a945a5e] logged in with entity id 454 at (267.02422565986575, 67.0, 219.49761608486688)
[12:30:21] [server thread/INFO]: Player512 joined the game
[12:30:22] [server thread/INFO]: Saving and pausing game...
[12:30:22] [server thread/INFO]: Saving chunks for level 'World'/Overworld
[12:30:23] [server thread/INFO]: Saving chunks for level 'World'/Nether
[12:30:23] [server thread/INFO]: Saving chunks for level 'World'/The End
[12:30:23] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@7f6f03fe[id=4296a45d-fd1d-3a8b-9f25-0f078d10cc6b,name=Player512,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:3043) [Minecraft.class:?]
at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
[12:30:26] [server thread/INFO]: Player512 has just earned the achievement [Taking Inventory]
[12:30:26] [Client thread/INFO]: [CHAT] Player512 has just earned the achievement [Taking Inventory]

 

Is there any other code you want?

Link to comment
Share on other sites

Sorry I didn't post sooner but here is the new code.

 

Client Proxy

 

package com.thatcreepyuncle.logicalTech.core;

import net.minecraft.client.renderer.block.model.ModelBakery;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class ClientProxy extends CommonProxy{

@Override
public void init() {
	ModItems.init();
	loadMetaItems();
}

@Override
public void preInit() {
	ModBlocks.preInit();
	ModItems.preInit();
}

@Override
public void loadMetaItems() {
	System.out.println("Loading Meta Items");
	ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 0, new ModelResourceLocation("ltech:toolCircuit"));
	ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 1, new ModelResourceLocation("ltech:redstoneCircuit"));
	ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 2, new ModelResourceLocation("ltech:motherboardCircuit"));

	ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 0, new ModelResourceLocation("ltech:remote_switch"));
	ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 1, new ModelResourceLocation("ltech:remote_switch_activated"));
}

}

 

Common Proxy:

 

package com.thatcreepyuncle.logicalTech.core;

import com.thatcreepyuncle.logicalTech.LogicalTech;
import com.thatcreepyuncle.logicalTech.tileEntity.TileEntityCircuitWorkbench;
import com.thatcreepyuncle.logicalTech.tileEntity.TileEntityComputer;

import net.minecraft.client.renderer.block.model.ModelBakery;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class CommonProxy {

public void preInit() {
	ModBlocks.preInit();
	ModItems.preInit();
}

public void init() {
	GameRegistry.registerTileEntity(TileEntityComputer.class, "computer");
	GameRegistry.registerTileEntity(TileEntityCircuitWorkbench.class, "Circuit_Workbench");
	NetworkRegistry.INSTANCE.registerGuiHandler(LogicalTech.instance, new GuiHandler());
}

public static void postInit() {

}

public void loadMetaItems() {
}

}

 

Mod Class

 

package com.thatcreepyuncle.logicalTech;

 

import com.thatcreepyuncle.logicalTech.core.CommonProxy;

import com.thatcreepyuncle.logicalTech.network.CraftingMessage;

import com.thatcreepyuncle.logicalTech.util.ModCreativeTabs;

 

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 net.minecraftforge.fml.common.network.NetworkRegistry;

import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;

import net.minecraftforge.fml.relauncher.Side;

 

@Mod(modid = LogicalTech.MODID, version = LogicalTech.VERSION)

public class LogicalTech

{

    public static final String MODID = "ltech";

    public static final String VERSION = "1.0";

    @Instance(MODID)

    public static LogicalTech instance;

 

    @SidedProxy(clientSide="com.thatcreepyuncle.logicalTech.core.ClientProxy", serverSide="com.thatcreepyuncle.logicalTech.core.ServerProxy")

    public static CommonProxy proxy;

   

   

    @EventHandler

    public void preInit(FMLPreInitializationEvent e)

    {

    ModCreativeTabs tabs = new ModCreativeTabs();

    proxy.preInit();

    }

   

    @EventHandler

    public void init(FMLInitializationEvent e)

    {

    proxy.init();

    }

   

    @EventHandler

    public void postInit(FMLPostInitializationEvent e)

    {

    proxy.postInit();

    }

}

 

Item Class:

 

package com.thatcreepyuncle.logicalTech.item;

import java.util.List;

import com.thatcreepyuncle.logicalTech.util.ModCreativeTabs;

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

public class Circuit extends Item{

public Circuit() {
	super();
        this.setHasSubtypes(true);
        this.setRegistryName("circuit");
        this.setCreativeTab(ModCreativeTabs.GENERAL);
        this.setUnlocalizedName("circuit");
}

@Override
public String getUnlocalizedName(ItemStack stack) {
	 String name = EnumCircuit.values()[stack.getItemDamage()].getUnlocalizedName();
	return "circuit_" + name;
}

@Override
public void getSubItems(Item itemIn, CreativeTabs tab, List subItems) {
    for (int i = 0; i < 3; i++) {
		subItems.add(new ItemStack(itemIn, 1, i));
	}
}

}

 

Log:

 

2016-07-12 16:52:16,122 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-12 16:52:16,127 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:52:16] [main/INFO] [GradleStart]: Extra: []
[16:52:16] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Bob/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:52:16] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[16:52:16] [main/INFO] [FML]: Forge Mod Loader version 12.17.0.1976 for Minecraft 1.9.4 loading
[16:52:16] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_66\jre
[16:52:16] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:52:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[16:52:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:52:16] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[16:52:19] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[16:52:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:52:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:52:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:52:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:52:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:52:22] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2016-07-12 16:52:23,944 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-12 16:52:24,008 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-12 16:52:24,013 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:52:24] [Client thread/INFO]: Setting user: Player391
[16:52:32] [Client thread/INFO]: LWJGL Version: 2.9.4
[16:52:34] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:202]: ---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 7/12/16 4:52 PM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.9.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 865528912 bytes (825 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.13416 Compatibility Profile Context 15.300.1025.1001' Renderer: 'AMD Radeon R7 200 Series'
[16:52:34] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1976 Initialized
[16:52:34] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[16:52:35] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[16:52:35] [Client thread/INFO] [FML]: Searching C:\Users\Bob\Desktop\LogicalTech 1.9.4\run\mods for mods
[16:52:35] [Client thread/INFO] [ltech]: Mod ltech is missing the required element 'name'. Substituting ltech
[16:52:37] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[16:52:38] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at CLIENT
[16:52:38] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at SERVER
[16:52:39] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech
[16:52:39] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[16:52:39] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations
[16:52:39] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[16:52:39] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[16:52:39] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[16:52:39] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[16:52:39] [Client thread/INFO] [sTDOUT]: [com.thatcreepyuncle.logicalTech.core.ClientProxy:loadMetaItems:26]: Loading Meta Items
[16:52:39] [Client thread/INFO] [FML]: Applying holder lookups
[16:52:40] [Client thread/INFO] [FML]: Holder lookups applied
[16:52:40] [Client thread/INFO] [FML]: Injecting itemstacks
[16:52:40] [Client thread/INFO] [FML]: Itemstack injection complete
[16:52:40] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null
[16:52:46] [sound Library Loader/INFO]: Starting up SoundSystem...
[16:52:46] [Thread-8/INFO]: Initializing LWJGL OpenAL
[16:52:46] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:52:47] [Thread-8/INFO]: OpenAL initialized.
[16:52:47] [sound Library Loader/INFO]: Sound engine started
[16:52:56] [Client thread/INFO] [FML]: Max texture size: 16384
[16:52:56] [Client thread/INFO]: Created: 16x16 textures-atlas
[16:52:59] [Client thread/INFO] [FML]: Injecting itemstacks
[16:52:59] [Client thread/INFO] [FML]: Itemstack injection complete
[16:52:59] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[16:52:59] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech
[16:53:04] [Client thread/INFO]: SoundSystem shutting down...
[16:53:05] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[16:53:05] [sound Library Loader/INFO]: Starting up SoundSystem...
[16:53:05] [Thread-10/INFO]: Initializing LWJGL OpenAL
[16:53:05] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:53:05] [Thread-10/INFO]: OpenAL initialized.
[16:53:05] [sound Library Loader/INFO]: Sound engine started
[16:53:12] [Client thread/INFO] [FML]: Max texture size: 16384
[16:53:13] [Client thread/INFO]: Created: 1024x512 textures-atlas
[16:53:16] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[16:53:21] [server thread/INFO]: Starting integrated minecraft server version 1.9.4
[16:53:21] [server thread/INFO]: Generating keypair
[16:53:21] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[16:53:21] [server thread/INFO] [FML]: Applying holder lookups
[16:53:21] [server thread/INFO] [FML]: Holder lookups applied
[16:53:22] [server thread/INFO] [FML]: Loading dimension 0 (World) (net.minecraft.server.integrated.IntegratedServer@3a4379a2)
[16:53:22] [server thread/INFO] [FML]: Loading dimension 1 (World) (net.minecraft.server.integrated.IntegratedServer@3a4379a2)
[16:53:22] [server thread/INFO] [FML]: Loading dimension -1 (World) (net.minecraft.server.integrated.IntegratedServer@3a4379a2)
[16:53:22] [server thread/INFO]: Preparing start region for level 0
[16:53:23] [server thread/INFO]: Preparing spawn area: 48%
[16:53:24] [server thread/INFO]: Changing view distance to 2, from 10
[16:53:27] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[16:53:27] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[16:53:27] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[16:53:27] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[16:53:27] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[16:53:27] [server thread/INFO]: Player391[local:E:3fc8612c] logged in with entity id 447 at (269.4931499573029, 68.0, 219.54516940443818)
[16:53:27] [server thread/INFO]: Player391 joined the game
[16:53:28] [server thread/INFO]: Saving and pausing game...
[16:53:28] [server thread/INFO]: Saving chunks for level 'World'/Overworld
[16:53:28] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@68af052c[id=e879cd92-2843-3668-b364-5d9cff074bc0,name=Player391,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:3043) [Minecraft.class:?]
at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
[16:53:28] [server thread/INFO]: Saving chunks for level 'World'/Nether
[16:53:28] [server thread/INFO]: Saving chunks for level 'World'/The End
[16:53:29] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2175ms behind, skipping 43 tick(s)
[16:53:32] [server thread/INFO]: Player391 has just earned the achievement [Taking Inventory]
[16:53:32] [Client thread/INFO]: [CHAT] Player391 has just earned the achievement [Taking Inventory]

Link to comment
Share on other sites

Oh sorry:

 

ModItems:

 

package com.thatcreepyuncle.logicalTech.core;

import java.util.ArrayList;

import com.thatcreepyuncle.logicalTech.item.Circuit;
import com.thatcreepyuncle.logicalTech.item.RemoteEnderporter;
import com.thatcreepyuncle.logicalTech.item.RemoteSwitch;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class ModItems {

public static ArrayList<Item> items;

public static Item circuit;
public static Item remote_switch;
public static Item remote_enderporter;

public static void preInit() {
	items = new ArrayList<Item>();

	circuit = new Circuit();
	GameRegistry.register(circuit);

	remote_switch = new RemoteSwitch();
	GameRegistry.register(remote_switch);

	remote_enderporter = new RemoteEnderporter();
	items.add(remote_enderporter);

	for (Item item : items) {
		GameRegistry.register(item);
	}
}

@SideOnly(Side.CLIENT)
public static void init() {
	registerItemRenderer(circuit, 0, "toolCircuit");
	registerItemRenderer(circuit, 1, "redstoneCircuit");
	registerItemRenderer(circuit, 2, "motherboardCircuit");

	registerItemRenderer(remote_switch, 0, "remote_switch");
	registerItemRenderer(remote_switch, 1, "remote_switch_activated");

	for (Item item : items) {
		registerItemRenderer(item);
	}
}

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

public static void registerItemRenderer(Item item, int meta, String fileName) {
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
    .register(item, meta, new ModelResourceLocation((fileName), "inventory"));
}
}

Link to comment
Share on other sites

1)

I moved it to the LoadMeta Items to the preInit() method

 

2)

I added super.preInit() to the init method in my client proxy!

 

3) I dont get the

Why is the ItemModelMesher crap in ModItems still there (i.e. methods init and the two registerItemRenderer)?
because, am I wrong but don't I need those to registry the models of my Items? So if I didn't have them would it not register the Item model? Do I remove them or change them, I am confused.
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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • When i try to launch Minecraft Java 1.20.1 forge with mods (82 mods),on start it loaded all mods,but at end Java just crashed.  p.s i allocated 8GB ram for minecraft and i didn't runned another instance.Log file pp.s I use ATlauncher   Environment: Organising filesystem [24/04/2024 23:40:08 PM] ATLauncher Version: 3.4.36.3 [11ae0b2334c236e93ee8128de980952b2a1b8900] [24/04/2024 23:40:08 PM] App Arguments: ["--install-method=aur","--no-launcher-update"] [24/04/2024 23:40:08 PM] JVM Arguments: ["-Dawt.useSystemAAFontSettings=on","-Dswing.aatext=true"] [24/04/2024 23:40:08 PM] Java Version: Java 22 (22) [24/04/2024 23:40:08 PM] Java Path: /usr/lib/jvm/java-22-openjdk [24/04/2024 23:40:08 PM] 64 Bit Java: true [24/04/2024 23:40:08 PM] RAM Available: 14931MB [24/04/2024 23:40:08 PM] Launcher Directory: **USERSDIR** [24/04/2024 23:40:08 PM] GPU: IvyBridge GT2 [HD Graphics 4000] (Intel Corporation (0x8086)) unknown 256MB VRAM [24/04/2024 23:40:08 PM] CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz 4 cores/8 threads [24/04/2024 23:40:08 PM] Operating System: EndeavourOS (unknown (unknown) build 6.8.7-arch1-1) [24/04/2024 23:40:08 PM] Bitness: 64 [24/04/2024 23:40:08 PM] Uptime: 15889 [24/04/2024 23:40:08 PM] Manufacturer: GNU/Linux
    • If you have nvidia graphics, don't touch your amd drivers, otherwise it might fix it but keep running on integrated graphics, which will result in terrible performance. For nvidia graphics, you need to tell windows and nvidia control panel that anything Minecraft related (the launcher, java, etc...) should prefer high performance graphics so that it actually uses your nvidia gpu
    • In the ever-evolving landscape of technology, the rise of cryptocurrencies and digital assets has introduced both unparalleled opportunities and unprecedented challenges. As these digital currencies become increasingly prevalent, so too does the risk of theft and loss. Yet, amidst the complexity and uncertainty, there exists a beacon of hope: ADRIAN LAMO HACKER. Technology has indeed become more sophisticated and enhanced, presenting new challenges in the realm of asset recovery. However, just as any other currency can be stolen or lost, crypto and digital assets are not beyond redemption. With the right expertise and guidance, recovery is possible and achievable. Contact ADRIAN LAMO HACKER via the website: https://adrianlamohackpro.online/ , a trusted, honest, and certified agency specializing in the retrieval of stolen or lost digital assets. In my own experience, I found myself in dire straits after falling victim to cybercriminals who absconded with a significant portion of my crypto holdings. It was a daunting situation, but I refused to succumb to despair. Upon engaging ADRIAN LAMO HACKER, their professionalism, and integrity immediately struck me, as an unwavering commitment to their clients. They deeply understand blockchain technology and utilize advanced methodologies to trace and recover lost or stolen funds. Their approach is meticulous, their expertise unparalleled, and their results speak for themselves. In a matter of days, ADRIAN LAMO HACKER successfully traced and recovered over 90% of my stolen funds, a feat I once believed to be unattainable. Their fees were fair and transparent, and communication throughout the process was nothing short of excellent. They kept me informed every step of the way, providing reassurance and guidance when I needed it most. For anyone who has fallen victim to crypto theft or loss, I wholeheartedly recommend ADRIAN LAMO HACKER. They are not just experts in their field; they are guardians of justice in the digital realm. With their assistance, you can reclaim what's rightfully yours and emerge stronger than ever before. So, if you find yourself grappling with the devastation of lost or stolen digital assets, don't despair. Reach out to ADRIAN LAMO HACKER via website: https://adrianlamohackpro.online/  / Telegram: @ADRIANLAMOHACKERTECH and let them guide you toward a brighter tomorrow.
  • Topics

×
×
  • Create New...

Important Information

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