|
@@ -1,10 +1,11 @@
|
|
|
package me.km.items;
|
|
|
|
|
|
import me.km.KajetansMod;
|
|
|
-import me.km.blocks.ModBlocks;
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
|
+import net.minecraft.init.Items;
|
|
|
import net.minecraft.init.SoundEvents;
|
|
|
import net.minecraft.inventory.EntityEquipmentSlot;
|
|
|
+import net.minecraft.item.EnumDyeColor;
|
|
|
import net.minecraft.item.Item;
|
|
|
import net.minecraft.item.ItemArmor.ArmorMaterial;
|
|
|
import net.minecraft.item.ItemStack;
|
|
@@ -26,9 +27,17 @@ public class ModItems
|
|
|
ATTACK_SPEEDS { -3.2F, -3.2F, -3.1F, -3.0F, -3.0F}
|
|
|
*/
|
|
|
public static final Item.ToolMaterial TOOL_COPPER =
|
|
|
- EnumHelper.addToolMaterial("COPPER", 1, 161, 6, 1, 18);
|
|
|
+ EnumHelper.addToolMaterial("COPPER", 1, 161, 6, 1, 18);
|
|
|
public static final Item.ToolMaterial TOOL_BRONZE =
|
|
|
- EnumHelper.addToolMaterial("BRONZE", 2, 208, 7, 1.5f, 15);
|
|
|
+ EnumHelper.addToolMaterial("BRONZE", 2, 208, 7, 1.5f, 15);
|
|
|
+ public static final Item.ToolMaterial TOOL_REDSTONE =
|
|
|
+ EnumHelper.addToolMaterial("REDSTONE", 0, 59, 1, 0, 22);
|
|
|
+ public static final Item.ToolMaterial TOOL_SILVER =
|
|
|
+ EnumHelper.addToolMaterial("SILVER", 0, 250, 5, 2, 20);
|
|
|
+ public static final Item.ToolMaterial TOOL_EMERALD =
|
|
|
+ EnumHelper.addToolMaterial("EMERALD", 0, 1248, 7, 2.5f, 10);
|
|
|
+ public static final Item.ToolMaterial TOOL_LAPIS =
|
|
|
+ EnumHelper.addToolMaterial("LAPIS", 0, 131, 4, 1, 15);
|
|
|
|
|
|
/*
|
|
|
String nameIn, int maxDamageFactorIn, int[] damageReductionAmountArrayIn,
|
|
@@ -101,6 +110,43 @@ public class ModItems
|
|
|
|
|
|
// wands
|
|
|
public static ItemWand woodenWand;
|
|
|
+ public static ItemWand stoneWand;
|
|
|
+ public static ItemWand copperWand;
|
|
|
+ public static ItemWand bronzeWand;
|
|
|
+ public static ItemWand ironWand;
|
|
|
+ public static ItemWand goldWand;
|
|
|
+ public static ItemWand emeraldWand;
|
|
|
+ public static ItemWand redstoneWand;
|
|
|
+ public static ItemWand lapisWand;
|
|
|
+ public static ItemWand diamondWand;
|
|
|
+ public static ItemWand silverWand;
|
|
|
+
|
|
|
+ // sticks
|
|
|
+ public static ItemStick woodenStick;
|
|
|
+ public static ItemStick stoneStick;
|
|
|
+ public static ItemStick copperStick;
|
|
|
+ public static ItemStick bronzeStick;
|
|
|
+ public static ItemStick ironStick;
|
|
|
+ public static ItemStick goldStick;
|
|
|
+ public static ItemStick diamondStick;
|
|
|
+
|
|
|
+ // dagger
|
|
|
+ public static ItemDagger woodenDagger;
|
|
|
+ public static ItemDagger stoneDagger;
|
|
|
+ public static ItemDagger copperDagger;
|
|
|
+ public static ItemDagger bronzeDagger;
|
|
|
+ public static ItemDagger ironDagger;
|
|
|
+ public static ItemDagger goldDagger;
|
|
|
+ public static ItemDagger diamondDagger;
|
|
|
+
|
|
|
+ // hammer
|
|
|
+ public static ItemHammer woodenHammer;
|
|
|
+ public static ItemHammer stoneHammer;
|
|
|
+ public static ItemHammer copperHammer;
|
|
|
+ public static ItemHammer bronzeHammer;
|
|
|
+ public static ItemHammer ironHammer;
|
|
|
+ public static ItemHammer goldHammer;
|
|
|
+ public static ItemHammer diamondHammer;
|
|
|
|
|
|
// coins
|
|
|
public static ItemBase copperCoin;
|
|
@@ -111,6 +157,8 @@ public class ModItems
|
|
|
public static ItemScroll scroll;
|
|
|
public static ItemBed realHayBed;
|
|
|
public static ItemBase hayBundle;
|
|
|
+ public static ItemBase batWing;
|
|
|
+ public static ItemBase wolfFur;
|
|
|
|
|
|
public static void init()
|
|
|
{
|
|
@@ -132,6 +180,10 @@ public class ModItems
|
|
|
ARMOR_COPPER.setRepairItem(new ItemStack(copperIngot));
|
|
|
TOOL_BRONZE.setRepairItem(new ItemStack(bronzeIngot));
|
|
|
ARMOR_BRONZE.setRepairItem(new ItemStack(bronzeIngot));
|
|
|
+ TOOL_EMERALD.setRepairItem(new ItemStack(Items.EMERALD));
|
|
|
+ TOOL_REDSTONE.setRepairItem(new ItemStack(Items.REDSTONE));
|
|
|
+ TOOL_LAPIS.setRepairItem(new ItemStack(Items.DYE, 1, EnumDyeColor.BLUE.getDyeDamage()));
|
|
|
+ TOOL_SILVER.setRepairItem(new ItemStack(silverIngot));
|
|
|
|
|
|
// tools and swords
|
|
|
copperSword = register(new ItemSword(TOOL_COPPER, "copper_sword", "swordCopper"));
|
|
@@ -166,6 +218,43 @@ public class ModItems
|
|
|
|
|
|
// wands
|
|
|
woodenWand = register(new ItemWand("wood_wand", "wandWood", Item.ToolMaterial.WOOD, 1));
|
|
|
+ stoneWand = register(new ItemWand("stone_wand", "wandStone", Item.ToolMaterial.STONE, 1));
|
|
|
+ copperWand = register(new ItemWand("copper_wand", "wandCopper", TOOL_COPPER, 2));
|
|
|
+ bronzeWand = register(new ItemWand("bronze_wand", "wandBronze", TOOL_BRONZE, 2));
|
|
|
+ ironWand = register(new ItemWand("iron_wand", "wandIron", Item.ToolMaterial.IRON, 2));
|
|
|
+ goldWand = register(new ItemWand("gold_wand", "wandGold", Item.ToolMaterial.GOLD, 6));
|
|
|
+ emeraldWand = register(new ItemWand("emerald_wand", "wandEmerald", TOOL_EMERALD, 4));
|
|
|
+ redstoneWand = register(new ItemWand("redstone_wand", "wandRedstone", TOOL_REDSTONE, 5));
|
|
|
+ lapisWand = register(new ItemWand("lapis_wand", "wandLapis", TOOL_LAPIS, 6));
|
|
|
+ diamondWand = register(new ItemWand("diamond_wand", "wandDiamond", Item.ToolMaterial.DIAMOND, 4));
|
|
|
+ silverWand = register(new ItemWand("silver_wand", "wandSilver", TOOL_SILVER, 6));
|
|
|
+
|
|
|
+ // sticks
|
|
|
+ woodenStick = register(new ItemStick("wood_stick", "stickWood", Item.ToolMaterial.WOOD));
|
|
|
+ stoneStick = register(new ItemStick("stone_stick", "stickStone", Item.ToolMaterial.STONE));
|
|
|
+ copperStick = register(new ItemStick("copper_stick", "stickCopper", TOOL_COPPER));
|
|
|
+ bronzeStick = register(new ItemStick("bronze_stick", "stickBronze", TOOL_BRONZE));
|
|
|
+ ironStick = register(new ItemStick("iron_stick", "stickIron", Item.ToolMaterial.IRON));
|
|
|
+ goldStick = register(new ItemStick("gold_stick", "stickGold", Item.ToolMaterial.GOLD));
|
|
|
+ diamondStick = register(new ItemStick("diamond_stick", "stickDiamond", Item.ToolMaterial.DIAMOND));
|
|
|
+
|
|
|
+ // dagger
|
|
|
+ woodenDagger = register(new ItemDagger("wood_dagger", "daggerWood", Item.ToolMaterial.WOOD));
|
|
|
+ stoneDagger = register(new ItemDagger("stone_dagger", "daggerStone", Item.ToolMaterial.STONE));
|
|
|
+ copperDagger = register(new ItemDagger("copper_dagger", "daggerCopper", TOOL_COPPER));
|
|
|
+ bronzeDagger = register(new ItemDagger("bronze_dagger", "daggerBronze", TOOL_BRONZE));
|
|
|
+ ironDagger = register(new ItemDagger("iron_dagger", "daggerIron", Item.ToolMaterial.IRON));
|
|
|
+ goldDagger = register(new ItemDagger("gold_dagger", "daggerGold", Item.ToolMaterial.GOLD));
|
|
|
+ diamondDagger = register(new ItemDagger("diamond_dagger", "daggerDiamond", Item.ToolMaterial.DIAMOND));
|
|
|
+
|
|
|
+ // hammer
|
|
|
+ woodenHammer = register(new ItemHammer("wood_hammer", "hammerWood", Item.ToolMaterial.WOOD));
|
|
|
+ stoneHammer = register(new ItemHammer("stone_hammer", "hammerStone", Item.ToolMaterial.STONE));
|
|
|
+ copperHammer = register(new ItemHammer("copper_hammer", "hammerCopper", TOOL_COPPER));
|
|
|
+ bronzeHammer = register(new ItemHammer("bronze_hammer", "hammerBronze", TOOL_BRONZE));
|
|
|
+ ironHammer = register(new ItemHammer("iron_hammer", "hammerIron", Item.ToolMaterial.IRON));
|
|
|
+ goldHammer = register(new ItemHammer("gold_hammer", "hammerGold", Item.ToolMaterial.GOLD));
|
|
|
+ diamondHammer = register(new ItemHammer("diamond_hammer", "hammerDiamond", Item.ToolMaterial.DIAMOND));
|
|
|
|
|
|
// coins
|
|
|
copperCoin = register(new ItemBase("coin_copper", "coinCopper").setCreativeTab(CreativeTabs.MISC));
|
|
@@ -176,6 +265,8 @@ public class ModItems
|
|
|
scroll = register((ItemScroll) new ItemScroll("scroll", "scroll").setCreativeTab(CreativeTabs.MISC));
|
|
|
realHayBed = register(new ItemBed("real_hay_bed", "realHayBed"));
|
|
|
hayBundle = register(new ItemBase("hay_bundle", "bundleHay").setCreativeTab(CreativeTabs.MATERIALS));
|
|
|
+ batWing = register(new ItemBase("bat_wing", "batWing").setCreativeTab(CreativeTabs.MATERIALS));
|
|
|
+ wolfFur = register(new ItemBase("wolf_fur", "wolfFur").setCreativeTab(CreativeTabs.MATERIALS));
|
|
|
}
|
|
|
|
|
|
private static <T extends Item> T register(T item)
|