Permalink
Browse files

Added cobal, monazite, neodymium and their respective items.

  • Loading branch information...
Ri5ux committed Dec 18, 2017
1 parent 256e35b commit f06bbee88ee13c7fbceb77c9cca229b4fa42a875
@@ -27,7 +27,9 @@
import org.avp.block.BlockRedstoneSensor;
import org.avp.block.BlockReflective;
import org.avp.block.BlockSatelliteDish;
import org.avp.block.BlockSatelliteModem;
import org.avp.block.BlockNetworkRack;
import org.avp.block.BlockOreCobalt;
import org.avp.block.BlockOreMonazite;
import org.avp.block.BlockSevastopolBlastDoor;
import org.avp.block.BlockSolarPanel;
import org.avp.block.BlockStalagmite;
@@ -109,6 +111,8 @@
public Block oreLithium = new BlockMaterial(Material.IRON).setHardness(4.2F).setResistance(5.4F);
public Block oreCopper = new BlockMaterial(Material.IRON).setHardness(3.2F).setResistance(2.6F);
public Block oreBauxite = new BlockMaterial(Material.IRON).setHardness(3.2F).setResistance(2.6F);
public Block oreMonazite = new BlockOreMonazite();
public Block oreCobalt = new BlockOreCobalt();
public Block muthurPanel1 = new BlockMaterial(Material.IRON).setHardness(5F).setResistance(1F).setLightLevel(0.5F);
public Block muthurPanel2 = new BlockMaterial(Material.IRON).setHardness(5F).setResistance(10F).setLightLevel(0.5F);
public Block vent0 = new BlockMaterial(Material.IRON).setHardness(5F).setResistance(15.0F).setLightOpacity(0);
@@ -162,7 +166,7 @@
public Block cryoTube = new BlockCryostasisTube(Material.IRON).setHardness(10F).setResistance(15.0F).setLightOpacity(4);
public Block lightPanel = new BlockLightPanel(Material.IRON).setHardness(1.5F).setResistance(2.0F);
public Block ccflTube = new BlockCCFLTube(Material.IRON).setHardness(0.5F).setResistance(1.0F);
public Block satelliteModem = new BlockSatelliteModem(Material.IRON).setHardness(3.2F).setResistance(2.6F);
public Block networkRack = new BlockNetworkRack(Material.IRON).setHardness(3.2F).setResistance(2.6F);
public Block powercell = new BlockPowercell(Material.IRON).setHardness(3.2F).setResistance(2.6F);
public Block redstoneSensor = new BlockRedstoneSensor(Material.IRON).setHardness(3.2F).setResistance(2.6F);
public Block redstoneEmitter = new BlockRedstoneEmitter(Material.IRON).setHardness(3.2F).setResistance(2.6F);
@@ -224,12 +228,14 @@ private void register()
register("unitree.leaves", gigerLeaves).setCreativeTab(AliensVsPredator.tabMain());
register("unitree.sapling", gigerSapling).setCreativeTab(AliensVsPredator.tabMain());
register("stalagmite", stalagmite).setCreativeTab(AliensVsPredator.tabMain());
register("oresilicon", oreSilicon).setCreativeTab(AliensVsPredator.tabMain());
register("orecopper", oreCopper).setCreativeTab(AliensVsPredator.tabMain());
register("orelithium", oreLithium).setCreativeTab(AliensVsPredator.tabMain());
register("orebauxite", oreBauxite).setCreativeTab(AliensVsPredator.tabMain());
register("oresilicon", oreSilicon).setCreativeTab(AliensVsPredator.tabSurvivalResources());
register("orecopper", oreCopper).setCreativeTab(AliensVsPredator.tabSurvivalResources());
register("orelithium", oreLithium).setCreativeTab(AliensVsPredator.tabSurvivalResources());
register("orebauxite", oreBauxite).setCreativeTab(AliensVsPredator.tabSurvivalResources());
register("oremonazite", oreMonazite).setCreativeTab(AliensVsPredator.tabSurvivalResources());
register("orecobalt", oreCobalt).setCreativeTab(AliensVsPredator.tabSurvivalResources());
register("solarpanel", solarPanel).setCreativeTab(AliensVsPredator.tabMain());
register("satellitemodem", satelliteModem).setCreativeTab(AliensVsPredator.tabMain());
register("networkrack", networkRack).setCreativeTab(AliensVsPredator.tabMain());
register("satellitedish", satelliteDish).setCreativeTab(AliensVsPredator.tabMain());
register("powercell", powercell).setCreativeTab(AliensVsPredator.tabMain());
register("transformer", transformer).setCreativeTab(AliensVsPredator.tabMain());

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -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 BlockOreCobalt extends BlockMaterial
{
public BlockOreCobalt()
{
super(Material.IRON);
this.setHardness(50F);
this.setResistance(20F);
}
@Override
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
return AliensVsPredator.items().cobalt;
}
@Override
public int quantityDropped(IBlockState state, int fortune, Random random)
{
return 1 + fortune;
}
}
@@ -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 BlockOreMonazite extends BlockMaterial
{
public BlockOreMonazite()
{
super(Material.IRON);
this.setHardness(45F);
this.setResistance(15F);
}
@Override
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
return AliensVsPredator.items().neodymium;
}
@Override
public int quantityDropped(IBlockState state, int fortune, Random random)
{
return (1 + random.nextInt(2)) + fortune;
}
}
@@ -0,0 +1,16 @@
{
"forge_marker": 1,
"defaults": {
"textures": {
"all": "avp:blocks/orecobalt"
}
},
"variants": {
"normal": [{
"model": "cube_all"
}],
"inventory": [{
"model": "cube_all"
}]
}
}
@@ -0,0 +1,16 @@
{
"forge_marker": 1,
"defaults": {
"textures": {
"all": "avp:blocks/oremonazite"
}
},
"variants": {
"normal": [{
"model": "cube_all"
}],
"inventory": [{
"model": "cube_all"
}]
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit f06bbee

Please sign in to comment.