Advertisement
Guest User

Ore Killer

a guest
Feb 11th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 18.10 KB | None | 0 0
  1. package talonos.cavestokingdoms.items;
  2.  
  3. import java.util.HashSet;
  4. import java.util.Set;
  5.  
  6. import talonos.cavestokingdoms.lib.DEFS;
  7. import thaumcraft.common.config.ConfigBlocks;
  8. import thaumcraft.common.lib.utils.Utils;
  9. import thaumcraft.common.lib.world.ThaumcraftWorldGenerator;
  10. import cpw.mods.fml.common.registry.GameRegistry;
  11. import exterminatorJeff.undergroundBiomes.api.UBAPIHook;
  12. import exterminatorJeff.undergroundBiomes.api.UBStrataColumn;
  13. import exterminatorJeff.undergroundBiomes.api.UBStrataColumnProvider;
  14. import net.minecraft.block.Block;
  15. import net.minecraft.creativetab.CreativeTabs;
  16. import net.minecraft.entity.player.EntityPlayer;
  17. import net.minecraft.init.Blocks;
  18. import net.minecraft.item.Item;
  19. import net.minecraft.item.ItemStack;
  20. import net.minecraft.util.ChatComponentText;
  21. import net.minecraft.world.World;
  22. import net.minecraftforge.common.util.ForgeDirection;
  23.  
  24. public class ItemWorldOreKiller extends Item
  25. {
  26.     static private Set<Block> listOfOres;
  27.    
  28.     private String name = "worldOreKiller";
  29.    
  30.     public ItemWorldOreKiller()
  31.     {
  32.         setUnlocalizedName(DEFS.MODID + "_" + name);
  33.         GameRegistry.registerItem(this, name);
  34.         setCreativeTab(CreativeTabs.tabMaterials);
  35.         setTextureName(DEFS.MODID + ":" + name);
  36.     }
  37.    
  38.     UBStrataColumnProvider p;
  39.    
  40.     @Override
  41.     public ItemStack onItemRightClick(ItemStack itemStack, World theWorld, EntityPlayer thePlayer)
  42.     {
  43.        
  44.         if (!theWorld.isRemote)
  45.         {
  46.             int x = ((int)thePlayer.posX/16)*16;
  47.             int z = ((int)thePlayer.posZ/16)*16;
  48.            
  49.             thePlayer.addChatMessage(new ChatComponentText("Killing ores in world based on coords: "));
  50.             thePlayer.addChatMessage(new ChatComponentText("  xSection: "+x+", zSection: "+z));
  51.            
  52.             if (p == null)
  53.             {
  54.                  p = UBAPIHook.ubAPIHook.dimensionalStrataColumnProvider.ubStrataColumnProvider(0);
  55.             }
  56.            
  57.             if (listOfOres==null)
  58.             {
  59.                     listOfOres = new HashSet<Block>();
  60.                     listOfOres.add(GameRegistry.findBlock("minecraft", "gold_ore"));
  61.                     listOfOres.add(GameRegistry.findBlock("minecraft", "iron_ore"));
  62.                     listOfOres.add(GameRegistry.findBlock("minecraft", "coal_ore"));
  63.                     listOfOres.add(GameRegistry.findBlock("minecraft", "lapis_ore"));
  64.                     listOfOres.add(GameRegistry.findBlock("minecraft", "diamond_ore"));
  65.                     listOfOres.add(GameRegistry.findBlock("minecraft", "redstone_ore"));
  66.                     listOfOres.add(GameRegistry.findBlock("minecraft", "glowstone"));
  67.                     listOfOres.add(GameRegistry.findBlock("minecraft", "emerald_ore"));
  68.                     listOfOres.add(GameRegistry.findBlock("minecraft", "quartz_ore"));
  69.                     listOfOres.add(GameRegistry.findBlock("minecraft", "netherrack"));
  70.                     listOfOres.add(GameRegistry.findBlock("minecraft", "end_stone"));
  71.                     listOfOres.add(GameRegistry.findBlock("appliedenergistics2", "tile.OreQuartz"));
  72.                     listOfOres.add(GameRegistry.findBlock("appliedenergistics2", "tile.OreQuartzCharged"));
  73.                     listOfOres.add(GameRegistry.findBlock("Thaumcraft", "blockCustomOre"));
  74.                     listOfOres.add(GameRegistry.findBlock("ThermalFoundation", "Ore"));
  75.                     listOfOres.add(GameRegistry.findBlock("BigReactors", "YelloriteOre"));
  76.                     listOfOres.add(GameRegistry.findBlock("Metallurgy", "base.ore"));
  77.                     listOfOres.add(GameRegistry.findBlock("Metallurgy", "ender.ore"));
  78.                     listOfOres.add(GameRegistry.findBlock("Metallurgy", "fantasy.ore"));
  79.                     listOfOres.add(GameRegistry.findBlock("Metallurgy", "nether.ore"));
  80.                     listOfOres.add(GameRegistry.findBlock("Metallurgy", "precious.ore"));
  81.                     listOfOres.add(GameRegistry.findBlock("Metallurgy", "utility.ore"));
  82.                     listOfOres.add(GameRegistry.findBlock("NetherOres", "tile.netherores.ore.0"));
  83.                     listOfOres.add(GameRegistry.findBlock("NetherOres", "tile.netherores.ore.1"));
  84.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_oreRedstone"));
  85.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_oreRedstone"));
  86.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_oreRedstone"));
  87.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_oreCoal"));
  88.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_oreCoal"));
  89.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_oreCoal"));
  90.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_oreDiamond"));
  91.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_oreDiamond"));
  92.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_oreDiamond"));
  93.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_oreLapis"));
  94.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_oreLapis"));
  95.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_oreLapis"));
  96.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_oreEmerald"));
  97.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_oreEmerald"));
  98.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_oreEmerald"));
  99.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_oreGold"));
  100.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_oreGold"));
  101.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_oreGold"));
  102.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_blockCustomOre.2"));
  103.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_blockCustomOre.2"));
  104.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_blockCustomOre.2"));
  105.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_oreIron"));
  106.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_oreIron"));
  107.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_oreIron"));
  108.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_blockCustomOre.1"));
  109.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_blockCustomOre.1"));
  110.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_blockCustomOre.1"));
  111.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_blockCustomOre.6"));
  112.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_blockCustomOre.6"));
  113.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_blockCustomOre.6"));
  114.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore"));
  115.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore"));
  116.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore"));
  117.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_appliedenergistics2.OreQuartzCharged.7"));
  118.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_appliedenergistics2.OreQuartzCharged.7"));
  119.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_appliedenergistics2.OreQuartzCharged.7"));
  120.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.2"));
  121.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.2"));
  122.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.2"));
  123.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.14"));
  124.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.14"));
  125.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.14"));
  126.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.5"));
  127.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.5"));
  128.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.5"));
  129.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.utility.ore.3"));
  130.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.utility.ore.3"));
  131.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.utility.ore.3"));
  132.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_blockCustomOre"));
  133.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_blockCustomOre"));
  134.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_blockCustomOre"));
  135.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.utility.ore"));
  136.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.utility.ore"));
  137.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.utility.ore"));
  138.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_thermalfoundation.ore.3"));
  139.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_thermalfoundation.ore.3"));
  140.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_thermalfoundation.ore.3"));
  141.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.6"));
  142.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.6"));
  143.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.6"));
  144.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.13"));
  145.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.13"));
  146.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.13"));
  147.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.base.ore.2"));
  148.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.base.ore.2"));
  149.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.base.ore.2"));
  150.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_thermalfoundation.ore.4"));
  151.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_thermalfoundation.ore.4"));
  152.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_thermalfoundation.ore.4"));
  153.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.utility.ore.1"));
  154.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.utility.ore.1"));
  155.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.utility.ore.1"));
  156.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_blockCustomOre.7"));
  157.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_blockCustomOre.7"));
  158.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_blockCustomOre.7"));
  159.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.7"));
  160.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.7"));
  161.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.7"));
  162.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_blockCustomOre.5"));
  163.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_blockCustomOre.5"));
  164.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_blockCustomOre.5"));
  165.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.precious.ore.1"));
  166.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.precious.ore.1"));
  167.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.precious.ore.1"));
  168.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.precious.ore.2"));
  169.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.precious.ore.2"));
  170.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.precious.ore.2"));
  171.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.11"));
  172.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.11"));
  173.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.11"));
  174.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.utility.ore.5"));
  175.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.utility.ore.5"));
  176.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.utility.ore.5"));
  177.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.precious.ore"));
  178.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.precious.ore"));
  179.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.precious.ore"));
  180.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.1"));
  181.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.1"));
  182.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.1"));
  183.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.utility.ore.2"));
  184.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.utility.ore.2"));
  185.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.utility.ore.2"));
  186.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.utility.ore.4"));
  187.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.utility.ore.4"));
  188.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.utility.ore.4"));
  189.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_appliedenergistics2.OreQuartz.7"));
  190.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_appliedenergistics2.OreQuartz.7"));
  191.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_appliedenergistics2.OreQuartz.7"));
  192.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_blockCustomOre.4"));
  193.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_blockCustomOre.4"));
  194.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_blockCustomOre.4"));
  195.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.8"));
  196.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.8"));
  197.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.8"));
  198.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.fantasy.ore.4"));
  199.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.fantasy.ore.4"));
  200.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.fantasy.ore.4"));
  201.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_netherquartz"));
  202.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_netherquartz"));
  203.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_netherquartz"));
  204.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.base.ore.1"));
  205.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.base.ore.1"));
  206.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.base.ore.1"));
  207.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_blockCustomOre.3"));
  208.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_blockCustomOre.3"));
  209.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_blockCustomOre.3"));
  210.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "igneous_metal.block.base.ore"));
  211.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "metamorphic_metal.block.base.ore"));
  212.                     listOfOres.add(GameRegistry.findBlock("UndergroundBiomes", "sedimentary_metal.block.base.ore"));
  213.             }
  214.            
  215.             for (int xLoc = x-64; xLoc<x+80; xLoc++)
  216.             {
  217.                 for (int zLoc = z-64; zLoc<z+80; zLoc++)
  218.                 {
  219.                     UBStrataColumn s = p.strataColumn(xLoc, zLoc);
  220.                     for (int yLoc = 254; yLoc > 1; yLoc--)
  221.                     {
  222.                         if (theWorld.getBlock(xLoc, yLoc, zLoc).equals(Blocks.sand)&&
  223.                             !theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(Blocks.air)&&
  224.                             !theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(Blocks.water)&&
  225.                             !theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(Blocks.flowing_water)&&
  226.                             !theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(Blocks.sand)&&
  227.                             !theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(Blocks.cactus)&&
  228.                             !theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(Blocks.deadbush)&&
  229.                             !theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(Blocks.glass)&&
  230.                             !theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(Blocks.sandstone)&&
  231.                             !theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(ConfigBlocks.blockTaintFibres))
  232.                         {
  233.                             theWorld.setBlock(xLoc, yLoc, zLoc, Blocks.stone);
  234.                         }
  235.                         if (theWorld.getBlock(xLoc, yLoc, zLoc).equals(Blocks.sandstone)&&
  236.                             theWorld.getBlock(xLoc, yLoc+1, zLoc).equals(Blocks.stone))
  237.                         {
  238.                             theWorld.setBlock(xLoc, yLoc, zLoc, Blocks.stone);
  239.                         }
  240.                         if (listOfOres.contains(theWorld.getBlock(xLoc, yLoc, zLoc)))
  241.                         {
  242.                             theWorld.setBlock(xLoc, yLoc, zLoc, s.stone(yLoc).block, s.stone(yLoc).metadata, 2);
  243.                         }
  244.                     }
  245.                 }
  246.             }
  247.            
  248.             thePlayer.addChatMessage(new ChatComponentText("  ores should be dead."));
  249.            
  250.  
  251.         }
  252.        
  253.         return itemStack;
  254.     }
  255. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement