Advertisement
BlackGRizzly

GrizzlyMod.java

Jun 2nd, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 23.87 KB | None | 0 0
  1. package grizzly.mod;
  2.  
  3.  
  4. import org.apache.logging.log4j.LogManager;
  5. import org.apache.logging.log4j.Logger;
  6. import grizzly.mod.items.ItemCustomAxe;
  7. import grizzly.mod.items.ItemCustomFoods;
  8. import grizzly.mod.items.ItemCustomPickaxe;
  9. import grizzly.mod.items.ItemCustomSpecialFoods;
  10. import grizzly.mod.items.ItemCustomTools;
  11. import grizzly.mod.lists.ArmourMaterialList;
  12. import grizzly.mod.lists.BlockList;
  13. import grizzly.mod.lists.ItemList;
  14. import grizzly.mod.lists.ToolMaterialList;
  15. import grizzly.mod.world.OreGeneration;
  16. import net.minecraft.block.Block;
  17. import net.minecraft.block.SoundType;
  18. import net.minecraft.block.material.Material;
  19. import net.minecraft.inventory.EntityEquipmentSlot;
  20. import net.minecraft.item.EnumRarity;
  21. import net.minecraft.item.Item;
  22. import net.minecraft.item.ItemArmor;
  23. import net.minecraft.item.ItemBlock;
  24. import net.minecraft.item.ItemGroup;
  25. import net.minecraft.item.ItemHoe;
  26. import net.minecraft.item.ItemSpade;
  27. import net.minecraft.item.ItemSword;
  28. import net.minecraft.util.ResourceLocation;
  29. import net.minecraftforge.client.event.ColorHandlerEvent;
  30. import net.minecraftforge.common.MinecraftForge;
  31. import net.minecraftforge.event.RegistryEvent;
  32. import net.minecraftforge.eventbus.api.SubscribeEvent;
  33. import net.minecraftforge.fml.common.Mod;
  34. import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
  35. import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
  36. import net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent;
  37. import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
  38.  
  39. @Mod("grizzlymod")
  40.  
  41. public class GrizzlyMod
  42. {
  43.     public static GrizzlyMod instance;
  44.     public static final String modid = "grizzlymod";
  45.     private static final Logger logger = LogManager.getLogger(modid);
  46.        
  47.     public static final ItemGroup grizzlyitems = new GrizzlyModItemGroup();
  48.     public static final ItemGroup grizzlyblocks = new GrizzlyModBlockGroup();
  49.     public static final ItemGroup grizzlytools = new GrizzlyModToolsGroup();
  50.     public static final ItemGroup grizzlyweapons = new GrizzlyModWeaponsGroup();
  51.     public static final ItemGroup grizzlyfoods = new GrizzlyModFoodsGroup();
  52. //  public static final ItemGroup grizzlyarmory = new GrizzlyModArmoryGroup();
  53. //  public static final ItemGroup grizzlymachines = new GrizzlyModMachinesGroup();
  54.    
  55.    
  56.     public GrizzlyMod()
  57.     {
  58.         instance = this;
  59.        
  60.         FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
  61.         FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientRegistries);
  62.        
  63.         MinecraftForge.EVENT_BUS.register(this);
  64.     }
  65.    
  66.     public void setup(final FMLCommonSetupEvent event)
  67.     {
  68.         OreGeneration.setupOreGeneration();
  69.         logger.info("Setup method registered.");
  70.     }
  71.    
  72.     private void clientRegistries(final FMLClientSetupEvent event)
  73.     {
  74.         logger.info("clientRegistries method registered.");
  75.     }
  76.    
  77.  
  78.     public void ready(final FMLLoadCompleteEvent event)
  79.     {
  80.        
  81.     }
  82.    
  83.     @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD)
  84.     public static class RegistryEvents
  85.     {
  86.         public static ColorHandlerEvent.Item event;
  87.  
  88.         @SubscribeEvent
  89.         public static void registerItems(final RegistryEvent.Register<Item> event)
  90.         {
  91.             event.getRegistry().registerAll
  92.             (
  93.                 //  ItemList.uranium = new Item(new Item.Properties().group(ItemGroup.MISC)).setRegistryName(location("uranium"))
  94.                 //  register("porkchop", new ItemFood(3, 0.3F, true, (new Item.Properties()).group(ItemGroup.FOOD)));
  95.                 //  register("bucket", item);
  96.                 //  register("water_bucket", new ItemBucket(Fluids.WATER, (new Item.Properties()).containerItem(item).maxStackSize(1).group(ItemGroup.MISC)));
  97.                 //  register("lava_bucket", new ItemBucket(Fluids.LAVA, (new Item.Properties()).containerItem(item).maxStackSize(1).group(ItemGroup.MISC)));
  98.                    
  99.                
  100.                    
  101.                    
  102.                 // FOOD, SAPPLINGS AND MORE
  103.                    
  104.                    
  105.                     ItemList.food_peach = new ItemCustomFoods().setRegistryName(location("food_peach")),
  106.                     ItemList.food_special_peach = new ItemCustomSpecialFoods().rarity(EnumRarity.EPIC).setRegistryName(location("food_special_peach")),
  107.                    
  108.                 // URANIUM
  109.                     ItemList.uranium = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("uranium")),
  110.                     ItemList.uranium_235 = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("uranium_235")),
  111.                     ItemList.uranium_238 = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("uranium_238")),
  112.                     ItemList.crushed_uranium_ore = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("crushed_uranium_ore")),
  113.                     ItemList.purified_crushed_uranium_ore = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("purified_crushed_uranium_ore")),
  114.                     ItemList.tiny_pile_of_uranium_235 = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("tiny_pile_of_uranium_235")),
  115.                     ItemList.tiny_pile_of_uranium_238 = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("tiny_pile_of_uranium_238")),
  116.                     ItemList.uranium_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("uranium_dust")),
  117.                     ItemList.uranium_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("uranium_ingot")),
  118.                    
  119.                     ItemList.uranium_axe = new ItemCustomAxe(ToolMaterialList.MaterialUranium, -1.0f, 6.0f, new Item.Properties().group(grizzlytools)).setRegistryName(location("uranium_axe")),
  120.                     ItemList.uranium_pickaxe = new ItemCustomPickaxe(ToolMaterialList.MaterialUranium, -2, 6.0f, new Item.Properties().group(grizzlytools)).setRegistryName(location("uranium_pickaxe")),
  121.                     ItemList.uranium_shovel = new ItemSpade(ToolMaterialList.MaterialUranium, -3.0f, 6.0f, new Item.Properties().group(grizzlytools)).setRegistryName(location("uranium_shovel")),
  122.                     ItemList.uranium_hoe = new ItemHoe(ToolMaterialList.MaterialUranium, 6.0f, new Item.Properties().group(grizzlytools)).setRegistryName(location("uranium_hoe")),
  123.                     ItemList.uranium_sword = new ItemSword(ToolMaterialList.MaterialUranium, 0, 6.0f, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("uranium_sword")),
  124.                            
  125.                     ItemList.uranium_helmet =new ItemArmor(ArmourMaterialList.MaterialUranium, EntityEquipmentSlot.HEAD, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("uranium_helmet")),
  126.                     ItemList.uranium_chestplate =new ItemArmor(ArmourMaterialList.MaterialUranium, EntityEquipmentSlot.CHEST, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("uranium_chestplate")),
  127.                     ItemList.uranium_leggings =new ItemArmor(ArmourMaterialList.MaterialUranium, EntityEquipmentSlot.LEGS, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("uranium_leggings")),
  128.                     ItemList.uranium_boots =new ItemArmor(ArmourMaterialList.MaterialUranium, EntityEquipmentSlot.FEET, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("uranium_boots")),
  129.                    
  130.                 // COPPER
  131.                     ItemList.copper = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("copper")),
  132.                     ItemList.copper_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("copper_dust")),
  133.                     ItemList.copper_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("copper_ingot")),
  134.                     ItemList.copper_plate = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("copper_plate")),
  135.                     ItemList.copper_item_casing = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("copper_item_casing")),
  136.                     ItemList.copper_cable = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("copper_cable")),
  137.                     ItemList.insulated_copper_cable = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("insulated_copper_cable")),
  138.                    
  139.                     ItemList.copper_axe = new ItemCustomAxe(ToolMaterialList.MaterialCopper, -1.0f, 6.0f, new Item.Properties().group(grizzlytools)).setRegistryName(location("copper_axe")),
  140.                     ItemList.copper_pickaxe = new ItemCustomPickaxe(ToolMaterialList.MaterialCopper, -2, 6.0f, new Item.Properties().group(grizzlytools)).setRegistryName(location("copper_pickaxe")),
  141.                     ItemList.copper_shovel = new ItemSpade(ToolMaterialList.MaterialCopper, -3.0f, 6.0f, new Item.Properties().group(grizzlytools)).setRegistryName(location("copper_shovel")),
  142.                     ItemList.copper_hoe = new ItemHoe(ToolMaterialList.MaterialCopper, 6.0f, new Item.Properties().group(grizzlytools)).setRegistryName(location("copper_hoe")),
  143.                     ItemList.copper_sword = new ItemSword(ToolMaterialList.MaterialCopper, 0, 6.0f, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("copper_sword")),
  144.                    
  145.                     ItemList.copper_helmet =new ItemArmor(ArmourMaterialList.MaterialCopper, EntityEquipmentSlot.HEAD, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("copper_helmet")),
  146.                     ItemList.copper_chestplate =new ItemArmor(ArmourMaterialList.MaterialCopper, EntityEquipmentSlot.CHEST, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("copper_chestplate")),
  147.                     ItemList.copper_leggings =new ItemArmor(ArmourMaterialList.MaterialCopper, EntityEquipmentSlot.LEGS, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("copper_leggings")),
  148.                     ItemList.copper_boots =new ItemArmor(ArmourMaterialList.MaterialCopper, EntityEquipmentSlot.FEET, new Item.Properties().group(grizzlyweapons)).setRegistryName(location("copper_boots")),
  149.                    
  150.                 // GOLD
  151.                     ItemList.gold_cable = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("gold_cable")),
  152.                     ItemList.gold_plate = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("gold_plate")),
  153.                     ItemList.gold_item_casing = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("gold_item_casing")),
  154.                    
  155.                    
  156.                 // IRON
  157.                     ItemList.iron_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("iron_dust")),
  158.                     ItemList.iron_plate = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("iron_plate")),
  159.                    
  160.                 // IRON TOOLS
  161.                     ItemList.iron_cutter = new ItemCustomTools(ToolMaterialList.MaterialIron, -2, 6.0f, new Item.Properties().group(grizzlytools).rarity(EnumRarity.UNCOMMON)).setRegistryName(location("iron_cutter")),
  162.                     ItemList.forge_hammer = new ItemCustomTools(ToolMaterialList.MaterialIron, -2, 6.0f, new Item.Properties().group(grizzlytools).rarity(EnumRarity.UNCOMMON)).setRegistryName(location("forge_hammer")),
  163.                    
  164.                    
  165.                 // ALUMINUM
  166.                     ItemList.aluminum = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("aluminum")),
  167.                     ItemList.aluminum_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("aluminum_dust")),
  168.                     ItemList.aluminum_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("aluminum_ingot")),
  169.                     ItemList.aluminum_plate = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("aluminum_plate")),
  170.                    
  171. //              // Lead
  172. //                  ItemList.lead_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("lead_dust")),
  173. //                  ItemList.lead_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("lead_ingot")),
  174. //                 
  175. //              // Tin
  176. //                  ItemList.tin = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("tin")),
  177. //                  ItemList.tin_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("tin_dust")),
  178. //                  ItemList.tin_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("tin_ingot")),
  179. //                 
  180. //              // Nickel
  181. //                  ItemList.nickel = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("nickel")),
  182. //                  ItemList.nickel_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("nickel_dust")),
  183. //                  ItemList.nickel_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("nickel_ingot")),
  184. //                 
  185. //              // Iridium
  186. //                  ItemList.iridium_unclean = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("iridium_unclean")),
  187. //                  ItemList.iridium_clean = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("iridium_clean")),
  188. //                  ItemList.iridium_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("iridium_dust")),
  189. //                  ItemList.iridium_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("iridium_ingot")),
  190. //                 
  191. //              // Platinum
  192. //                  ItemList.platinum = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("platinum")),
  193. //                  ItemList.platinum_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("platinum_dust")),
  194. //                  ItemList.platinum_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("platinum_ingot")),
  195. //                 
  196. //              // Silver  
  197. //                  ItemList.silver = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("silver")),
  198. //                  ItemList.silver_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("silver_dust")),
  199. //                  ItemList.silver_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("silver_ingot")),
  200. //                 
  201. //              // Steel
  202. //                  ItemList.steel = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("steel")),
  203. //                  ItemList.steel_dust = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("steel_dust")),
  204. //                  ItemList.steel_ingot = new Item(new Item.Properties().group(grizzlyitems)).setRegistryName(location("steel_ingot")),
  205.                    
  206.                                    
  207.                 // BLOCKS AND ORES //
  208.                     // URANIUM
  209.                     ItemList.uranium_block = new ItemBlock(BlockList.uranium_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.uranium_block.getRegistryName()),
  210.                     ItemList.uranium_ore = new ItemBlock(BlockList.uranium_ore, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.uranium_ore.getRegistryName()),
  211.                     ItemList.uranium_ore_nether = new ItemBlock(BlockList.uranium_ore_nether, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.uranium_ore_nether.getRegistryName()),
  212.                     ItemList.uranium_ore_end = new ItemBlock(BlockList.uranium_ore_end, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.uranium_ore_end.getRegistryName()),
  213.                    
  214.                     // ALUMINUM
  215.                     ItemList.aluminum_block = new ItemBlock(BlockList.aluminum_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.aluminum_block.getRegistryName()),
  216.                     ItemList.aluminum_ore = new ItemBlock(BlockList.aluminum_ore, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.aluminum_ore.getRegistryName()),
  217.                     ItemList.aluminum_ore_nether = new ItemBlock(BlockList.aluminum_ore_nether, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.aluminum_ore_nether.getRegistryName()),
  218.                     ItemList.aluminum_ore_end = new ItemBlock(BlockList.aluminum_ore_end, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.aluminum_ore_end.getRegistryName()),
  219.                    
  220.                     // COPPER
  221.                     ItemList.copper_block = new ItemBlock(BlockList.copper_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.copper_block.getRegistryName()),
  222.                     ItemList.copper_ore = new ItemBlock(BlockList.copper_ore, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.copper_ore.getRegistryName()),
  223.                     ItemList.copper_ore_nether = new ItemBlock(BlockList.copper_ore_nether, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.copper_ore_nether.getRegistryName()),
  224.                     ItemList.copper_ore_end = new ItemBlock(BlockList.copper_ore_end, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.copper_ore_end.getRegistryName()),
  225.                    
  226.                     // LEAD
  227. //                  ItemList.lead_block = new ItemBlock(BlockList.lead_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.lead_block.getRegistryName()),
  228. //                  ItemList.lead_ore = new ItemBlock(BlockList.lead_ore, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.lead_ore.getRegistryName()),
  229. //                 
  230.                     // TIN
  231. //                  ItemList.tin_block = new ItemBlock(BlockList.tin_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.tin_block.getRegistryName()),
  232. //                  ItemList.tin_ore = new ItemBlock(BlockList.tin_ore, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.tin_ore.getRegistryName()),
  233. //                 
  234.                     // STEEL
  235. //                  ItemList.steel_block = new ItemBlock(BlockList.steel_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.steel_block.getRegistryName()),
  236.                     ItemList.reinforced_stone_block = new ItemBlock(BlockList.reinforced_stone_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.reinforced_stone_block.getRegistryName()),
  237.                     ItemList.reinforced_glass_block = new ItemBlock(BlockList.reinforced_glass_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.reinforced_glass_block.getRegistryName())
  238. //                 
  239. //                  // SILVER
  240. //                  ItemList.silver_block = new ItemBlock(BlockList.silver_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.silver_block.getRegistryName()),
  241. //                  ItemList.silver_ore = new ItemBlock(BlockList.silver_ore, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.silver_ore.getRegistryName()),
  242. //                                     
  243.                     // IRIDIUM
  244. //                  ItemList.iridium_block = new ItemBlock(BlockList.iridium_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.iridium_block.getRegistryName()),
  245. //                  ItemList.iridium_ore = new ItemBlock(BlockList.iridium_ore, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.iridium_ore.getRegistryName()),
  246. //                 
  247.                     // NICKEL
  248. //                  ItemList.nickel_block = new ItemBlock(BlockList.nickel_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.nickel_block.getRegistryName()),
  249. //                  ItemList.nickel_ore = new ItemBlock(BlockList.nickel_ore, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.nickel_ore.getRegistryName()),
  250. //                 
  251.                     // PLATINUM
  252. //                  ItemList.platinum_block = new ItemBlock(BlockList.platinum_block, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.platinum_block.getRegistryName()),
  253. //                  ItemList.platinum_ore = new ItemBlock(BlockList.platinum_ore, new Item.Properties().group(grizzlyblocks)).setRegistryName(BlockList.platinum_ore.getRegistryName())
  254.             );
  255.            
  256.            
  257.             logger.info("Items registered.");
  258.         }
  259.                
  260.         @SubscribeEvent
  261.         public static void registerBlocks(final RegistryEvent.Register<Block> event)
  262.         {
  263.             event.getRegistry().registerAll
  264.             (
  265.                 // BLOCKS
  266.                     BlockList.uranium_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(1).sound(SoundType.METAL)).setRegistryName(location("uranium_block")),
  267.                     BlockList.copper_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(0).sound(SoundType.METAL)).setRegistryName(location("copper_block")),
  268.                     BlockList.aluminum_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(0).sound(SoundType.METAL)).setRegistryName(location("aluminum_block")),
  269. //                  BlockList.tin_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(0).sound(SoundType.METAL)).setRegistryName(location("tin_block")),                 
  270. //                  BlockList.lead_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(0).sound(SoundType.METAL)).setRegistryName(location("lead_block")),
  271. //                  BlockList.nickel_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(0).sound(SoundType.METAL)).setRegistryName(location("nickel_block")),
  272. //                  BlockList.platinum_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(0).sound(SoundType.METAL)).setRegistryName(location("platinum_block")),
  273. //                  BlockList.iridium_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(0).sound(SoundType.METAL)).setRegistryName(location("iridium_block")),
  274. //                  BlockList.steel_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0f, 3.0f).lightValue(0).sound(SoundType.METAL)).setRegistryName(location("steel_block")),
  275.                     BlockList.reinforced_stone_block = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(5.0f, 3.0f).lightValue(0).sound(SoundType.STONE)).setRegistryName(location("reinforced_stone_block")),
  276.                     BlockList.reinforced_glass_block = new Block(Block.Properties.create(Material.GLASS).hardnessAndResistance(5.0f, 3.0f).lightValue(0).sound(SoundType.GLASS)).setRegistryName(location("reinforced_glass_block")),
  277.                    
  278.                 // ORES
  279.                     BlockList.uranium_ore = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("uranium_ore")),
  280.                     BlockList.uranium_ore_nether = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("uranium_ore_nether")),
  281.                     BlockList.uranium_ore_end = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("uranium_ore_end")),
  282.                     BlockList.copper_ore = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("copper_ore")),
  283.                     BlockList.copper_ore_nether = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("copper_ore_nether")),
  284.                     BlockList.copper_ore_end = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("copper_ore_end")),
  285.                     BlockList.aluminum_ore = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("aluminum_ore")),
  286.                     BlockList.aluminum_ore_nether = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("aluminum_ore_nether")),
  287.                     BlockList.aluminum_ore_end = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("aluminum_ore_end"))
  288. //                  BlockList.platinum_ore = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("platinum_ore")),
  289. //                  BlockList.tin_ore = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("tin_ore")),
  290. //                  BlockList.platinum_ore = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("platinum_ore")),
  291. //                  BlockList.lead_ore = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("lead_ore")),
  292. //                  BlockList.silver_ore = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("silver_ore")),
  293. //                  BlockList.nickel_ore = new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(2.0f, 3.0f).sound(SoundType.STONE)).setRegistryName(location("nickel_ore"))
  294.                    
  295.             );
  296.            
  297.            
  298.             logger.info("Items registered.");
  299.         }
  300.        
  301.         private static ResourceLocation location(String name)
  302.         {
  303.             return new ResourceLocation(modid, name);
  304.         }
  305.     }
  306. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement