Added Class Files for All Weapons, Orginzied the Main Class a bit.

This commit is contained in:
Zachary Daltorio
2013-09-30 07:01:38 -04:00
parent 17b9644e14
commit 7882420ee3
23 changed files with 114 additions and 36 deletions

14
mcmod.info Normal file
View File

@@ -0,0 +1,14 @@
[{
"modid": "Divine_Equipment",
"name": "Divine Equipment",
"description": "This mod adds Holy and Unholy Equipment as well as Ender Infused Equipment",
"version": "@VERSION@",
"logoFile": "",
"mcversion": "1.6.4",
"url": "https://bitbucket.org/0rthus/divine-weaponary",
"updateUrl": "",
"authors": ["Zackyd666"],
"parent": "",
"screenshots": "",
"dependencies": "mod_MinecraftForge"
}]

View File

@@ -6,16 +6,10 @@ package divine_equipment;
import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.*;
import cpw.mods.fml.common.event.FMLInitializationEvent;
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 divine_equipment.items.*; import divine_equipment.items.*;
import divine_equipment.client.*;
import divine_equipment.common.*;
import net.minecraft.item.EnumArmorMaterial;
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;
@@ -29,8 +23,8 @@ public class Divine_Equipment
@Instance("divine_equipment") @Instance("divine_equipment")
public static Divine_Equipment INSTANCE; public static Divine_Equipment INSTANCE;
@SidedProxy(clientSide = "divine_equipment.client.ClientProxy", serverSide = "divine_equipment.common.CommonProxy") // @SidedProxy(clientSide = "divine_equipment.client.ClientProxy", serverSide = "divine_equipment.common.CommonProxy")
public static CommonProxy proxy; // public static CommonProxy proxy;
public static String imageFolder = "resources/textures"; public static String imageFolder = "resources/textures";
@@ -70,11 +64,11 @@ public class Divine_Equipment
EMERALD(3, 1561, 8.0F, 3, 10), EMERALD(3, 1561, 8.0F, 3, 10),
GOLD(0, 32, 12.0F, 0, 22); GOLD(0, 32, 12.0F, 0, 22);
*/ */
TaintedDiamond = addToolMaterial("Tainted Diamond", 3, 1003, 8.0F, 4, 15); TaintedDiamond = EnumHelper.addToolMaterial("Tainted Diamond", 3, 1003, 8.0F, 4, 15);
TaintedGold = addToolMaterial("Tainted Gold", 2, 20, 12.0F, 0, 27); TaintedGold = EnumHelper.addToolMaterial("Tainted Gold", 2, 20, 12.0F, 0, 27);
TaintedIron = addToolMaterial("Tainted Iron", 2, 75, 6.0F, 3, 19); TaintedIron = EnumHelper.addToolMaterial("Tainted Iron", 2, 75, 6.0F, 3, 19);
TaintedStone = addToolMaterial("Tainted Stone", 1, 88, 4.0F, 0, 10 ); TaintedStone = EnumHelper.addToolMaterial("Tainted Stone", 1, 88, 4.0F, 0, 10 );
TaintedWood = addToolMaterial("Tainted Wood", 0, 40, 2.0F, 0, 20); TaintedWood = EnumHelper.addToolMaterial("Tainted Wood", 0, 40, 2.0F, 0, 20);
// Blessed tool Material Properties (Subject to Change) // Blessed tool Material Properties (Subject to Change)
@@ -85,14 +79,26 @@ public class Divine_Equipment
BlessedWood = addToolMaterial("Blessed Wood", 0, 0, 0F, 0, 0); BlessedWood = addToolMaterial("Blessed Wood", 0, 0, 0F, 0, 0);
//Telling forge that we are creating stuff //Telling forge that we are creating stuff
// Tainted Swords
Item TaintedDiamondSword;{ Item TaintedDiamondSword;{
public void load(FMLInitializationEvent event); //Create Item + Picture
{ TaintedDiamondSword = new TaintedDiamondSword(560, TaintedDiamond).setUnlocalizedName("Tainted_Sword_Diamond");
//Create Item + Picture LanguageRegistry.addName(TaintedDiamondSword, "Tainted Diamond Sword");
TaintedDiamondSword = new TDSword(560, EnumToolMaterial.EMERALD).setUnlocalizedName("Tsword.Diamond"); }
// Names Item TaintedGoldSword;{
LanguageRegistry.addName(TaintedDiamondSword, "Tainted Diamond Sword"); TaintedGoldSword = new TaintedGoldSword(561, TaintedGold).setUnlocalizedName("Tainted_Sword_Gold");
} LanguageRegistry.addName(TaintedGoldSword, "Tainted Gold Sword");
}
Item TaintedIronSword;{
TaintedIronSword = new TaintedIronSword(562, TaintedIron).setUnlocalizedName("Tainted_Sword_Iron");
LanguageRegistry.addName(TaintedIronSword, "Tainted Iron Sword");
}
Item TaintedStoneSword;{
TaintedStoneSword = new TaintedStoneSword(563, TaintedStone).setUnlocalizedName("Tainted_Sword_Stone");
LanguageRegistry.addName(TaintedStoneSword, "Tainted Stone Sword");
}
Item TaintedWoodSword;{}
} }
} }
}

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,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 TaintedGoldSword extends ItemSword {
public TaintedGoldSword(int par1, EnumToolMaterial EMERALD){
super(par1, EMERALD);
setCreativeTab(CreativeTabs.tabCombat);
}
}

View 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/30/13
*/
public class TaintedIronSword extends ItemSword {
public TaintedIronSword(int par1, EnumToolMaterial EMERALD){
super(par1, EMERALD);
setCreativeTab(CreativeTabs.tabCombat);
}
}

View 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/30/13
*/
public class TaintedStoneSword extends ItemSword {
public TaintedStoneSword(int par1, EnumToolMaterial EMERALD){
super(par1, EMERALD);
setCreativeTab(CreativeTabs.tabCombat);
}
}

View File

@@ -1,14 +1,17 @@
[{ [
"modid": "divine_equipment", {
"name": "Divine Equipment", "modid": "divine_equipment",
"description": "This mod adds Holy and Unholy Equipment as well as Ender Infused Equipment", "name": "Divine Equipment",
"version": "@VERSION@", "description": "This mod adds Holy and Unholy Equipment as well as Ender Infused Equipment",
"logoFile": "", "version": "@VERSION@",
"mcversion": "1.6.4", "mcversion": "@MCVERSION",
"url": "https://bitbucket.org/0rthus/divine-weaponary", "url": "https://bitbucket.org/0rthus/divine-weaponary",
"updateUrl": "", "updateUrl": "",
"authors": ["Zackyd666"], "authors": ["Zackyd666"],
"parent": "", "credits": "Test",
"screenshots": "", "logoFile": "",
"dependencies": "mod_MinecraftForge" "parent": "",
}] "screenshots": "[]",
"dependencies": "[]"
}
]

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

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