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

    • Join one of the largest civilization experiments in Minecraft under our banner!   Our goal is to create the largest and most prominent civilization across the entirety of Minecraft, and we’d like you to join! We offer lots of unique roles and jobs that tailor to your specific skillset in Minecraft! You can build a city, participate in the government, or fight for Gold, God, and Glory on the battlefield!   Join our nation today! https://discord.gg/hb3cuaDezA
    • I have an issue where after I exit the world the capability data does not save when I reload the world. It will save the initial data such as village name but if I modify any data during gameplay theres a 5% chance the data saves when I exit then reload the world. I read the docs and was told that chunks need to be marked dirty but the docs does not say how to mark the chunk dirty... Heres the provider: public class ChunkCapProvider implements ICapabilityProvider, INBTSerializable<CompoundTag> { private final Capability<ChunkCapability> capability = CapabilityManager.get(new CapabilityToken<ChunkCapability>() { }); private ChunkCapability instance = null; private final LazyOptional<ChunkCapability> lazy = LazyOptional.of(this::createChunk); private ChunkCapability createChunk(){ if(this.instance == null){ this.instance = new ChunkCapability(); } return this.instance; } public void invalidate(){ lazy.invalidate(); } @Nonnull @Override public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> cap, @Nullable Direction direction) { if(cap == capability) return lazy.cast(); return LazyOptional.empty(); } @Override public CompoundTag serializeNBT() { CompoundTag nbt = new CompoundTag(); createChunk().serializeNBT(nbt); return nbt; } @Override public void deserializeNBT(CompoundTag tag) { createChunk().deserializeNBT(tag); } }   Heres the capability class: public class ChunkCapability { public static final ResourceLocation ID = new ResourceLocation(Main.MODID, "owner"); public static final String VILLAGE_NAME = "village_name"; public static final String SAVED_ROLES = "saved_roles"; public static final String SAVED_POINTS = "saved_points"; public static final String BAD_CHUNK = "BAD_VILLAGE_CHUNK"; public static Capability<IChunk> CHUNK_CAPABILITY = null; private String villageName = "BAD_VILLAGE_CHUNK"; private String savedRoles = ""; private String savedPoints = ""; public ChunkCapability(){ this.getClass(); } public CompoundTag serializeNBT(CompoundTag nbt) { nbt.putString(SAVED_ROLES, this.savedRoles); nbt.putString(SAVED_POINTS, this.savedPoints); nbt.putString(VILLAGE_NAME, this.villageName); return nbt; } public void deserializeNBT(CompoundTag tag) { this.setVillageName(tag.getString(VILLAGE_NAME)); this.setSavedRoles(tag.getString(SAVED_ROLES)); this.setSavedPoints(tag.getString(SAVED_POINTS)); } public String getVillageName() { return this.villageName; } public void setVillageName(String str) { this.villageName = str; } public void setSavedRoles(String str) { this.savedRoles = str; } public void setRole(String name, String role){ if(!this.hasRole(name)) { this.savedRoles += (name + ":" + role + ","); this.savedPoints += (name + ":" + 10 + ","); return; } String roleName = this.getRole(name); String firstStr = this.savedRoles.substring(0, this.savedRoles.indexOf(name + ":") + name.length() + 1); String lastStr = this.savedRoles.substring(this.savedRoles.indexOf(name + ":") + ((name.length() + 1) + roleName.length())); this.savedRoles = firstStr + role + lastStr; } public String getRole(String name){ if(this.savedRoles.isEmpty() || !this.savedRoles.contains(name)) { this.setRole(name, Roles.Role.FOREIGNER.getName()); } String fStr = this.savedRoles.substring(this.savedRoles.indexOf(name + ":"), this.savedRoles.indexOf(',')); return fStr.substring(fStr.indexOf(':') + 1); } public boolean hasRole(String name) { if(this.savedRoles.isEmpty()) return false; return this.savedRoles.contains(name); } public String getSavedRoles() { return this.savedRoles; } public String getSavedPoints() { return this.savedPoints; } public void setSavedPoints(String name) { this.savedPoints = name; } public int getPoints(String name) { if(this.savedPoints.isEmpty() || !this.savedRoles.contains(name)) this.setPoints(name, 10); String fStr = this.savedPoints.substring(this.savedPoints.indexOf(name + ':')); return Integer.parseInt(fStr.substring(fStr.indexOf(':') + 1, fStr.indexOf(','))); } public void setPoints(String name, int rV) { if(!this.hasPoints(name)){ this.savedPoints += (name + ":" + rV + ","); return; } String oldPoints = String.valueOf(this.getPoints(name)); String points = String.valueOf(rV); String firstStr = this.savedPoints.substring(0, this.savedPoints.indexOf(name + ":") + name.length() + 1); String lastStr = this.savedPoints.substring(this.savedPoints.indexOf(name + ":") + ((name.length() + 1) + oldPoints.length())); Minecraft.getInstance().player.displayClientMessage(Component.nullToEmpty("Saved String: " + (firstStr + points + lastStr)), false); this.savedPoints = (firstStr + points + lastStr); } public boolean hasPoints(String name) { if(this.savedPoints.isEmpty()) return false; return this.savedPoints.contains(name); } }   Heres where I attach/register: @Mod.EventBusSubscriber(modid = Main.MODID) public class CapabilityEvents { @SubscribeEvent public static void attachCapability(AttachCapabilitiesEvent<LevelChunk> event){ if(!event.getObject().getCapability(ChunkCapProvider.capability).isPresent()){ event.addCapability(new ResourceLocation(Main.MODID, "properties"), new ChunkCapProvider()); } } }  
    • Id use this ServerLevel#findNearestMapFeature  
    • Trying to play with the mods: Tinkers Construct, Buildcraft and the Blood Magic addon Blood Arsenal; the game crashes. I noticed that when trying to use only two of the three in any combination the game opens without problems, but when trying to put all three together the error occurs. Is there any configuration I can modify or any other way to solve the problem?   ---- Minecraft Crash Report ---- // Hi. I'm Minecraft, and I'm a crashaholic. Time: 5/22/24 8:48 PM Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: tconstruct/library/weaponry/AmmoWeapon     at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)     at cpw.mods.fml.common.Loader.loadMods(Loader.java:544)     at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)     at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878)     at net.minecraft.client.main.Main.main(SourceFile:148)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.NoClassDefFoundError: tconstruct/library/weaponry/AmmoWeapon     at java.lang.Class.forName0(Native Method)     at java.lang.Class.forName(Unknown Source)     at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:42)     at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)     at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)     at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)     at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)     at com.google.common.eventbus.EventBus.post(EventBus.java:275)     at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)     at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)     at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)     at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)     at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)     at com.google.common.eventbus.EventBus.post(EventBus.java:275)     at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)     at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)     ... 10 more Caused by: java.lang.ClassNotFoundException: tconstruct.library.weaponry.AmmoWeapon     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)     at java.lang.ClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     ... 36 more Caused by: java.lang.NoClassDefFoundError: tconstruct/library/weaponry/AmmoItem     at java.lang.ClassLoader.defineClass1(Native Method)     at java.lang.ClassLoader.defineClass(Unknown Source)     at java.security.SecureClassLoader.defineClass(Unknown Source)     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)     ... 38 more Caused by: java.lang.ClassNotFoundException: tconstruct.library.weaponry.AmmoItem     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101)     at java.lang.ClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     ... 42 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.7.10     Operating System: Windows 10 (x86) version 10.0     Java Version: 1.8.0_411, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode, sharing), Oracle Corporation     Memory: 271923192 bytes (259 MB) / 402653184 bytes (384 MB) up to 536870912 bytes (512 MB)     JVM Flags: 9 total; -Xmx512M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -XX:+IgnoreUnrecognizedVMOptions -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump     AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 14 mods loaded, 14 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     UC    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)      UC    FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1614-1.7.10.jar)      UC    Forge{10.13.4.1614} [Minecraft Forge] (forge-1.7.10-10.13.4.1614-1.7.10.jar)      UC    AWWayofTime{v1.3.3} [Blood Magic: Alchemical Wizardry] (BloodMagic-1.7.10-1.3.3-17.jar)      UC    Mantle{1.7.10-0.3.2.jenkins191} [Mantle] (Mantle-1.7.10-0.3.2b.jar)      UE    TConstruct{1.7.10-1.8.8.build991} [Tinkers' Construct] (TConstruct-1.7.10-1.8.8.build991.jar)      UC    BloodArsenal{1.2-5} [Blood Arsenal] (BloodArsenal-1.7.10-1.2-5.jar)      UC    BuildCraft|Core{7.1.25} [BuildCraft] (buildcraft-7.1.25.jar)      UC    BuildCraft|Builders{7.1.25} [BC Builders] (buildcraft-7.1.25.jar)      UC    BuildCraft|Robotics{7.1.25} [BC Robotics] (buildcraft-7.1.25.jar)      UC    BuildCraft|Silicon{7.1.25} [BC Silicon] (buildcraft-7.1.25.jar)      UC    BuildCraft|Energy{7.1.25} [BC Energy] (buildcraft-7.1.25.jar)      UC    BuildCraft|Transport{7.1.25} [BC Transport] (buildcraft-7.1.25.jar)      UC    BuildCraft|Factory{7.1.25} [BC Factory] (buildcraft-7.1.25.jar)      GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 21.20.16.4541' Renderer: 'Intel(R) HD Graphics 610'     Mantle Environment: Environment healthy.     TConstruct Environment: Environment healthy.
    • fixed this problem but now i have a new one  java.lang.RuntimeException: java.lang.NoSuchFieldException: processor  Help 
  • Topics

×
×
  • Create New...

Important Information

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