Permalink
Browse files

Silicon ore now drops 1 silicon + up to 3 additional pieces at random.

  • Loading branch information...
Ri5ux committed Dec 28, 2018
1 parent afd90e1 commit c7662b3275021185ab576784d8515bb24c820c68
Showing with 35 additions and 1 deletion.
  1. +2 −1 src/main/java/org/avp/BlockHandler.java
  2. +33 −0 src/main/java/org/avp/block/BlockOreSilicon.java
@@ -24,6 +24,7 @@
import org.avp.block.BlockNetworkRack;
import org.avp.block.BlockOreCobalt;
import org.avp.block.BlockOreMonazite;
import org.avp.block.BlockOreSilicon;
import org.avp.block.BlockParadiseLog;
import org.avp.block.BlockParadiseTreeLeaves;
import org.avp.block.BlockPortal;
@@ -133,7 +134,7 @@
public static final Block paddingpanel = new BlockMaterial(Material.CLOTH).setHardness(10F).setResistance(15.0F).setLightOpacity(0).setRegistryName("paddingpanel");
public static final Block plastictri = new BlockMaterial(Material.CLAY).setHardness(10F).setResistance(15.0F).setLightOpacity(0).setRegistryName("plastictiletri");
public static final Block plastictile = new BlockMaterial(Material.CLAY).setHardness(10F).setResistance(15.0F).setLightOpacity(0).setRegistryName("plastictile");
public static final Block oreSilicon = new BlockMaterial(Material.ROCK).setHardness(2.2F).setResistance(1.4F).setCreativeTab(Tab.MAIN).setRegistryName("oresilicon");
public static final Block oreSilicon = new BlockOreSilicon().setHardness(2.2F).setResistance(1.4F).setCreativeTab(Tab.MAIN).setRegistryName("oresilicon");
public static final Block oreLithium = new BlockMaterial(Material.IRON).setHardness(4.2F).setResistance(5.4F).setCreativeTab(Tab.MAIN).setRegistryName("orelithium");
public static final Block oreCopper = new BlockMaterial(Material.IRON).setHardness(3.2F).setResistance(2.6F).setCreativeTab(Tab.MAIN).setRegistryName("orecopper");
public static final Block oreBauxite = new BlockMaterial(Material.IRON).setHardness(3.2F).setResistance(2.6F).setCreativeTab(Tab.MAIN).setRegistryName("orebauxite");
@@ -0,0 +1,33 @@
package org.avp.block;

import java.util.Random;

import org.avp.AliensVsPredator;

import com.arisux.mdx.lib.world.block.BlockMaterial;

import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;

public class BlockOreSilicon extends BlockMaterial
{
public BlockOreSilicon()
{
super(Material.ROCK);
this.setHardness(50F);
this.setResistance(20F);
}

@Override
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
return AliensVsPredator.items().itemSilicon;
}

@Override
public int quantityDropped(IBlockState state, int fortune, Random random)
{
return 1 + fortune + random.nextInt(3);
}
}

0 comments on commit c7662b3

Please sign in to comment.