SHARE
TWEET

Untitled

a guest Oct 26th, 2015 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package kaoticube;
  2.  
  3. import cpw.mods.fml.client.*;
  4. import cpw.mods.fml.client.registry.*;
  5. import cpw.mods.fml.common.*;
  6. import cpw.mods.fml.common.asm.*;
  7. import cpw.mods.fml.common.asm.transformers.*;
  8. import cpw.mods.fml.common.discovery.*;
  9. import cpw.mods.fml.common.discovery.asm.*;
  10. import cpw.mods.fml.common.event.*;
  11. import cpw.mods.fml.common.functions.*;
  12. import cpw.mods.fml.common.network.*;
  13. import cpw.mods.fml.common.registry.*;
  14. import cpw.mods.fml.common.toposort.*;
  15. import cpw.mods.fml.common.versioning.*;
  16. import cpw.mods.fml.relauncher.*;
  17. import cpw.mods.fml.server.*;
  18. import net.minecraft.block.*;
  19. import net.minecraft.block.material.*;
  20. import net.minecraft.client.*;
  21. import net.minecraft.client.audio.*;
  22. import net.minecraft.client.entity.*;
  23. import net.minecraft.client.gui.*;
  24. import net.minecraft.client.gui.achievement.*;
  25. import net.minecraft.client.gui.inventory.*;
  26. import net.minecraft.client.model.*;
  27. import net.minecraft.client.multiplayer.*;
  28. import net.minecraft.client.particle.*;
  29. import net.minecraft.client.renderer.*;
  30. import net.minecraft.client.renderer.culling.*;
  31. import net.minecraft.client.renderer.entity.*;
  32. import net.minecraft.client.renderer.tileentity.*;
  33. import net.minecraft.client.settings.*;
  34. import net.minecraft.command.*;
  35. import net.minecraft.crash.*;
  36. import net.minecraft.creativetab.*;
  37. import net.minecraft.dispenser.*;
  38. import net.minecraft.enchantment.*;
  39. import net.minecraft.entity.*;
  40. import net.minecraft.entity.ai.*;
  41. import net.minecraft.entity.boss.*;
  42. import net.minecraft.entity.effect.*;
  43. import net.minecraft.entity.item.*;
  44. import net.minecraft.entity.monster.*;
  45. import net.minecraft.entity.passive.*;
  46. import net.minecraft.entity.player.*;
  47. import net.minecraft.entity.projectile.*;
  48. import net.minecraft.inventory.*;
  49. import net.minecraft.item.*;
  50. import net.minecraft.item.crafting.*;
  51. import net.minecraft.nbt.*;
  52. import net.minecraft.network.*;
  53. import net.minecraft.network.rcon.*;
  54. import net.minecraft.pathfinding.*;
  55. import net.minecraft.potion.*;
  56. import net.minecraft.profiler.*;
  57. import net.minecraft.server.*;
  58. import net.minecraft.server.dedicated.*;
  59. import net.minecraft.server.gui.*;
  60. import net.minecraft.server.integrated.*;
  61. import net.minecraft.server.management.*;
  62. import net.minecraft.src.*;
  63. import net.minecraft.stats.*;
  64. import net.minecraft.tileentity.*;
  65. import net.minecraft.util.*;
  66. import net.minecraft.village.*;
  67. import net.minecraft.world.*;
  68. import net.minecraft.world.biome.*;
  69. import net.minecraft.world.chunk.*;
  70. import net.minecraft.world.chunk.storage.*;
  71. import net.minecraft.world.demo.*;
  72. import net.minecraft.world.gen.*;
  73. import net.minecraft.world.gen.feature.*;
  74. import net.minecraft.world.gen.layer.*;
  75. import net.minecraft.world.gen.structure.*;
  76. import net.minecraft.world.storage.*;
  77. import net.minecraftforge.classloading.*;
  78. import net.minecraftforge.client.*;
  79. import net.minecraftforge.client.event.*;
  80. import net.minecraftforge.client.event.sound.*;
  81. import net.minecraftforge.common.*;
  82. import net.minecraftforge.event.*;
  83. import net.minecraftforge.event.entity.*;
  84. import net.minecraftforge.event.entity.item.*;
  85. import net.minecraftforge.event.entity.living.*;
  86. import net.minecraftforge.event.entity.minecart.*;
  87. import net.minecraftforge.event.entity.player.*;
  88. import net.minecraftforge.event.terraingen.*;
  89. import net.minecraftforge.event.world.*;
  90. import net.minecraftforge.oredict.*;
  91. import net.minecraftforge.transformers.*;
  92. import net.minecraft.init.*;
  93. import java.util.Random;
  94.  
  95. import net.minecraftforge.common.util.*;public class kaoticube_apatitecaoharmor{
  96.  
  97. public kaoticube_apatitecaoharmor(){}
  98. public static final String MODID = "kaoticube";
  99. public static Item helmet;
  100. public static Item body;
  101. public static Item legs;
  102. public static Item boots;
  103. public Object instance;public void load(){
  104. GameRegistry.addRecipe(new ItemStack(helmet, 1), new Object[]{
  105.         "012", "3X5", "XXX", Character.valueOf('0'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('1'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('2'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('3'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('5'), new ItemStack(kaoticube_apatiteingot.block, 1),
  106. });
  107. GameRegistry.addRecipe(new ItemStack(body, 1), new Object[]{
  108.         "0X2", "345", "678", Character.valueOf('0'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('2'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('3'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('4'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('5'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('6'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('7'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('8'), new ItemStack(kaoticube_apatiteingot.block, 1),
  109. });
  110. GameRegistry.addRecipe(new ItemStack(legs, 1), new Object[]{
  111.         "012", "3X5", "6X8", Character.valueOf('0'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('1'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('2'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('3'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('5'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('6'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('8'), new ItemStack(kaoticube_apatiteingot.block, 1),
  112. });
  113. GameRegistry.addRecipe(new ItemStack(boots, 1), new Object[]{
  114.         "XXX", "3X5", "6X8", Character.valueOf('3'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('5'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('6'), new ItemStack(kaoticube_apatiteingot.block, 1), Character.valueOf('8'), new ItemStack(kaoticube_apatiteingot.block, 1),
  115. });
  116. helmet.setCreativeTab(kaoticube_kaoTiCube.tab);
  117. body.setCreativeTab(kaoticube_kaoTiCube.tab);
  118. legs.setCreativeTab(kaoticube_kaoTiCube.tab);
  119. boots.setCreativeTab(kaoticube_kaoTiCube.tab);
  120. }
  121. public void generateNether(World world, Random random, int chunkX, int chunkZ){}
  122. public void generateSurface(World world, Random random, int chunkX, int chunkZ){}
  123. public int addFuel(ItemStack fuel){return 0;}
  124. public void serverLoad(FMLServerStartingEvent event){}
  125. public void preInit(FMLPreInitializationEvent event){}
  126. public void registerRenderers(){}
  127.  
  128.  
  129. static{
  130. ItemArmor.ArmorMaterial enuma = EnumHelper.addArmorMaterial("APATITECAOHARMOR", 26, new int[] {3, 7, 5, 3}, 9);
  131.  
  132. int armorPreffix = 0;if(FMLCommonHandler.instance().getEffectiveSide()==Side.CLIENT) armorPreffix = RenderingRegistry.addNewArmourRendererPrefix("Apatite");
  133. helmet = (new ItemArmor(enuma, armorPreffix, 0){public void onArmorTick(World world, EntityPlayer entity, ItemStack itemStack){
  134. int i = (int)entity.posX;
  135. int j = (int)entity.posY;
  136. int k = (int)entity.posZ;
  137. }
  138. }).setUnlocalizedName("ffff").setTextureName(MODID + ":ffff");helmet.setMaxStackSize(1);
  139. body = (new ItemArmor(enuma, armorPreffix, 1){public void onArmorTick(World world, EntityPlayer entity, ItemStack itemStack){
  140. int i = (int)entity.posX;
  141. int j = (int)entity.posY;
  142. int k = (int)entity.posZ;
  143. }
  144. }).setUnlocalizedName("fff").setTextureName(MODID + ":fff");body.setMaxStackSize(1);
  145. legs = (new ItemArmor(enuma, armorPreffix, 2){public void onArmorTick(World world, EntityPlayer entity, ItemStack itemStack){
  146. int i = (int)entity.posX;
  147. int j = (int)entity.posY;
  148. int k = (int)entity.posZ;
  149. }
  150. }).setUnlocalizedName("ff").setTextureName(MODID + ":ff");legs.setMaxStackSize(1);
  151. boots = (new ItemArmor(enuma, armorPreffix, 3){public void onArmorTick(World world, EntityPlayer entity, ItemStack itemStack){
  152. int i = (int)entity.posX;
  153. int j = (int)entity.posY;
  154. int k = (int)entity.posZ;
  155. }
  156. }).setUnlocalizedName("f").setTextureName(MODID + ":f");boots.setMaxStackSize(1);
  157.  
  158. Item.itemRegistry.addObject(447, "ffff", helmet);
  159. Item.itemRegistry.addObject(448, "fff", body);
  160. Item.itemRegistry.addObject(449, "ff", legs);
  161. Item.itemRegistry.addObject(450, "f", boots);
  162.  
  163.  
  164. }
  165.  
  166. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top