Jump to content

Item Ids


Z@Nka

Recommended Posts

Probably a stupid question but its a quick anwser. Since in the new update there is no IDs while creating items, how to give your item an id. I am having this error:

[server thread/INFO] [FML]: Found a missing id from the world

It still lest me launch and all but i was just wondering how to do it. I was going to add configs so i think there has to be a way to do this. Thanks!

If I helped then you help, hit that Thank You button or Applaud.

Link to comment
Share on other sites

Thats my ModItems code

package bulkyzanka.electro.mod.items;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.Item;
import bulkyzanka.electro.mod.Electrocuted;
import bulkyzanka.electro.mod.items.armor.BoneArmor;
import bulkyzanka.electro.mod.items.armor.EnrichedBoneArmor;
import bulkyzanka.electro.mod.items.tools.BoneAxe;
import bulkyzanka.electro.mod.items.tools.BoneBow;
import bulkyzanka.electro.mod.items.tools.BoneHoe;
import bulkyzanka.electro.mod.items.tools.BonePickaxe;
import bulkyzanka.electro.mod.items.tools.BoneSpade;
import bulkyzanka.electro.mod.items.tools.BoneSword;
import bulkyzanka.electro.mod.items.tools.EnrichedBoneAxe;
import bulkyzanka.electro.mod.items.tools.EnrichedBoneHoe;
import bulkyzanka.electro.mod.items.tools.EnrichedBonePickaxe;
import bulkyzanka.electro.mod.items.tools.EnrichedBoneSpade;
import bulkyzanka.electro.mod.items.tools.EnrichedBoneSword;

public class ModItems
{
public static Item BonePlate = new BonePlate().setUnlocalizedName("BonePlate").setTextureName("electrocuted:BonePlate").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedBonePlate = new EnrichedBonePlate().setUnlocalizedName("EnrichedBonePlate").setTextureName("electrocuted:EnrichedBonePlate").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BoneIngot = new BoneIngot().setUnlocalizedName("BoneIngot").setTextureName("electrocuted:BoneIngot").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedBoneIngot = new EnrichedBoneIngot().setUnlocalizedName("EnrichedBoneIngot").setTextureName("electrocuted:EnrichedBoneIngot").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedIngot = new EnrichedIngot().setUnlocalizedName("EnrichedIngot").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BoneArrow = new BoneArrow().setUnlocalizedName("BoneArrow").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item CoalMotor = new CoalMotor().setUnlocalizedName("CoalMotor").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab).setMaxStackSize(1);
public static Item ElectricMotor = new ElectricMotor().setUnlocalizedName("ElectricMotor").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab).setMaxStackSize(1);
public static Item Generator = new Generator().setUnlocalizedName("Generator").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);

public static Item BoneSword = new BoneSword(Electrocuted.Bone).setUnlocalizedName("BoneSword").setTextureName("electrocuted:BoneSword").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BoneSpade = new BoneSpade(Electrocuted.Bone).setUnlocalizedName("BoneSpade").setTextureName("electrocuted:BoneSpade").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BonePickaxe = new BonePickaxe(Electrocuted.Bone).setUnlocalizedName("BonePickaxe").setTextureName("electrocuted:BonePickaxe").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BoneAxe = new BoneAxe(Electrocuted.Bone).setUnlocalizedName("BoneAxe").setTextureName("electrocuted:BoneAxe").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BoneHoe = new BoneHoe(Electrocuted.Bone).setUnlocalizedName("BoneHoe").setTextureName("electrocuted:BoneHoe").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BoneBow = new BoneBow().setUnlocalizedName("BoneBow").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);

public static Item EnrichedBoneSword = new EnrichedBoneSword(Electrocuted.EnrichedBone).setUnlocalizedName("EnrichedBoneSword").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedBoneSpade = new EnrichedBoneSpade(Electrocuted.EnrichedBone).setUnlocalizedName("EnrichedBoneSpade").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedBonePickaxe = new EnrichedBonePickaxe(Electrocuted.EnrichedBone).setUnlocalizedName("EnrichedBonePickaxe").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedBoneAxe = new EnrichedBoneAxe(Electrocuted.EnrichedBone).setUnlocalizedName("EnrichedBoneAxe").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedBoneHoe = new EnrichedBoneHoe(Electrocuted.EnrichedBone).setUnlocalizedName("EnrichedBoneHoe").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);

public static Item BoneHelmet = new BoneArmor(Electrocuted.BoneArmor, 0).setUnlocalizedName("BoneHelmet").setTextureName("electrocuted:BoneHelmet").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BoneChestPlate = new BoneArmor(Electrocuted.BoneArmor, 1).setUnlocalizedName("BoneChestPlate").setTextureName("electrocuted:BoneChestPlate").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BoneLeggings = new BoneArmor(Electrocuted.BoneArmor, 2).setUnlocalizedName("BoneLeggings").setTextureName("electrocuted:BoneLeggings").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item BoneBoots = new BoneArmor(Electrocuted.BoneArmor, 3).setUnlocalizedName("BoneBoots").setTextureName("electrocuted:BoneBoots").setCreativeTab(Electrocuted.ElectrocutedTab);

public static Item EnrichedBoneHelmet = new EnrichedBoneArmor(Electrocuted.EnrichedBoneArmor, 0).setUnlocalizedName("EnrichedBoneHelmet").setTextureName("electrocuted:EnrichedBoneHelmet").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedBoneChestPlate = new EnrichedBoneArmor(Electrocuted.EnrichedBoneArmor, 1).setUnlocalizedName("EnrichedBoneChestPlate").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedBoneLeggings = new EnrichedBoneArmor(Electrocuted.EnrichedBoneArmor, 2).setUnlocalizedName("EnrichedBoneLeggings").setTextureName("electrocuted:EnrichedBoneLeggings").setCreativeTab(Electrocuted.ElectrocutedTab);
public static Item EnrichedBoneBoots = new EnrichedBoneArmor(Electrocuted.EnrichedBoneArmor, 3).setUnlocalizedName("EnrichedBoneBoots").setTextureName("electrocuted:WIP").setCreativeTab(Electrocuted.ElectrocutedTab);

public static void init()
{
	GameRegistry.registerItem(BonePlate, "BonePlate");
    GameRegistry.registerItem(EnrichedBonePlate, "EnrichedBonePlate");
	GameRegistry.registerItem(BoneIngot, "BoneIngot");
	GameRegistry.registerItem(EnrichedBoneIngot, "EnrichedBoneIngot");
	GameRegistry.registerItem(EnrichedIngot, "EnrichedIngot");
	GameRegistry.registerItem(BoneArrow, "BoneArrow");
	GameRegistry.registerItem(CoalMotor, "CoalMotor");
	GameRegistry.registerItem(ElectricMotor, "ElectricMotor");
	GameRegistry.registerItem(Generator, "Generator");

	GameRegistry.registerItem(BoneSword, "BoneSword");
	GameRegistry.registerItem(BoneSpade, "BoneSpade");
	GameRegistry.registerItem(BonePickaxe, "BonePickaxe");
	GameRegistry.registerItem(BoneAxe, "BoneAxe");
	GameRegistry.registerItem(BoneHoe, "BoneHoe");
	GameRegistry.registerItem(BoneBow, "BoneBow");

	GameRegistry.registerItem(EnrichedBoneSword, "EnrichedBoneSword");
	GameRegistry.registerItem(EnrichedBoneSpade, "EnrichedBoneSpade");
	GameRegistry.registerItem(EnrichedBonePickaxe, "EnrichedBonePickaxe");
	GameRegistry.registerItem(EnrichedBoneAxe, "EnrichedBoneAxe");
	GameRegistry.registerItem(EnrichedBoneHoe, "EnrichedBoneHoe");

	GameRegistry.registerItem(BoneHelmet, "BoneHelmet");
	GameRegistry.registerItem(BoneChestPlate, "BoneChestPlate");
	GameRegistry.registerItem(BoneLeggings, "BoneLeggings");
	GameRegistry.registerItem(BoneBoots, "BoneBoots");

	GameRegistry.registerItem(EnrichedBoneHelmet, "EnrichedBoneHelmet");
	GameRegistry.registerItem(EnrichedBoneChestPlate, "EnrichedBoneChestPlate");
	GameRegistry.registerItem(EnrichedBoneLeggings, "EnrichedBoneLeggings");
	GameRegistry.registerItem(EnrichedBoneBoots, "EnrichedBoneBoots");
}
}

And in my PreInit I just do ModItems.init();

This is the exact Console:

[17:41:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[17:41:21] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[17:41:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[17:41:21] [main/INFO] [FML]: Forge Mod Loader version 7.2.125.1031 for Minecraft 1.7.2 loading
[17:41:21] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_21, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
[17:41:21] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[17:41:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:41:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[17:41:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:41:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:41:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:41:21] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[17:41:21] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Szymom/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1031/forgeSrc-1.7.2-10.12.0.1031.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[17:41:21] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[17:41:21] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Szymom/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1031/forgeSrc-1.7.2-10.12.0.1031.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[17:41:21] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[17:41:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:41:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[17:41:21] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[17:41:22] [main/INFO]: Setting user: Player89
[17:41:23] [Client thread/INFO]: LWJGL Version: 2.9.0
[17:41:23] [Client thread/ERROR]: Couldn't set icon
javax.imageio.IIOException: Can't read input file!
at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.7.0_21]
at net.minecraft.client.Minecraft.readImage(Minecraft.java:683) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:512) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:934) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[17:41:23] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[17:41:23] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1031 Initialized
[17:41:23] [Client thread/INFO] [FML]: Replaced 128 ore recipies
[17:41:23] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[17:41:23] [Client thread/INFO] [FML]: Searching E:\Electro-Dev\mods for mods
[17:41:24] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[17:41:25] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[17:41:25] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:Electrocuted
[17:41:25] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
OpenAL initialized.

[17:41:26] [sound Library Loader/INFO]: Sound engine started
[17:41:26] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[17:41:26] [Client thread/ERROR]: Using missing texture, unable to load electrocuted:textures/items/WIP_pulling_2.png
java.io.FileNotFoundException: electrocuted:textures/items/WIP_pulling_2.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:624) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:934) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[17:41:26] [Client thread/ERROR]: Using missing texture, unable to load electrocuted:textures/items/WIP_pulling_0.png
java.io.FileNotFoundException: electrocuted:textures/items/WIP_pulling_0.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:624) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:934) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[17:41:26] [Client thread/ERROR]: Using missing texture, unable to load electrocuted:textures/items/WIP_pulling_1.png
java.io.FileNotFoundException: electrocuted:textures/items/WIP_pulling_1.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:624) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:934) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[17:41:26] [Client thread/ERROR]: Using missing texture, unable to load electrocuted:textures/items/WIP_standby.png
java.io.FileNotFoundException: electrocuted:textures/items/WIP_standby.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:624) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:934) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[17:41:26] [Client thread/INFO]: Created: 256x256 textures/items-atlas
DIRT BLOCK >> tile.dirt
[17:41:26] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[17:41:27] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
[17:41:32] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:41:37] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:41:57] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:42:17] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:42:46] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:43:16] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:43:17] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:43:25] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:43:55] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:44:00] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:44:11] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[17:44:12] [server thread/INFO]: Starting integrated minecraft server version 1.7.2
[17:44:12] [server thread/INFO]: Generating keypair
[17:44:12] [server thread/INFO] [FML]: Found a missing id from the world electro:EnrichedBonePLate
[17:44:12] [server thread/ERROR] [FML]: There are unidentified mappings in this world - we are going to attempt to process anyway
[17:44:12] [server thread/ERROR] [FML]: This world contains blocks and items that refuse to be remapped. The world will not be loaded
POKE
[17:44:12] [server thread/ERROR]: Encountered an unexpected exception
cpw.mods.fml.common.registry.GameRegistryException: Failed to load the world - there are fatal block and item id issues
at cpw.mods.fml.common.FMLContainer.readData(FMLContainer.java:193) ~[FMLContainer.class:?]
at cpw.mods.fml.common.FMLCommonHandler.handleWorldDataLoad(FMLCommonHandler.java:386) ~[FMLCommonHandler.class:?]
at net.minecraft.world.storage.SaveHandler.loadWorldInfo(SaveHandler.java:149) ~[saveHandler.class:?]
at net.minecraft.world.World.<init>(World.java:293) ~[World.class:?]
at net.minecraft.world.WorldServer.<init>(WorldServer.java:111) ~[WorldServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:65) ~[integratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:98) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:490) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:788) [MinecraftServer$2.class:?]
[17:44:12] [server thread/ERROR]: This crash report has been saved to: E:\Electro-Dev\.\crash-reports\crash-2014-03-20_17.44.12-server.txt
[17:44:12] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
POKE
POKE
POKEE true
[17:44:14] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[17:44:14] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[17:44:15] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[17:44:15] [server thread/INFO]: Starting integrated minecraft server version 1.7.2
[17:44:15] [server thread/INFO]: Generating keypair
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBoneLeggings : 4122 4121
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneLeggings : 4118 4105
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBoneBoots : 4123 4122
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBonePickaxe : 4113 4118
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneHelmet : 4116 4103
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneIngot : 4098 4097
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBoneIngot : 4099 4116
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneHoe : 4109 4102
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:CoalMotor : 4102 4113
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBonePlate : 4097 4109
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBoneAxe : 4114 4115
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBoneChestPlate : 4121 4120
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBoneSpade : 4112 4117
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBoneHoe : 4115 4114
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneAxe : 4108 4101
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneSword : 4105 4098
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:Generator : 4104 4111
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BonePickaxe : 4107 4100
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBoneHelmet : 4120 4119
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneArrow : 4101 4108
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneBow : 4110 4107
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneBoots : 4119 4106
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:EnrichedBoneSword : 4111 4110
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:ElectricMotor : 4103 4112
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneChestPlate : 4117 4104
[17:44:16] [server thread/INFO] [FML]: Found item id mismatch electro:BoneSpade : 4106 4099
[17:44:16] [server thread/INFO] [FML]: Injecting new block and item data into this server instance
[17:44:16] [server thread/INFO] [FML]: Injecting new item electro:EnrichedIngot
[17:44:16] [server thread/INFO] [FML]: Loading dimension 0 (Testy) (net.minecraft.server.integrated.IntegratedServer@7ae433fa)
[17:44:16] [server thread/INFO] [FML]: Loading dimension 1 (Testy) (net.minecraft.server.integrated.IntegratedServer@7ae433fa)
[17:44:16] [server thread/INFO] [FML]: Loading dimension -1 (Testy) (net.minecraft.server.integrated.IntegratedServer@7ae433fa)
[17:44:16] [server thread/INFO]: Preparing start region for level 0
POKEE false
[17:44:17] [Netty Client IO #1/INFO] [FML]: Server protocol version 1
[17:44:17] [Netty IO #3/INFO] [FML]: Client protocol version 1
[17:44:17] [Netty IO #3/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]
[17:44:17] [Netty IO #3/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[17:44:17] [Netty Client IO #1/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[17:44:17] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[17:44:17] [server thread/INFO]: Player89[local:E:600ad9ad] logged in with entity id 369 at (30.948742060584884, 70.0, 138.24256612003555)
[17:44:17] [server thread/INFO]: Player89 joined the game
[17:44:17] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[17:44:19] [server thread/INFO]: Player89 has just earned the achievement [Taking Inventory]
[17:44:19] [Client thread/INFO]: [CHAT] Player89 has just earned the achievement [Taking Inventory]
[17:44:19] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.game.creative
[17:44:20] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[17:44:45] [server thread/INFO]: Saving and pausing game...
[17:44:45] [server thread/INFO]: Saving chunks for level 'Testy'/Overworld
[17:44:45] [server thread/INFO]: Saving chunks for level 'Testy'/Nether
[17:44:45] [server thread/INFO]: Saving chunks for level 'Testy'/The End
[17:44:45] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[17:44:45] [server thread/INFO]: Stopping server
[17:44:45] [server thread/INFO]: Saving players
[17:44:45] [server thread/INFO]: Saving worlds
[17:44:45] [server thread/INFO]: Saving chunks for level 'Testy'/Overworld
[17:44:45] [server thread/INFO]: Saving chunks for level 'Testy'/Nether
[17:44:45] [server thread/INFO]: Saving chunks for level 'Testy'/The End
[17:44:46] [server thread/INFO] [FML]: Unloading dimension 0
[17:44:46] [server thread/INFO] [FML]: Unloading dimension -1
[17:44:46] [server thread/INFO] [FML]: Unloading dimension 1

The Id thing shows up when I launch a world. Should I just ignore it?

If I helped then you help, hit that Thank You button or Applaud.

Link to comment
Share on other sites

1. instanciate your items within the init() method, not within the declaration of the variable

2. call your ModItems.init() method within your preInit (FMLPreInitializationEvent) method in your main mod file

 

edit - can you post the full ForgeModLoader-server-0.log file?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

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

    • I am not using hardcoded recipes, I'm using Vanilla's already existing code for leather armor dying. (via extending and implementing DyeableArmorItem / DyeableLeatherItem respectively) I have actually figured out that it's something to do with registering item colors to the ItemColors instance, but I'm trying to figure out where exactly in my mod's code I would be placing a call to the required event handler. Unfortunately the tutorial is criminally undescriptive. The most I've found is that it has to be done during client initialization. I'm currently trying to do the necessary setup via hijacking the item registry since trying to modify the item classes directly (via using SubscribeEvent in the item's constructor didn't work. Class so far: // mrrp mrow - mcmod item painter v1.0 - catzrule ch package catzadvitems.init; import net.minecraft.client.color.item.ItemColors; import net.minecraft.world.item.Item; import net.minecraftforge.registries.ObjectHolder; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.client.event.ColorHandlerEvent; import catzadvitems.item.DyeableWoolArmorItem; @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) public class Painter { @ObjectHolder("cai:dyeable_wool_chestplate") public static final Item W_CHEST = null; @ObjectHolder("cai:dyeable_wool_leggings") public static final Item W_LEGS = null; @ObjectHolder("cai:dyeable_wool_boots") public static final Item W_SOCKS = null; public Painter() { // left blank, idk if forge throws a fit if constructors are missing, not taking the chance of it happening. } @SubscribeEvent public static void init(FMLClientSetupEvent event) { new Painter(); } @Mod.EventBusSubscriber private static class ForgeBusEvents { @SubscribeEvent public static void registerItemColors(ColorHandlerEvent.Item event) { ItemColors col = event.getItemColors(); col.register(DyeableUnderArmorItem::getItemDyedColor, W_CHEST, W_LEGS, W_SOCKS); //placeholder for other dye-able items here later.. } } } (for those wondering, i couldn't think of a creative wool helmet name)
    • nvm found out it was because i had create h and not f
    • Maybe there's something happening in the 'leather armor + dye' recipe itself that would be updating the held item texture?
    • @SubscribeEvent public static void onRenderPlayer(RenderPlayerEvent.Pre e) { e.setCanceled(true); model.renderToBuffer(e.getPoseStack(), pBuffer, e.getPackedLight(), 0f, 0f, 0f, 0f, 0f); //ToaPlayerRenderer.render(); } Since getting the render method from a separate class is proving to be bit of a brick wall for me (but seems to be the solution in older versions of minecraft/forge) I've decided to try and pursue using the renderToBuffer method directly from the model itself. I've tried this route before but can't figure out what variables to feed it for the vertexConsumer and still can't seem to figure it out; if this is even a path to pursue.  The vanilla model files do not include any form of render methods, and seem to be fully constructed from their layer definitions? Their renderer files seem to take their layers which are used by the render method in the vanilla MobRenderer class. But for modded entities we @Override this function and don't have to feed the method variables because of that? I assume that the render method in the extended renderer takes the layer definitions from the renderer classes which take those from the model files. Or maybe instead of trying to use a render method I should be calling the super from the renderer like   new ToaPlayerRenderer(context, false); Except I'm not sure what I would provide for context? There's a context method in the vanilla EntityRendererProvider class which doesn't look especially helpful. I've been trying something like <e.getEntity(), model<e.getEntity()>> since that generally seems to be what is provided to the renderers for context, but I don't know if it's THE context I'm looking for? Especially since the method being called doesn't want to take this or variations of this.   In short; I feel like I'm super super close but I have to be missing something obvious? Maybe this insane inane ramble post will provide some insight into this puzzle?
  • Topics

×
×
  • Create New...

Important Information

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