Added Blessed Weapon Classes, Weapons also Spawnable in-game now.
This commit is contained in:
@@ -9,6 +9,8 @@ package divine_equipment;
|
|||||||
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.LanguageRegistry;
|
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import divine_equipment.items.*;
|
import divine_equipment.items.*;
|
||||||
import net.minecraft.item.EnumToolMaterial;
|
import net.minecraft.item.EnumToolMaterial;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
@@ -72,33 +74,50 @@ public class Divine_Equipment
|
|||||||
|
|
||||||
// Blessed tool Material Properties (Subject to Change)
|
// Blessed tool Material Properties (Subject to Change)
|
||||||
|
|
||||||
BlessedDiamond = addToolMaterial("Blessed Diamond", 3, 2029, 10.0F, 3, 10);
|
BlessedDiamond = EnumHelper.addToolMaterial("Blessed Diamond", 3, 2029, 10.0F, 3, 10);
|
||||||
BlessedGold = addToolMaterial("Blessed Gold", 0, 0, 0F, 0, 0);
|
BlessedGold = EnumHelper.addToolMaterial("Blessed Gold", 0, 0, 0F, 0, 0);
|
||||||
BlessedIron = addToolMaterial("Blessed Iron", 0, 0, 0F, 0, 0);
|
BlessedIron = EnumHelper.addToolMaterial("Blessed Iron", 0, 0, 0F, 0, 0);
|
||||||
BlessedStone = addToolMaterial("Blessed Stone", 0, 0, 0F, 0, 0);
|
BlessedStone = EnumHelper.addToolMaterial("Blessed Stone", 0, 0, 0F, 0, 0);
|
||||||
BlessedWood = addToolMaterial("Blessed Wood", 0, 0, 0F, 0, 0);
|
BlessedWood = EnumHelper.addToolMaterial("Blessed Wood", 0, 0, 0F, 0, 0);
|
||||||
|
|
||||||
//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(560, TaintedDiamond).setUnlocalizedName("Tainted_Sword_Diamond");
|
TaintedDiamondSword = new TaintedDiamondSword(560, TaintedDiamond).setUnlocalizedName("Tainted_Sword_Diamond").setTextureName("divine_equipment:Tainted_Sword_Diamond");
|
||||||
LanguageRegistry.addName(TaintedDiamondSword, "Tainted Diamond Sword");
|
LanguageRegistry.addName(TaintedDiamondSword, "Tainted Diamond Sword");
|
||||||
}
|
}
|
||||||
Item TaintedGoldSword;{
|
Item TaintedGoldSword;{
|
||||||
TaintedGoldSword = new TaintedGoldSword(561, TaintedGold).setUnlocalizedName("Tainted_Sword_Gold");
|
TaintedGoldSword = new TaintedGoldSword(561, TaintedGold).setUnlocalizedName("Tainted_Sword_Gold").setTextureName("divine_equipment:Tainted_Sword_Gold");
|
||||||
LanguageRegistry.addName(TaintedGoldSword, "Tainted Gold Sword");
|
LanguageRegistry.addName(TaintedGoldSword, "Tainted Gold Sword");
|
||||||
}
|
}
|
||||||
Item TaintedIronSword;{
|
Item TaintedIronSword;{
|
||||||
TaintedIronSword = new TaintedIronSword(562, TaintedIron).setUnlocalizedName("Tainted_Sword_Iron");
|
TaintedIronSword = new TaintedIronSword(562, TaintedIron).setUnlocalizedName("Tainted_Sword_Iron").setTextureName("divine_equipment:Tainted_Sword_Iron");
|
||||||
LanguageRegistry.addName(TaintedIronSword, "Tainted Iron Sword");
|
LanguageRegistry.addName(TaintedIronSword, "Tainted Iron Sword");
|
||||||
}
|
}
|
||||||
Item TaintedStoneSword;{
|
Item TaintedStoneSword;{
|
||||||
TaintedStoneSword = new TaintedStoneSword(563, TaintedStone).setUnlocalizedName("Tainted_Sword_Stone");
|
TaintedStoneSword = new TaintedStoneSword(563, TaintedStone).setUnlocalizedName("Tainted_Sword_Stone").setTextureName("divine_equipment:Tainted_Sword_Stone");
|
||||||
LanguageRegistry.addName(TaintedStoneSword, "Tainted Stone Sword");
|
LanguageRegistry.addName(TaintedStoneSword, "Tainted Stone Sword");
|
||||||
}
|
}
|
||||||
// Item TaintedWoodSword;{}
|
// Item TaintedWoodSword;{}
|
||||||
|
|
||||||
}
|
// Blessed Swords
|
||||||
}
|
Item BlessedDiamondSword;{
|
||||||
|
//Create Item + Picture
|
||||||
|
BlessedDiamondSword = new BlessedDiamondSword(555, BlessedDiamond).setUnlocalizedName("Blessed_Sword_Diamond").setTextureName("divine_equipment:Blessed_Sword_Diamond");
|
||||||
|
LanguageRegistry.addName(BlessedDiamondSword, "Blessed Diamond Sword");
|
||||||
|
}
|
||||||
|
Item BlessedGoldSword;{
|
||||||
|
BlessedGoldSword = new BlessedGoldSword(556, BlessedGold).setUnlocalizedName("Blessed_Sword_Gold").setTextureName("divine_equipment:Blessed_Sword_Gold");
|
||||||
|
LanguageRegistry.addName(BlessedGoldSword, "Blessed Gold Sword");
|
||||||
|
}
|
||||||
|
Item BlessedIronSword;{
|
||||||
|
BlessedIronSword = new BlessedIronSword(557, BlessedIron).setUnlocalizedName("Blessed_Sword_Iron").setTextureName("divine_equipment:Blessed_Sword_Iron");
|
||||||
|
LanguageRegistry.addName(BlessedIronSword, "Blessed Iron Sword");
|
||||||
|
}
|
||||||
|
Item BlessedStoneSword;{
|
||||||
|
BlessedStoneSword = new BlessedStoneSword(558, BlessedStone).setUnlocalizedName("Blessed_Sword_Stone").setTextureName("divine_equipment:Blessed_Sword_Stone");
|
||||||
|
LanguageRegistry.addName(BlessedStoneSword, "Blessed Stone Sword");
|
||||||
|
|
||||||
|
}}}
|
||||||
16
src/divine_equipment/items/BlessedDiamondSword.java
Normal file
16
src/divine_equipment/items/BlessedDiamondSword.java
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
package divine_equipment.items;
|
||||||
|
|
||||||
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
import net.minecraft.item.EnumToolMaterial;
|
||||||
|
import net.minecraft.item.ItemSword;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User: Orthus
|
||||||
|
* Date: 9/30/13
|
||||||
|
*/
|
||||||
|
public class BlessedDiamondSword extends ItemSword {
|
||||||
|
public BlessedDiamondSword(int par1, EnumToolMaterial par2){
|
||||||
|
super(par1, par2);
|
||||||
|
setCreativeTab(CreativeTabs.tabCombat);
|
||||||
|
}
|
||||||
|
}
|
||||||
16
src/divine_equipment/items/BlessedGoldSword.java
Normal file
16
src/divine_equipment/items/BlessedGoldSword.java
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
package divine_equipment.items;
|
||||||
|
|
||||||
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
import net.minecraft.item.EnumToolMaterial;
|
||||||
|
import net.minecraft.item.ItemSword;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User: Orthus
|
||||||
|
* Date: 9/30/13
|
||||||
|
*/
|
||||||
|
public class BlessedGoldSword extends ItemSword {
|
||||||
|
public BlessedGoldSword(int par1, EnumToolMaterial par2){
|
||||||
|
super(par1, par2);
|
||||||
|
setCreativeTab(CreativeTabs.tabCombat);
|
||||||
|
}
|
||||||
|
}
|
||||||
16
src/divine_equipment/items/BlessedIronSword.java
Normal file
16
src/divine_equipment/items/BlessedIronSword.java
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
package divine_equipment.items;
|
||||||
|
|
||||||
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
import net.minecraft.item.EnumToolMaterial;
|
||||||
|
import net.minecraft.item.ItemSword;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User: Orthus
|
||||||
|
* Date: 9/30/13
|
||||||
|
*/
|
||||||
|
public class BlessedIronSword extends ItemSword {
|
||||||
|
public BlessedIronSword(int par1, EnumToolMaterial par2){
|
||||||
|
super(par1, par2);
|
||||||
|
setCreativeTab(CreativeTabs.tabCombat);
|
||||||
|
}
|
||||||
|
}
|
||||||
18
src/divine_equipment/items/BlessedStoneSword.java
Normal file
18
src/divine_equipment/items/BlessedStoneSword.java
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
package divine_equipment.items;
|
||||||
|
|
||||||
|
import net.minecraft.item.EnumToolMaterial;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import cpw.mods.fml.relauncher.*;
|
||||||
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
import net.minecraft.item.ItemSword;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User: Orthus
|
||||||
|
* Date: 9/29/13
|
||||||
|
*/
|
||||||
|
public class BlessedStoneSword extends ItemSword {
|
||||||
|
public BlessedStoneSword(int par1, EnumToolMaterial par2){
|
||||||
|
super(par1, par2);
|
||||||
|
setCreativeTab(CreativeTabs.tabCombat);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user