package rewbot.minecraft.tutorial.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import rewbot.minecraft.tutorial.MmaGlobal;

/**
 * Created by ashepherd on 5/12/2016.
 */
public class AdventureBlock extends Block {

    public AdventureBlock(String unlocalizedName, Material material, float hardness, float resistance) {
        super(material);

        this.setUnlocalizedName(unlocalizedName);
        this.setHardness(hardness);
        this.setResistance(resistance);
        setCreativeTab(MmaGlobal.mmaCreativeTab);
    }
}

@@ -120,16 +120,63 @@
 erial;%0D%0A
+import net.minecraft.block.state.IBlockState;%0D%0A
 import n
@@ -215,16 +215,49 @@
 eTabs;%0D%0A
+import net.minecraft.item.Item;%0D%0A
 import r
@@ -292,16 +292,100 @@
 Global;%0D
+%0Aimport rewbot.minecraft.tutorial.items.AdventureItems;%0D%0A%0D%0Aimport java.util.Random;%0D
 %0A%0D%0A/**%0D%0A
@@ -795,12 +795,340 @@
 %0D%0A    %7D%0D
+%0A%0D%0A    public Item getItemDropped(IBlockState state, Random rand, int fortune) %7B%0D%0A        return this == AdventureBlocks.topazOre ? AdventureItems.topazStone : Item.getItemFromBlock(this);%0D%0A    %7D%0D%0A%0D%0A    public int quantityDropped(Random rand) %7B%0D%0A        return this == AdventureBlocks.topazOre ? 1 + rand.nextInt(5) : 1;%0D%0A    %7D%0D
 %0A%7D%0D%0A

Drop random number of topaz stones on topaz ore break