Jump to content

[1.7.10] [UNSOLVED] Eclipse crashes when I run my mod


10forever

Recommended Posts

Crash Report:

---- Minecraft Crash Report ----
// You're mean.

Time: 8/7/16 3:01 PM
Description: Initializing game

java.lang.IllegalArgumentException: The name rm:ItemDemoniteSword has been registered twice, for tntdiamond.RegidMod.item.ItemDemoniteSword@5eaa6f76 and tntdiamond.RegidMod.item.ItemDemonitePickaxe@3fc105dd.
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:381)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:845)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
at tntdiamond.RegidMod.RegidMod.preInit(RegidMod.java:284)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:480)
at net.minecraft.client.Minecraft.run(Minecraft.java:878)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)


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

-- Head --
Stacktrace:
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:381)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:845)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
at tntdiamond.RegidMod.RegidMod.preInit(RegidMod.java:284)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:480)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:878)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Mac OS X (x86_64) version 10.11.6
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 753502136 bytes (718 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
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.1448 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCH	FML{7.10.99.99} [Forge Mod Loader] (forgeBin-1.7.10-10.13.4.1448-1.7.10.jar) 
UCH	Forge{10.13.4.1448} [Minecraft Forge] (forgeBin-1.7.10-10.13.4.1448-1.7.10.jar) 
UCE	rm{1.0} [Regid Mod] (bin) 
GL info: ' Vendor: 'Intel Inc.' Version: '2.1 INTEL-10.14.73' Renderer: 'Intel(R) HD Graphics 5300'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics 5300 GL version 2.1 INTEL-10.14.73, Intel Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because ARB_framebuffer_object is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

 

 

 

.java class

package tntdiamond.RegidMod;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import tntdiamond.RegidMod.item.ItemBatmanArmor;
import tntdiamond.RegidMod.item.ItemCheeseArmor;
import tntdiamond.RegidMod.item.ItemCheeseAxe;
import tntdiamond.RegidMod.item.ItemCheeseHoe;
import tntdiamond.RegidMod.item.ItemCheesePickaxe;
import tntdiamond.RegidMod.item.ItemCheeseShovel;
import tntdiamond.RegidMod.item.ItemCheeseSword;
import tntdiamond.RegidMod.item.ItemDemonitePickaxe;
import tntdiamond.RegidMod.item.ItemDemoniteSword;
import tntdiamond.RegidMod.item.ItemGalaxySlayer;
import tntdiamond.RegidMod.item.ItemGalaxySword;
import tntdiamond.RegidMod.item.ItemIllusionArmor;
import tntdiamond.RegidMod.item.ItemRegidAxe;
import tntdiamond.RegidMod.item.ItemRegidHoe;
import tntdiamond.RegidMod.item.ItemRegidPickaxe;
import tntdiamond.RegidMod.item.ItemRegidShovel;
import tntdiamond.RegidMod.item.ItemRegidSword;
import tntdiamond.RegidMod.item.ItemSuuuuupermanArmor;
import tntdiamond.RegidMod.item.ItemUltimateArmor;

//step 1
@Mod(modid = "rm", name = "Regid Mod", version = "1.0")
public class RegidMod {

public static Item itemRegid; 
public static Block blockRegid;
public static Block blockRegidOre;
public static Item itemCheese;
public static Item itemGrilledCheese;
public static Block blockCheese;

public static Item cheeseHelmet;
public static Item cheeseChestplate;
public static Item cheeseLeggings;
public static Item cheeseBoots;

public static Item cheesePickaxe;
public static Item cheeseAxe;
public static Item cheeseShovel;
public static Item cheeseHoe;
public static Item cheeseSword;
public static Item itemCheeseStick;

public static Item regidPickaxe;
public static Item regidAxe;
public static Item regidShovel;
public static Item regidHoe;
public static Item regidSword;

public static Block blockIllusionOre;
public static Block blockIllusion;
public static Item itemIllusion;

public static Item illusionHelmet;
public static Item illusionChestplate;
public static Item illusionLeggings;
public static Item illusionBoots;

public static Item galaxySword;
public static Item galaxySlayer;
public static Item itemHilt;
public static Item itemBlade;
public static Item itemHandle;

public static Item itemStar;
public static Item itemDiamondStick;
public static Item itemMetal;

public static Item itemSuuuuupermanLogo;
public static Item itemBatmanLogo;

public static Item batmanHelmet;
public static Item batmanChestplate;
public static Item batmanLeggings;
public static Item batmanBoots;

public static Item suuuuupermanHelmet;
public static Item suuuuupermanChestplate;
public static Item suuuuupermanLeggings;
public static Item suuuuupermanBoots;

public static Item ultimateHelmet;
public static Item ultimateChestplate;
public static Item ultimateLeggings;
public static Item ultimateBoots;

public static Block blockDemoniteOre;
public static Block blockDemonite;
public static Item itemDemonite;
public static Item demoniteSword;
public static Item demonitePickaxe;

public static Item itemLuminite;
public static Block blockLuminiteOre;
public static Block blockLuminite;



//diamond harvestlevel=4, diamond maxUses = 1560, diamond efficiency = 8.0F, iron = 6.0F, diamond damage = 6.0F, enchantibility diamond = 10
public static final Item.ToolMaterial cheeseToolMaterial = EnumHelper.addToolMaterial("cheeseToolMaterial", 1, 400, 5.0F, 1.5F, 5);
public static final ItemArmor.ArmorMaterial cheeseArmorMaterial = EnumHelper.addArmorMaterial("cheeseArmorMaterial", 400, new int[]{1,4,3,2}, 5);

public static final Item.ToolMaterial galaxyToolMaterial = EnumHelper.addToolMaterial("galaxyToolMaterial", 4, 2500, 12.0F, 17.0F, 15);
public static final Item.ToolMaterial illusionToolMaterial = EnumHelper.addToolMaterial("illusionToolMaterial", 4, 1800, 8.0F, 10.0F, 12);
public static final ItemArmor.ArmorMaterial illusionArmorMaterial = EnumHelper.addArmorMaterial("illusionArmorMaterial", 1800, new int[]{3,9,7,4}, 30);
public static final Item.ToolMaterial galaxy2ToolMaterial = EnumHelper.addToolMaterial("galaxy2ToolMatieral", 4, 3200, 15.0F, 20.0F, 18);
public static final ItemArmor.ArmorMaterial batmanArmorMaterial = EnumHelper.addArmorMaterial("batmanArmorMaterial", 300, new int[]{5,11,9,6}, 34);
public static final ItemArmor.ArmorMaterial suuuuupermanArmorMaterial = EnumHelper.addArmorMaterial("suuuuupermanArmorMaterial", 300, new int[]{5,11,9,6}, 34);
public static final ItemArmor.ArmorMaterial ultimateArmorMaterial = EnumHelper.addArmorMaterial("ultimateArmorMaterial", 400, new int[]{6,12,10,7}, 40);
public static final Item.ToolMaterial demoniteToolMaterial = EnumHelper.addToolMaterial("demoniteToolMaterial", 4, 300, 5.0F, 6.5F, 50);
//default 2,7,5,3.

public static final Item.ToolMaterial regidToolMaterial = EnumHelper.addToolMaterial("regidToolMaterial", 5, 2000, 9.0F, 7.0F, 11);


@EventHandler
public void preInit(FMLPreInitializationEvent event) {
	//step 2
	//Item/Block init and registering
	//config handling
	itemRegid = new ItemRegid().setUnlocalizedName("itemRegid").setTextureName("rm:itemRegid").setCreativeTab(tabRegidModItems);
	blockRegid = new BlockRegid(Material.iron).setBlockName("BlockRegid").setBlockTextureName("rm:blockregid").setCreativeTab(tabRegidModBlocks);
	blockRegidOre = new BlockRegidOre(Material.rock).setBlockName("BlockRegidOre").setBlockTextureName("rm:blockregidore").setCreativeTab(tabRegidModBlocks);

	cheesePickaxe = new ItemCheesePickaxe(cheeseToolMaterial).setUnlocalizedName("ItemCheesePickaxe").setTextureName("rm:itemcheesepickaxe").setCreativeTab(tabRegidModTools);
	cheeseAxe = new ItemCheeseAxe(cheeseToolMaterial).setUnlocalizedName("ItemCheeseAxe").setTextureName("rm:itemcheeseaxe").setCreativeTab(tabRegidModTools);
	cheeseShovel = new ItemCheeseShovel(cheeseToolMaterial).setUnlocalizedName("ItemCheeseShovel").setTextureName("rm:itemcheeseshovel").setCreativeTab(tabRegidModTools);
	cheeseHoe = new ItemCheeseHoe(cheeseToolMaterial).setUnlocalizedName("ItemCheeseHoe").setTextureName("rm:itemcheesehoe").setCreativeTab(tabRegidModTools);
	cheeseSword = new ItemCheeseSword(cheeseToolMaterial).setUnlocalizedName("ItemCheeseSword").setTextureName("rm:itemcheesesword").setCreativeTab(tabRegidModCombat);

	cheeseHelmet = new ItemCheeseArmor(cheeseArmorMaterial, 0, 0).setUnlocalizedName("ItemCheeseHelmet").setTextureName("rm:itemcheesehelmet").setCreativeTab(tabRegidModCombat);
	cheeseChestplate = new ItemCheeseArmor(cheeseArmorMaterial, 0, 1).setUnlocalizedName("ItemCheeseChestplate").setTextureName("rm:itemcheesechestplate").setCreativeTab(tabRegidModCombat);
	cheeseLeggings = new ItemCheeseArmor(cheeseArmorMaterial, 0, 2).setUnlocalizedName("ItemCheeseLeggings").setTextureName("rm:itemcheeseleggings").setCreativeTab(tabRegidModCombat);
	cheeseBoots = new ItemCheeseArmor(cheeseArmorMaterial, 0, 3).setUnlocalizedName("ItemCheeseBoots").setTextureName("rm:itemcheeseboots").setCreativeTab(tabRegidModCombat);

	blockCheese = new BlockCheese(Material.cloth).setBlockName("BlockCheese").setBlockTextureName("rm:blockcheese").setCreativeTab(tabRegidModBlocks);

	regidPickaxe = new ItemRegidPickaxe(regidToolMaterial).setUnlocalizedName("ItemRegidPickaxe").setTextureName("rm:itemregidpickaxe").setCreativeTab(tabRegidModTools);
	regidAxe = new ItemRegidAxe(regidToolMaterial).setUnlocalizedName("ItemRegidAxe").setTextureName("rm:itemregidAxe").setCreativeTab(tabRegidModTools);
	regidShovel = new ItemRegidShovel(regidToolMaterial).setUnlocalizedName("ItemRegidShovel").setTextureName("rm:itemregidshovel").setCreativeTab(tabRegidModTools);
	regidHoe = new ItemRegidHoe(regidToolMaterial).setUnlocalizedName("ItemRegidHoe").setTextureName("rm:itemregidhoe").setCreativeTab(tabRegidModTools);;
	regidSword = new ItemRegidSword(regidToolMaterial).setUnlocalizedName("ItemRegidSword").setTextureName("rm:itemregidsword").setCreativeTab(tabRegidModCombat);;


	itemCheeseStick = new ItemCheeseStick().setUnlocalizedName("ItemCheeseStick").setTextureName("rm:itemcheesestick").setCreativeTab(tabRegidModItems);
	itemCheese = new ItemFood(4, 0.1F, false).setUnlocalizedName("ItemCheese").setTextureName("rm:itemcheese").setCreativeTab(tabRegidModItems);
	itemGrilledCheese = new ItemFood(8, 0.2F, true).setUnlocalizedName("ItemGrilledCheese").setTextureName("rm:itemgrilledcheese").setCreativeTab(tabRegidModItems);
	//food new ItemFood(1, 2, 3) 1=Food Points (max20) 2=Saturation (max1.0F) 3=wolf food (T/F)

	blockIllusionOre = new BlockIllusionOre(Material.rock).setBlockName("BlockIllusionOre").setBlockTextureName("rm:blockillusionore").setCreativeTab(tabRegidModBlocks);
	blockIllusion = new BlockIllusion(Material.rock).setBlockName("BlockIllusion").setBlockTextureName("rm:blockillusion").setCreativeTab(tabRegidModBlocks);
	itemIllusion = new ItemIllusion().setUnlocalizedName("itemIllusion").setTextureName("rm:itemIllusion").setCreativeTab(tabRegidModItems);

	illusionHelmet = new ItemIllusionArmor(illusionArmorMaterial, 0, 0).setUnlocalizedName("ItemIllusionHelmet").setTextureName("rm:itemillusionhelmet").setCreativeTab(tabRegidModCombat);
	illusionChestplate = new ItemIllusionArmor(illusionArmorMaterial, 0, 1).setUnlocalizedName("ItemIllusionChestplate").setTextureName("rm:itemillusionchestplate").setCreativeTab(tabRegidModCombat);;
	illusionLeggings = new ItemIllusionArmor(illusionArmorMaterial, 0, 2).setUnlocalizedName("ItemIllusionLeggings").setTextureName("rm:itemillusionleggings").setCreativeTab(tabRegidModCombat);;
	illusionBoots = new ItemIllusionArmor(illusionArmorMaterial, 0, 3).setUnlocalizedName("ItemIllusionBoots").setTextureName("rm:itemillusionboots").setCreativeTab(tabRegidModCombat);;

	galaxySword = new ItemGalaxySword(galaxyToolMaterial).setUnlocalizedName("ItemGalaxySword").setTextureName("rm:itemgalaxysword").setCreativeTab(tabRegidModCombat);
	galaxySlayer = new ItemGalaxySlayer(galaxy2ToolMaterial).setUnlocalizedName("ItemGalaxySlayer").setTextureName("rm:itemgalaxyslayer").setCreativeTab(tabRegidModCombat);
	itemHilt = new ItemHilt().setUnlocalizedName("ItemHilt").setTextureName("rm:itemhilt").setCreativeTab(tabRegidModItems);
	itemBlade = new ItemBlade().setUnlocalizedName("ItemBlade").setTextureName("rm:itemblade").setCreativeTab(tabRegidModItems);
	itemHandle = new ItemHandle().setUnlocalizedName("ItemHandle").setTextureName("rm:itemhandle").setCreativeTab(tabRegidModItems);

	itemStar = new ItemStar().setUnlocalizedName("ItemStar").setTextureName("rm:itemstar").setCreativeTab(tabRegidModItems);
	itemDiamondStick = new ItemDiamondStick().setUnlocalizedName("ItemDiamondStick").setTextureName("rm:itemdiamondstick").setCreativeTab(tabRegidModItems);
	itemMetal = new ItemMetal().setUnlocalizedName("ItemMetal").setTextureName("rm:itemmetal").setCreativeTab(tabRegidModItems);

	itemSuuuuupermanLogo = new ItemSuuuuupermanLogo().setUnlocalizedName("ItemSuuuuupermanLogo").setTextureName("rm:itemsuuuuupermanlogo").setCreativeTab(tabRegidModItems);
	itemBatmanLogo = new ItemBatmanLogo().setUnlocalizedName("ItemBatmanLogo").setTextureName("rm:itembatmanlogo").setCreativeTab(tabRegidModItems);

	batmanHelmet = new ItemBatmanArmor(batmanArmorMaterial, 0, 0).setUnlocalizedName("ItemBatmanHelmet").setTextureName("rm:itembatmanhelmet").setCreativeTab(tabRegidModCombat);
	batmanChestplate = new ItemBatmanArmor(batmanArmorMaterial, 0, 1).setUnlocalizedName("ItemBatmanChestplate").setTextureName("rm:itembatmanchestplate").setCreativeTab(tabRegidModCombat);
	batmanLeggings = new ItemBatmanArmor(batmanArmorMaterial, 0, 2).setUnlocalizedName("ItemBatmanLeggings").setTextureName("rm:itembatmanleggings").setCreativeTab(tabRegidModCombat);
	batmanBoots = new ItemBatmanArmor(batmanArmorMaterial, 0, 3).setUnlocalizedName("ItemBatmanBoots").setTextureName("rm:itembatmanboots").setCreativeTab(tabRegidModCombat);

	suuuuupermanHelmet = new ItemSuuuuupermanArmor(suuuuupermanArmorMaterial, 0, 0).setUnlocalizedName("ItemSuuuuupermanHelmet").setTextureName("rm:itemsuuuuupermanhelmet").setCreativeTab(tabRegidModCombat);
	suuuuupermanChestplate = new ItemSuuuuupermanArmor(suuuuupermanArmorMaterial, 0, 1).setUnlocalizedName("ItemSuuuuupermanChestplate").setTextureName("rm:itemsuuuuupermanchestplate").setCreativeTab(tabRegidModCombat);
	suuuuupermanLeggings = new ItemSuuuuupermanArmor(suuuuupermanArmorMaterial, 0, 2).setUnlocalizedName("ItemSuuuuupermanLeggings").setTextureName("rm:itemsuuuuupermanleggings").setCreativeTab(tabRegidModCombat);
	suuuuupermanBoots = new ItemSuuuuupermanArmor(suuuuupermanArmorMaterial, 0, 3).setUnlocalizedName("ItemSuuuuupermanBoots").setTextureName("rm:itemsuuuuupermanboots").setCreativeTab(tabRegidModCombat);

	ultimateHelmet = new ItemUltimateArmor(ultimateArmorMaterial, 0, 0).setUnlocalizedName("ItemUltimateHelmet").setTextureName("rm:itemultimatehelmet").setCreativeTab(tabRegidModCombat);
	ultimateChestplate = new ItemUltimateArmor(ultimateArmorMaterial, 0, 1).setUnlocalizedName("ItemUltimateChestplate").setTextureName("rm:itemultimatechestplate").setCreativeTab(tabRegidModCombat);
	ultimateLeggings = new ItemUltimateArmor(ultimateArmorMaterial, 0, 2).setUnlocalizedName("ItemUltimateLeggings").setTextureName("rm:itemultimateleggings").setCreativeTab(tabRegidModCombat);
	ultimateBoots = new ItemUltimateArmor(ultimateArmorMaterial, 0, 3).setUnlocalizedName("ItemUltimateBoots").setTextureName("rm:itemultimateboots").setCreativeTab(tabRegidModCombat);

	blockDemoniteOre = new BlockDemoniteOre(Material.rock).setBlockName("BlockDemoniteOre").setBlockTextureName("rm:blockdemoniteore").setCreativeTab(tabRegidModBlocks);
	blockDemonite = new BlockDemonite(Material.rock).setBlockName("BlockDemonite").setBlockTextureName("rm:blockdemonite").setCreativeTab(tabRegidModBlocks);
	itemDemonite = new ItemDemonite().setUnlocalizedName("ItemDemonite").setTextureName("rm:itemdemonite").setCreativeTab(tabRegidModItems);
	demoniteSword = new ItemDemoniteSword(demoniteToolMaterial).setUnlocalizedName("ItemDemoniteSword").setTextureName("rm:itemdemonitesword").setCreativeTab(tabRegidModTools);
	demonitePickaxe = new ItemDemonitePickaxe(demoniteToolMaterial).setUnlocalizedName("ItemDemoniteSword").setTextureName("rm:itemdemonitepickaxe").setCreativeTab(tabRegidModTools);

	itemLuminite = new ItemLuminite().setUnlocalizedName("ItemLuminite").setTextureName("rm:itemluminite").setCreativeTab(tabRegidModItems);
	blockLuminiteOre = new BlockLuminiteOre(Material.rock).setBlockName("BlockLuminiteOre").setBlockTextureName("rm:blockluminiteore").setCreativeTab(tabRegidModBlocks);
	blockLuminite = new BlockLuminite(Material.rock).setBlockName("BlockLuminite").setBlockTextureName("rm:blockluminite").setCreativeTab(tabRegidModBlocks);

	//step 3
	GameRegistry.registerItem(itemRegid, itemRegid.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockRegid, blockRegid.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockRegidOre, blockRegidOre.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemCheese, itemCheese.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemGrilledCheese, itemGrilledCheese.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(cheesePickaxe, cheesePickaxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseAxe, cheeseAxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseShovel, cheeseShovel.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseHoe, cheeseHoe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseSword, cheeseSword.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemCheeseStick, itemCheeseStick.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(cheeseHelmet, cheeseHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseChestplate, cheeseChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseLeggings, cheeseLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseBoots, cheeseBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(regidPickaxe, regidPickaxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidAxe, regidAxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidShovel, regidShovel.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidHoe, regidHoe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidSword, regidSword.getUnlocalizedName().substring(5));

	GameRegistry.registerBlock(blockCheese, blockCheese.getUnlocalizedName().substring(5));

	GameRegistry.registerBlock(blockIllusionOre, blockIllusionOre.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockIllusion, blockIllusion.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemIllusion, itemIllusion.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(galaxySword, galaxySword.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(galaxySlayer, galaxySlayer.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemHilt, itemHilt.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemBlade, itemBlade.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemHandle, itemHandle.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemStar, itemStar.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemDiamondStick, itemDiamondStick.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemMetal, itemMetal.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(illusionHelmet, illusionHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(illusionChestplate, illusionChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(illusionLeggings, illusionLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(illusionBoots, illusionBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemSuuuuupermanLogo, itemSuuuuupermanLogo.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemBatmanLogo, itemBatmanLogo.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(batmanHelmet, batmanHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(batmanChestplate, batmanChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(batmanLeggings, batmanLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(batmanBoots, batmanBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(suuuuupermanHelmet, suuuuupermanHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(suuuuupermanChestplate, suuuuupermanChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(suuuuupermanLeggings, suuuuupermanLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(suuuuupermanBoots, suuuuupermanBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(ultimateHelmet, ultimateHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(ultimateChestplate, ultimateChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(ultimateLeggings, ultimateLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(ultimateBoots, ultimateBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerBlock(blockDemoniteOre, blockDemoniteOre.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockDemonite, blockDemonite.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemDemonite, itemDemonite.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(demoniteSword, demoniteSword.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(demonitePickaxe, demonitePickaxe.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemLuminite, itemLuminite.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockLuminiteOre, blockLuminiteOre.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockLuminite, blockLuminite.getUnlocalizedName().substring(5));

	GameRegistry.registerWorldGenerator(new CheeseGeneration(), 0);
	GameRegistry.registerWorldGenerator(new DemoniteGeneration(), 0);
	GameRegistry.registerWorldGenerator(new IllusionGeneration(), 0);
	GameRegistry.registerWorldGenerator(new LuminiteGeneration(), 0);
}

@EventHandler
public void init(FMLInitializationEvent event) {
	//Proxy, TileEntity, entity, GUI and Packet Registering
	GameRegistry.addRecipe(new ItemStack(cheesePickaxe), new Object[]{"CCC", " S ", " S ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseAxe), new Object[]{"CC ", "CS ", " S ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseShovel), new Object[]{"C", "S", "S", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseHoe), new Object[]{"CC ", " S ", " S ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseSword), new Object[]{"C", "C", "S", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(itemCheeseStick), new Object[]{" C ", " S ", "   ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(itemGrilledCheese), new Object[]{"   ", "CC ", "CC ", 'C', itemCheeseStick,});

	GameRegistry.addRecipe(new ItemStack(cheeseHelmet), new Object[]{"CCC", "C C", "   ", 'C', itemGrilledCheese});
	GameRegistry.addRecipe(new ItemStack(cheeseChestplate), new Object[]{"C C", "CCC", "CCC", 'C', itemGrilledCheese});
	GameRegistry.addRecipe(new ItemStack(cheeseLeggings), new Object[]{"CCC", "C C", "C C", 'C', itemGrilledCheese});
	GameRegistry.addRecipe(new ItemStack(cheeseBoots), new Object[]{"   ", "C C", "C C", 'C', itemGrilledCheese});

	GameRegistry.addRecipe(new ItemStack(blockIllusion), new Object[]{"III", "III", "III", 'I', itemIllusion});
	GameRegistry.addRecipe(new ItemStack(galaxySword), new Object[]{" FI", " IF", "O  ", 'F', Items.flint_and_steel, 'I', itemIllusion, 'O', Blocks.obsidian});
	GameRegistry.addRecipe(new ItemStack(itemHandle), new Object[]{"SIS", "SIS", "SIS", 'S', itemStar, 'I', itemIllusion});
	GameRegistry.addRecipe(new ItemStack(itemBlade), new Object[]{" SI", " IS", " G ", 'S', itemStar, 'I', itemIllusion, 'G', galaxySword});
	GameRegistry.addRecipe(new ItemStack(itemHilt), new Object[]{"   ", "DSD", " G ", 'D', Items.diamond, 'S', itemStar, 'G', itemDiamondStick});
	GameRegistry.addRecipe(new ItemStack(galaxySlayer), new Object[]{" B ", " H ", " A ", 'B', itemBlade, 'H', itemHilt, 'A', itemHandle});

	GameRegistry.addRecipe(new ItemStack(itemMetal), new Object[]{"IDI", "EPE", "IDI", 'I', Items.iron_ingot, 'D', Items.diamond, 'E', Items.emerald, 'P', Items.ender_pearl});

	GameRegistry.addRecipe(new ItemStack(itemBatmanLogo), new Object[]{"IOI", "OOO", "IOI", 'I', itemIllusion, 'O', Blocks.obsidian});
	GameRegistry.addRecipe(new ItemStack(itemSuuuuupermanLogo), new Object[]{"RLR", "RRR", "RLR", 'R', Blocks.redstone_block, 'L', Blocks.lapis_block});

	GameRegistry.addRecipe(new ItemStack(batmanHelmet), new Object[]{"MBM", "M M", "   ", 'M', itemMetal, 'B', itemBatmanLogo});
	GameRegistry.addRecipe(new ItemStack(batmanChestplate), new Object[]{"M M", "MBM", "MMM", 'M', itemMetal, 'B', itemBatmanLogo});
	GameRegistry.addRecipe(new ItemStack(batmanLeggings), new Object[]{"MBM", "M M", "M M", 'M', itemMetal, 'B', itemBatmanLogo});
	GameRegistry.addRecipe(new ItemStack(batmanBoots), new Object[]{"   ", "M M", "M M", 'M', itemMetal, 'B', itemBatmanLogo});

	GameRegistry.addRecipe(new ItemStack(suuuuupermanHelmet), new Object[]{"ISI", "I I", "   ", 'I', itemIllusion, 'S', itemSuuuuupermanLogo});
	GameRegistry.addRecipe(new ItemStack(suuuuupermanChestplate), new Object[]{"I I", "ISI", "III", 'I', itemIllusion, 'S', itemSuuuuupermanLogo});
	GameRegistry.addRecipe(new ItemStack(suuuuupermanLeggings), new Object[]{"ISI", "I I", "I I", 'I', itemIllusion, 'S', itemSuuuuupermanLogo});
	GameRegistry.addRecipe(new ItemStack(suuuuupermanBoots), new Object[]{"   ", "I I", "I I", 'I', itemIllusion});

	GameRegistry.addRecipe(new ItemStack(ultimateHelmet), new Object[]{"OEO", "O O", "   ", 'O', Blocks.obsidian, 'E', Items.ender_pearl});
	GameRegistry.addRecipe(new ItemStack(ultimateChestplate), new Object[]{"O O", "ODO", "OOO", 'O', Blocks.obsidian, 'D', Blocks.diamond_block});
	GameRegistry.addRecipe(new ItemStack(ultimateLeggings), new Object[]{"ODO", "O O", "O O", 'O', Blocks.obsidian, 'D', Blocks.diamond_block});
	GameRegistry.addRecipe(new ItemStack(ultimateBoots), new Object[]{"   ", "E E", "O O", 'O', Blocks.obsidian, 'E', Items.ender_pearl});

	GameRegistry.addRecipe(new ItemStack(blockDemonite), new Object[]{"DDD", "DDD", "DDD", 'D', itemDemonite});

	GameRegistry.addSmelting(blockDemoniteOre, new ItemStack(itemDemonite), 5.0F);
	GameRegistry.addSmelting(blockIllusionOre, new ItemStack(itemIllusion), 5.0F);
	GameRegistry.addSmelting(blockRegidOre, new ItemStack (itemRegid), 5.0F);

	GameRegistry.addSmelting(itemCheese, new ItemStack(itemGrilledCheese), 5.0F);
	GameRegistry.addSmelting(itemCheeseStick, new ItemStack(RegidMod.itemGrilledCheese), 5.0F);
}

@EventHandler
public void postInit(FMLPostInitializationEvent event) {

}

public static CreativeTabs tabRegidModBlocks = new CreativeTabs("tabRegidModBlocks"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(blockRegid).getItem();
	}
};

public static CreativeTabs tabRegidModItems = new CreativeTabs("tabRegidModItems"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(itemRegid).getItem();

	}
};

public static CreativeTabs tabRegidModTools = new CreativeTabs("tabRegidModTools"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(regidPickaxe).getItem();
	}
};

public static CreativeTabs tabRegidModCombat = new CreativeTabs("tabRegidModCombat"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(regidSword).getItem();
	}
};
}

Link to comment
Share on other sites

Look at those and also update to 1.10

 

demoniteSword = new ItemDemoniteSword(demoniteToolMaterial).setUnlocalizedName("ItemDemoniteSword").setTextureName("rm:itemdemonitesword").setCreativeTab(tabRegidModTools);
	demonitePickaxe = new ItemDemonitePickaxe(demoniteToolMaterial).setUnlocalizedName("ItemDemoniteSword").setTextureName("rm:itemdemonitepickaxe").setCreativeTab(tabRegidModTools);

 

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

demoniteSword = new ItemDemoniteSword(demoniteToolMaterial).setUnlocalizedName("ItemDemoniteSword").setTextureName("rm:itemdemonitesword").setCreativeTab(tabRegidModTools);

demonitePickaxe = new ItemDemonitePickaxe(demoniteToolMaterial).setUnlocalizedName("ItemDemoniteSword").setTextureName("rm:itemdemonitepickaxe").setCreativeTab(tabRegidModTools);

Your unlocalized name for both items are the same. The pickaxe's name should be changed from ".setUnlocalizedName("ItemDemoniteSword")" to ".setUnlocalizedName("ItemDemonitePickaxe")"

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

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