prepping for update

This commit is contained in:
Mohammad-Ali Minaie
2017-06-25 16:29:51 -04:00
parent 69b25b37ff
commit 0189c176df
7 changed files with 50 additions and 19 deletions

View File

@@ -6,7 +6,7 @@ To-Dos
*** Current Feature ***
- [x] BlockBreaker Support for copper dust and tin dust
- [x] picking up raw bronze crucible returns some other shit
- [ ] Tool breaking should return tool head
- [x] Tool breaking should return tool head
*** Feature Musket ***
- [ ] Create powder charge item (copper, charcoal, gunpowder)

View File

@@ -21,6 +21,10 @@ public class ModDictionary {/***************************************************
//OreDictionary.registerOre("clayball", Items.CLAY_BALL);
OreDictionary.registerOre("ingotIron", ModBlocks.ironball);
OreDictionary.registerOre("nuggetIron", ModBlocks.ironchunk);
OreDictionary.registerOre("ingotIron", ModBlocks.ironcleanball);
OreDictionary.registerOre("nuggetIron", ModBlocks.ironcleanchunk);
OreDictionary.registerOre("ingotSteel", ModBlocks.steelball);
OreDictionary.registerOre("nuggetSteel", ModBlocks.steelchunk);

View File

@@ -929,11 +929,12 @@ public class ModCrafting {
empty,empty,hotChunk,empty,empty,
empty,hotChunk,hotChunk,hotChunk,empty,
empty,empty,hotChunk,empty,empty },
new ItemStack(ModItems.ironsword, 1),
new ItemStack(ModItems.wroughtirongladius, 1),
"null"
);
/*** Temp Clean Iron Sword ***/
AnvilCrafting.addRecipe(
//TODO uncomment this
/*AnvilCrafting.addRecipe(
new String[] {
empty,empty,empty,empty,empty,
empty,empty,hotCleanChunk,empty,empty,
@@ -942,9 +943,9 @@ public class ModCrafting {
empty,empty,hotCleanChunk,empty,empty },
new ItemStack(ModItems.cleanironsword, 1),
"null"
);
);*/
/*** Temp Steel Sword ***/
AnvilCrafting.addRecipe(
/*AnvilCrafting.addRecipe(
new String[] {
empty,empty,empty,empty,empty,
empty,empty,hotSteelChunk,empty,empty,
@@ -953,7 +954,7 @@ public class ModCrafting {
empty,empty,hotSteelChunk,empty,empty },
new ItemStack(ModItems.steelsword, 1),
"null"
);
);*/
/*** Flaked emerald ***/
AnvilCrafting.addRecipe(

View File

@@ -103,10 +103,10 @@ public class ModItems {
public static Item wootzhoe;
public static Item bronzegladius;
public static Item ironsword;
public static Item cleanironsword;
public static Item steelsword;
public static Item wootzsword;
public static Item wroughtirongladius;
//public static Item cleanironsword;
//public static Item steelsword;
//public static Item wootzsword;
public static Item wroughtironshield;
//public static Item cleanironshield;
@@ -195,11 +195,11 @@ public class ModItems {
/**********
WEAPONS
**********/
bronzegladius = new CustomSword("bronzegladius", PrimalMaterials.TOOL_BRONZE);
ironsword = new CustomSword("ironsword", PrimalMaterials.TOOL_WROUGHT_IRON);
cleanironsword = new CustomSword("ironsword", PrimalMaterials.TOOL_CLEAN_IRON);
steelsword = new CustomSword("ironsword", PrimalMaterials.TOOL_BASIC_STEEL);
wootzsword = new CustomSword("ironsword", PrimalMaterials.TOOL_WOOTZ_STEEL);
bronzegladius = new CustomSword("bronzegladius", PrimalMaterials.TOOL_BRONZE, 5D, 1D);
wroughtirongladius = new CustomSword("wroughtirongladius", PrimalMaterials.TOOL_WROUGHT_IRON, 4.5D, 3D);
//cleanironsword = new CustomSword("ironsword", PrimalMaterials.TOOL_CLEAN_IRON);
//steelsword = new CustomSword("ironsword", PrimalMaterials.TOOL_BASIC_STEEL);
//wootzsword = new CustomSword("ironsword", PrimalMaterials.TOOL_WOOTZ_STEEL);
wroughtironshield = new CustomShield("wroughtironshield", PrimalMaterials.TOOL_WROUGHT_IRON);
@@ -304,9 +304,9 @@ public class ModItems {
/**********
WEAPONS
**********/
GameRegistry.register(ironsword);
GameRegistry.register(wroughtirongladius);
GameRegistry.register(bronzegladius);
GameRegistry.register(wroughtironshield);
//GameRegistry.register(wroughtironshield);
//GameRegistry.register(matchlockmusket);
//GameRegistry.register(forgingmanual);
@@ -395,7 +395,7 @@ public class ModItems {
/**********
WEAPONS
**********/
registerRender(ironsword);
registerRender(wroughtirongladius);
registerRender(wroughtironshield);
//registerRender(forgingmanual);
//registerRender(matchlockmusket);

View File

@@ -1,5 +1,10 @@
package nmd.primal.forgecraft.items.weapons;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.attributes.AttributeModifier;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
@@ -7,18 +12,24 @@ import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import nmd.primal.forgecraft.ModInfo;
import java.util.DoubleSummaryStatistics;
/**
* Created by mminaie on 3/23/17.
*/
public class CustomSword extends ItemSword {
public CustomSword(String name, Item.ToolMaterial material) {
private double attack, speed;
public CustomSword(String name, Item.ToolMaterial material, double attackDamage, double attackSpeed) {
super(material);
this.setUnlocalizedName(name);
this.setRegistryName(name);
this.setCreativeTab(ModInfo.TAB_FORGECRAFT);
this.setMaxStackSize(1);
this.setNoRepair();
this.attack = attackDamage;
this.speed = attackSpeed;
}
@@ -40,4 +51,18 @@ public class CustomSword extends ItemSword {
return 0;
}
@Override
public Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot)
{
Multimap<String, AttributeModifier> multimap = HashMultimap.<String, AttributeModifier>create();
if (equipmentSlot == EntityEquipmentSlot.MAINHAND)
{
multimap.put(SharedMonsterAttributes.ATTACK_DAMAGE.getName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", this.attack, 0));
multimap.put(SharedMonsterAttributes.ATTACK_SPEED.getName(), new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -this.speed, 0));
}
return multimap;
}
}

View File

@@ -97,6 +97,7 @@ item.cast_pickaxe.name=Pickaxe Cast
item.cast_shovel.name=Shovel Cast
item.cast_hoe.name=Hoe Cast
item.bronzegladius.name=Bronze Gladius
item.wroughtirongladius.name=Wrought Iron Gladius
item.ironingothot.name=Hot Iron Ingot
item.ironchunkhot.name=Hot Iron Chunk