Advertisement
jadenquinn

codeeee

Oct 3rd, 2018
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. package mod.mcreator;
  2.  
  3. import net.minecraftforge.fml.relauncher.Side;
  4. import net.minecraftforge.fml.common.registry.ForgeRegistries;
  5. import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
  6. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  7. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  8. import net.minecraftforge.common.util.EnumHelper;
  9.  
  10. import net.minecraft.world.World;
  11. import net.minecraft.item.ItemStack;
  12. import net.minecraft.item.ItemArmor;
  13. import net.minecraft.item.Item;
  14. import net.minecraft.inventory.EntityEquipmentSlot;
  15. import net.minecraft.entity.player.EntityPlayer;
  16. import net.minecraft.client.renderer.block.model.ModelResourceLocation;
  17. import net.minecraft.client.Minecraft;
  18.  
  19. import java.util.Random;
  20. import java.util.HashMap;
  21.  
  22. public class mcreator_pinkestarmor {
  23.  
  24. public static Object instance;
  25. public static Item helmet;
  26. public static Item body;
  27. public static Item legs;
  28. public static Item boots;
  29. static {
  30. ItemArmor.ArmorMaterial enuma = EnumHelper.addArmorMaterial("PINKESTARMOR", "9999909999999", 72, new int[]{3, 8, 12, 5}, 32, null,
  31. 4.8999999999999995f);
  32. helmet = (new ItemArmor(enuma, 0, EntityEquipmentSlot.HEAD)).setUnlocalizedName("pinkestarmorhelmet");
  33. helmet.setMaxStackSize(1);
  34. body = (new ItemArmor(enuma, 0, EntityEquipmentSlot.CHEST) {
  35.  
  36. @Override
  37. public void onArmorTick(World world, EntityPlayer entity, ItemStack itemstack) {
  38. int x = (int) entity.posX;
  39. int y = (int) entity.posY;
  40. int z = (int) entity.posZ;
  41. {
  42. java.util.HashMap<String, Object> $_dependencies = new java.util.HashMap<>();
  43. $_dependencies.put("entity", entity);
  44. mcreator_pinkitemsarmor.executeProcedure($_dependencies);
  45. }
  46. }
  47. }).setUnlocalizedName("pinkestarmorbody");
  48. body.setMaxStackSize(1);
  49. legs = (new ItemArmor(enuma, 0, EntityEquipmentSlot.LEGS)).setUnlocalizedName("pinkestarmorlegs");
  50. legs.setMaxStackSize(1);
  51. boots = (new ItemArmor(enuma, 0, EntityEquipmentSlot.FEET)).setUnlocalizedName("pinkestarmorboots");
  52. boots.setMaxStackSize(1);
  53. helmet.setRegistryName("pinkestarmorhelmet");
  54. ForgeRegistries.ITEMS.register(helmet);
  55. body.setRegistryName("pinkestarmorbody");
  56. ForgeRegistries.ITEMS.register(body);
  57. legs.setRegistryName("pinkestarmorlegs");
  58. ForgeRegistries.ITEMS.register(legs);
  59. boots.setRegistryName("pinkestarmorboots");
  60. ForgeRegistries.ITEMS.register(boots);
  61. }
  62.  
  63. public void load(FMLInitializationEvent event) {
  64. if (event.getSide() == Side.CLIENT) {
  65. Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
  66. .register(helmet, 0, new ModelResourceLocation("testenvironmentmod:pinkestarmorhelmet", "inventory"));
  67. Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
  68. .register(body, 0, new ModelResourceLocation("testenvironmentmod:pinkestarmorbody", "inventory"));
  69. Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
  70. .register(legs, 0, new ModelResourceLocation("testenvironmentmod:pinkestarmorlegs", "inventory"));
  71. Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
  72. .register(boots, 0, new ModelResourceLocation("testenvironmentmod:pinkestarmorboots", "inventory"));
  73. }
  74. helmet.setCreativeTab(mcreator_tab23232.tab);
  75. body.setCreativeTab(mcreator_tab23232.tab);
  76. legs.setCreativeTab(mcreator_tab23232.tab);
  77. boots.setCreativeTab(mcreator_tab23232.tab);
  78. }
  79.  
  80. public void generateNether(World world, Random random, int chunkX, int chunkZ) {
  81. }
  82.  
  83. public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
  84. }
  85.  
  86. public void serverLoad(FMLServerStartingEvent event) {
  87. }
  88.  
  89. public void preInit(FMLPreInitializationEvent event) {
  90. }
  91.  
  92. public void registerRenderers() {
  93. }
  94.  
  95. public int addFuel(ItemStack fuel) {
  96. return 0;
  97. }
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement