Commit 944f35e6 authored by Dennis Bonke's avatar Dennis Bonke

Added nether star block.

Signed-off-by: Dennis Bonke's avatarDennisbonke <dennisb@kabelfoon.net>
parent 49296db0
package com.advancedmods.advancedtools.common.block;
import com.advancedmods.advancedtools.AdvancedTools;
import com.advancedmods.advancedtools.common.generic.ATBlock;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.world.IBlockAccess;
public class BlockNetherStar extends ATBlock {
public BlockNetherStar() {
super(Material.iron);
this.setCreativeTab(AdvancedTools.tabMaterials);
setHardness(5.0F);
setStepSound(Block.soundTypeMetal);
//this.setBlockTextureName("advancedtools:blockNetherStar");
}
@Override
public boolean isBeaconBase(IBlockAccess worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ) {
return true;
}
}
......@@ -17,10 +17,10 @@ public class ATBlock extends Block {
super(material);
}
public ATBlock()
{
this(Material.rock);
}
//public ATBlock()
//{
// this(Material.rock);
//}
@Override
public String getUnlocalizedName()
......
package com.advancedmods.advancedtools.core;
import com.advancedmods.advancedtools.common.block.BlockNetherStar;
import com.advancedmods.advancedtools.common.items.armor.EmeraldArmor;
import com.advancedmods.advancedtools.common.items.tools.ingot.BoneIngot;
import com.advancedmods.advancedtools.common.items.tools.ingot.CopperIngot;
......@@ -9,6 +10,7 @@ import com.advancedmods.advancedtools.common.items.tools.ingot.LapisIngot;
import com.advancedmods.advancedtools.common.items.tools.ingot.NetherionIngot;
import com.advancedmods.advancedtools.common.items.tools.ingot.RedstoneIngot;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
......@@ -44,6 +46,10 @@ public class ATRegistry {
public static Item.ToolMaterial copper = EnumHelper.addToolMaterial("Copper", 2, 400, 6.5f, 3.0f, 15);
public static ItemArmor.ArmorMaterial copperArmor = EnumHelper.addArmorMaterial("Copper", 22, new int[] { 2, 5, 3, 2 }, 13);
// Blocks
// Nether star
public static Block blockNetherStar = new BlockNetherStar();
// Items
// Bone
// TODO: Playtest material values.
......@@ -182,6 +188,10 @@ public class ATRegistry {
public static void registerItemsAndBlocks() {
// Blocks
// Nether star
GameRegistry.registerBlock(blockNetherStar, "netherstarblock");
// Items
// Ingots
// TODO: Make Textures for remaining Ingots before being re-enabled.
......@@ -346,6 +356,7 @@ public class ATRegistry {
OreDictionary.registerOre("ingotFlint", new ItemStack(flintIngot));
OreDictionary.registerOre("ingotLapis", new ItemStack(lapisIngot));
OreDictionary.registerOre("ingotNetherion", new ItemStack(netherionIngot));
OreDictionary.registerOre("blockNetherStar", new ItemStack(blockNetherStar));
// Nuggets
//OreDictionary.registerOre("nuggetEnderion", new ItemStack(ModItems.enderionNugget));
......@@ -359,10 +370,15 @@ public class ATRegistry {
// Materials
OreDictionary.registerOre("materialEnderPearl", new ItemStack(Items.ender_pearl));
OreDictionary.registerOre("materialNetherStar", new ItemStack(Items.nether_star));
}
public static void registerRecipes() {
// Blocks
// Nether star
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockNetherStar), "sss", "sss", "sss", 's', "materialNetherStar"));
// Armor
// Emerald
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(emeraldHelmet), "eee", "e e", " ", 'e', "gemEmerald"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment