Added Tainted Stone Block, Added placeholder texture for Tainted Stone Block as well as added working placeholder textures for testing prior to compile.
@@ -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
|
||||||
|
|||||||
|
After Width: | Height: | Size: 818 B |
|
After Width: | Height: | Size: 446 B |
|
After Width: | Height: | Size: 513 B |
|
After Width: | Height: | Size: 469 B |
|
After Width: | Height: | Size: 504 B |
@@ -0,0 +1 @@
|
|||||||
|
These texture files are currently place holders.
|
||||||
|
After Width: | Height: | Size: 503 B |
|
After Width: | Height: | Size: 467 B |
|
After Width: | Height: | Size: 460 B |
|
After Width: | Height: | Size: 474 B |
25
src/divine_equipment/blocks/TaintedRock.java
Normal 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");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||