Added Tainted Stone Block, Added placeholder texture for Tainted Stone Block as well as added working placeholder textures for testing prior to compile.

This commit is contained in:
Zachary Daltorio
2013-10-01 23:26:36 -04:00
parent ce1b884d89
commit 5cce96c8e1
13 changed files with 42 additions and 9 deletions

View File

@@ -7,16 +7,25 @@
import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry; import cpw.mods.fml.common.registry.LanguageRegistry;
import items.*; import items.*;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.EnumHelper;
import blocks.*;
@Mod(modid = "divine_equipment", name = "Divine Equipment",version = "V0.5") @Mod(modid = "divine_equipment", name = "Divine Equipment",version = "V0.5")
@NetworkMod(clientSideRequired = true, serverSideRequired = false, channels = { "DEquipment" }) @NetworkMod(clientSideRequired = true, serverSideRequired = false, channels = { "DEquipment" })
public class Divine_Equipment public class Divine_Equipment
{ {
public static final String modid = "divine_equipment";
public static Block taintedstone;
@Instance("Divine_Equipment") @Instance("Divine_Equipment")
public static Divine_Equipment INSTANCE; public static Divine_Equipment INSTANCE;
@@ -30,7 +39,7 @@ public class Divine_Equipment
// Init All Tainted materials // Init All Tainted materials
EnumToolMaterial TaintedDiamond; EnumToolMaterial TaintedDiamond;
EnumToolMaterial TaintedGold; EnumToolMaterial TaintedGold;
EnumToolMaterial TaintedIron; EnumToolMaterial TaintedIron = EnumHelper.addToolMaterial("Tainted Iron", 2, 75, 6.0F, 3, 19);
EnumToolMaterial TaintedStone; EnumToolMaterial TaintedStone;
EnumToolMaterial TaintedWood; EnumToolMaterial TaintedWood;
@@ -49,8 +58,9 @@ public class Divine_Equipment
@Mod.EventHandler @Mod.EventHandler
public void preInit(FMLPreInitializationEvent event){ public void preInit(FMLPreInitializationEvent event){
taintedstone = new TaintedRock(2550, Material.rock).setUnlocalizedName("Tainted Stone");
GameRegistry.registerBlock(taintedstone, modid+ taintedstone.getUnlocalizedName().substring(5));
LanguageRegistry.addName(taintedstone, "Tainted Stone");
// Tainted Tool Material Properties (Subject to Change) // Tainted Tool Material Properties (Subject to Change)
// Name, Harvest Level, Uses, Dig Speed, Damage, Enchantablity // Name, Harvest Level, Uses, Dig Speed, Damage, Enchantablity
/* /*
@@ -63,7 +73,6 @@ public class Divine_Equipment
*/ */
TaintedDiamond = EnumHelper.addToolMaterial("Tainted Diamond", 3, 1003, 8.0F, 4, 15); TaintedDiamond = EnumHelper.addToolMaterial("Tainted Diamond", 3, 1003, 8.0F, 4, 15);
TaintedGold = EnumHelper.addToolMaterial("Tainted Gold", 2, 20, 12.0F, 0, 27); TaintedGold = EnumHelper.addToolMaterial("Tainted Gold", 2, 20, 12.0F, 0, 27);
TaintedIron = EnumHelper.addToolMaterial("Tainted Iron", 2, 75, 6.0F, 3, 19);
TaintedStone = EnumHelper.addToolMaterial("Tainted Stone", 1, 88, 4.0F, 0, 10 ); TaintedStone = EnumHelper.addToolMaterial("Tainted Stone", 1, 88, 4.0F, 0, 10 );
TaintedWood = EnumHelper.addToolMaterial("Tainted Wood", 0, 40, 2.0F, 0, 20); TaintedWood = EnumHelper.addToolMaterial("Tainted Wood", 0, 40, 2.0F, 0, 20);
@@ -76,8 +85,7 @@ public class Divine_Equipment
BlessedWood = EnumHelper.addToolMaterial("Blessed Wood", 0, 59, 4.0F, 0, 15); BlessedWood = EnumHelper.addToolMaterial("Blessed Wood", 0, 59, 4.0F, 0, 15);
//Telling forge that we are creating stuff //Telling forge that we are creating stuff
// Tainted Swords
// Tainted Swords
Item TaintedDiamondSword;{ Item TaintedDiamondSword;{
//Create Item + Picture //Create Item + Picture
TaintedDiamondSword = new TaintedDiamondSword(2560, TaintedDiamond).setUnlocalizedName("Tainted_Sword_Diamond").setTextureName("divine_equipment:Tainted_Sword_Diamond"); TaintedDiamondSword = new TaintedDiamondSword(2560, TaintedDiamond).setUnlocalizedName("Tainted_Sword_Diamond").setTextureName("divine_equipment:Tainted_Sword_Diamond");
@@ -96,7 +104,6 @@ public class Divine_Equipment
LanguageRegistry.addName(TaintedStoneSword, "Tainted Stone Sword"); LanguageRegistry.addName(TaintedStoneSword, "Tainted Stone Sword");
} }
// Item TaintedWoodSword;{} // Item TaintedWoodSword;{}
// Blessed Swords // Blessed Swords
Item BlessedDiamondSword;{ Item BlessedDiamondSword;{
//Create Item + Picture //Create Item + Picture

Binary file not shown.

After

Width:  |  Height:  |  Size: 818 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

View File

@@ -0,0 +1 @@
These texture files are currently place holders.

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

View File

@@ -0,0 +1,25 @@
package blocks;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
/**
* User: Orthus
* Date: 10/1/13
*/
public class TaintedRock extends Block {
public TaintedRock (int par1, Material TaintedRock)
{
super(par1, TaintedRock);
setHardness(1.0F);
setStepSound(Block.soundStoneFootstep);
setUnlocalizedName("Tainted Stone");
setCreativeTab(CreativeTabs.tabBlock);
setTextureName("divine_equipment:Tainted_Stone");
}
}

View File

@@ -9,8 +9,8 @@ import net.minecraft.item.ItemSword;
* Date: 9/30/13 * Date: 9/30/13
*/ */
public class BlessedDiamondSword extends ItemSword { public class BlessedDiamondSword extends ItemSword {
public BlessedDiamondSword(int par1, EnumToolMaterial par2){ public BlessedDiamondSword(int id, EnumToolMaterial material){
super(par1, par2); super(id, material);
setCreativeTab(CreativeTabs.tabCombat); setCreativeTab(CreativeTabs.tabCombat);
} }
} }