Guest User

ModItems

a guest
Sep 30th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.64 KB | None | 0 0
  1. package objects.items;
  2.  
  3. import eround.boundless.Boundless;
  4. import net.minecraft.init.SoundEvents;
  5. import net.minecraft.item.Item.ToolMaterial;
  6. import net.minecraft.item.ItemArmor.ArmorMaterial;
  7. import net.minecraftforge.common.util.EnumHelper;
  8. import net.minecraftforge.fml.common.registry.GameRegistry;
  9. import net.minecraftforge.fml.relauncher.Side;
  10. import net.minecraftforge.fml.relauncher.SideOnly;
  11. import objects.items.armor.LunariumBoots;
  12. import objects.items.armor.LunariumChestPlate;
  13. import objects.items.armor.LunariumHelmet;
  14. import objects.items.armor.LunariumLeggings;
  15.  
  16. public class ModItems {
  17.     @GameRegistry.ObjectHolder("Boundless:leather_sword")
  18.     public static LeatherSword leather_sword;
  19.    
  20.     @GameRegistry.ObjectHolder("Boundless:smooth_stone_sword")
  21.     public static SmoothStoneSword smooth_stone_sword;
  22.    
  23.     @GameRegistry.ObjectHolder("Boundless:glass_sword")
  24.     public static GlassSword glass_sword;
  25.    
  26.     @GameRegistry.ObjectHolder("Boundless:lunarium")
  27.     public static Lunarium lunarium;
  28.    
  29.     @GameRegistry.ObjectHolder("Boundless:lunarium_sword")
  30.     public static LunariumSword lunarium_sword;
  31.    
  32.     @GameRegistry.ObjectHolder("Boundless:lunarium_helmet")
  33.     public static LunariumHelmet lunarium_helmet;
  34.    
  35.     @GameRegistry.ObjectHolder("Boundless:lunarium_chestplate")
  36.     public static LunariumChestPlate lunarium_chestplate;
  37.    
  38.     @GameRegistry.ObjectHolder("Boundless:lunarium_leggings")
  39.     public static LunariumLeggings lunarium_leggings;
  40.    
  41.     @GameRegistry.ObjectHolder("Boundless:lunarium_boots")
  42.     public static LunariumBoots lunarium_boots;
  43.    
  44.     @SideOnly(Side.CLIENT)
  45.     public static void initModels() {
  46.         leather_sword.initModel();
  47.         smooth_stone_sword.initModel();
  48.         glass_sword.initModel();
  49.         lunarium.initModel();
  50.         lunarium_sword.initModel();
  51.         lunarium_helmet.initModel();
  52.         lunarium_chestplate.initModel();
  53.         lunarium_leggings.initModel();
  54.         lunarium_boots.initModel();
  55.        
  56.     }
  57.    
  58.     //Tool Materials
  59.     public static final ToolMaterial leather = EnumHelper.addToolMaterial("leather", 0, 40, 2.0F, 0.1F, 15);
  60.     public static final ToolMaterial smoothStone = EnumHelper.addToolMaterial("smoothStone", 1, 200, 4.5F, 2.0F, 5);
  61.     public static final ToolMaterial glass = EnumHelper.addToolMaterial("glass", 1, 2, 4.5F, 15.3F, 5);
  62.     public static final ToolMaterial lunariumM = EnumHelper.addToolMaterial("lunarium", 3, 3000, 10.0f, 40.0f, 20);
  63.    
  64.     //Armor Materials
  65.     public static final ArmorMaterial lunariumA = EnumHelper.addArmorMaterial("lunariumA", Boundless.MODID + ".lunarium", 25, new int[]{5, 8, 11, 6}, 12, SoundEvents.ITEM_ARMOR_EQUIP_IRON, 0f);
  66. }
Add Comment
Please, Sign In to add comment