This commit is contained in:
KitsuShadow
2015-07-12 23:28:58 -04:00
parent 13e01d8d8a
commit 3c9948d008
58 changed files with 157 additions and 33 deletions

View File

@@ -181,6 +181,46 @@ public final class ModItems {
public static Item customIronPickCase10;
public static Item customIronPickCase11;
public static Item customIronPickCase12;
public static Item customIronPickCase13;
public static Item customIronPickCase14;
public static Item customIronPickCase15;
public static Item customIronPickCase16;
public static Item customIronPickCase17;
public static Item customIronPickCase18;
public static Item customIronPickCase19;
public static Item customIronPickCase20;
public static Item customIronPickCase21;
public static Item customIronPickCase22;
public static Item customIronPickCase23;
public static Item customIronPickCase24;
public static Item customIronPickCase25;
public static Item customIronPickCase26;
public static Item customIronPickCase27;
public static Item customIronPickCase28;
public static Item customIronPickCase29;
public static Item customIronPickCase30;
public static Item customIronPickCase31;
public static Item customIronPickCase32;
public static Item customIronPickCase33;
public static Item customIronPickCase34;
public static Item customIronPickCase35;
public static Item customIronPickCase36;
public static Item customIronPickCase37;
public static Item customIronPickCase38;
public static Item customIronPickCase39;
public static Item customIronPickCase40;
public static Item customIronPickCase41;
public static Item customIronPickCase42;
public static Item customIronPickCase43;
public static Item customIronPickCase44;
public static Item customIronPickCase45;
public static Item customIronPickCase46;
public static Item customIronPickCase47;
public static Item customIronPickCase48;
public static Item customIronPickCase49;
public static Item customIronPickCase50;
public static Item customIronPickCase51;
public static Item customStrongIronPick;
public static Item customWeakIronPick;
@@ -796,6 +836,29 @@ public final class ModItems {
GameRegistry.registerItem(customIronPickCase10 = new CustomIronPick("customIronPickCase10", customIronToolRodWeak), "customIronPickCase10");
GameRegistry.registerItem(customIronPickCase11 = new CustomIronPick("customIronPickCase11", customWoodWeak), "customIronPickCase11");
GameRegistry.registerItem(customIronPickCase12 = new CustomIronPick("customIronPickCase12", customIronToolRodWeak), "customIronPickCase12");
GameRegistry.registerItem(customIronPickCase13 = new CustomIronPick("customIronPickCase13", customWoodNormal), "customIronPickCase13");
GameRegistry.registerItem(customIronPickCase14 = new CustomIronPick("customIronPickCase14", customIronToolRodNormal), "customIronPickCase14");
GameRegistry.registerItem(customIronPickCase15 = new CustomIronPick("customIronPickCase15", customWoodWeak), "customIronPickCase15");
GameRegistry.registerItem(customIronPickCase16 = new CustomIronPick("customIronPickCase16", customIronToolRodWeak), "customIronPickCase16");
GameRegistry.registerItem(customIronPickCase17 = new CustomIronPick("customIronPickCase17", customIronToolRodWeak), "customIronPickCase17");
GameRegistry.registerItem(customIronPickCase18 = new CustomIronPick("customIronPickCase18", customIronToolRodWeak), "customIronPickCase18");
GameRegistry.registerItem(customIronPickCase19 = new CustomIronPick("customIronPickCase19", customWoodNormal), "customIronPickCase19");
GameRegistry.registerItem(customIronPickCase20 = new CustomIronPick("customIronPickCase20", customIronToolRodNormal), "customIronPickCase20");
GameRegistry.registerItem(customIronPickCase21 = new CustomIronPick("customIronPickCase21", customIronToolRodNormal), "customIronPickCase21");
GameRegistry.registerItem(customIronPickCase22 = new CustomIronPick("customIronPickCase22", customWoodNormal), "customIronPickCase22");
GameRegistry.registerItem(customIronPickCase23 = new CustomIronPick("customIronPickCase23", customIronToolRodStrong), "customIronPickCase23");
GameRegistry.registerItem(customIronPickCase24 = new CustomIronPick("customIronPickCase24", customIronToolRodStrong), "customIronPickCase24");
GameRegistry.registerItem(customIronPickCase25 = new CustomIronPick("customIronPickCase25", customWoodNormal), "customIronPickCase25");
GameRegistry.registerItem(customIronPickCase26 = new CustomIronPick("customIronPickCase26", customIronToolRodWeak), "customIronPickCase26");
GameRegistry.registerItem(customIronPickCase27 = new CustomIronPick("customIronPickCase27", customWoodNormal), "customIronPickCase27");
GameRegistry.registerItem(customIronPickCase28 = new CustomIronPick("customIronPickCase28", customIronToolRodWeak), "customIronPickCase28");
GameRegistry.registerItem(customIronPickCase29 = new CustomIronPick("customIronPickCase29", customWoodNormal), "customIronPickCase29");
GameRegistry.registerItem(customIronPickCase30 = new CustomIronPick("customIronPickCase30", customWoodWeak), "customIronPickCase30");
GameRegistry.registerItem(customIronPickCase31 = new CustomIronPick("customIronPickCase31", customIronToolRodWeak), "customIronPickCase31");
GameRegistry.registerItem(customIronPickCase32 = new CustomIronPick("customIronPickCase32", customWoodNormal), "customIronPickCase32");
GameRegistry.registerItem(customIronPickCase33 = new CustomIronPick("customIronPickCase33", customWoodWeak), "customIronPickCase33");
GameRegistry.registerItem(customIronPickCase34 = new CustomIronPick("customIronPickCase34", customIronToolRodWeak), "customIronPickCase34");
GameRegistry.registerItem(customIronPickCase35 = new CustomIronPick("customIronPickCase35", customWoodWeak), "customIronPickCase35");
GameRegistry.registerItem(customIronPick = new CustomIronPick("customIronPick", customWoodNormal), "customIronPick");
GameRegistry.registerItem(customStrongIronPick = new CustomIronPick("customStrongIronPick", customWoodStrong), "customStrongIronPick");

View File

@@ -7,6 +7,7 @@ import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import com.kitsu.medievalcraft.Main;
@@ -42,6 +43,15 @@ public class FireBow extends Item {
if(rand.nextInt(5) == 0){
world.setBlock(x, y + 1, z , Blocks.fire);
stack.damageItem(1, player);
player.worldObj.playSoundAtEntity(player, Main.MODID + ":anvilhammer", 1.0F, 1.0F);
for(int i=0; i < player.worldObj.playerEntities.size(); i++){
EntityPlayer test = (EntityPlayer) player.worldObj.playerEntities.get(i);
Vec3 vecTest = Vec3.createVectorHelper(test.posX, test.posY, test.posZ);
Vec3 vecPlayer = Vec3.createVectorHelper(player.posX, player.posY, player.posZ);
if(vecPlayer.distanceTo(vecTest)>10f && vecPlayer.distanceTo(vecTest)<100f){
test.worldObj.playSoundAtEntity(test, Main.MODID + ":anvilhammer", 1.0F, 1.0F);
}
}
}
}
return true;

View File

@@ -77,7 +77,7 @@ public class ForgeHammer extends Item implements AnvilUtil{
}
private void onClick(Block block, Block blockSub, World world, int x, int y, int z, EntityPlayer p, ItemStack stack, Random rand){
System.out.println("Layer 1");
//System.out.println("Layer 1");
if(block == ModBlocks.refinedIron){
tileRefIngot = (TileMyIronIngot) world.getTileEntity(x, y, z);
}
@@ -124,7 +124,7 @@ public class ForgeHammer extends Item implements AnvilUtil{
//IRON FORMS
if(tileEnt.getStackInSlot(0)!=null){
if((tileEnt.getStackInSlot(0).getItem() instanceof IronForms)&&(tile.hot==true)){
System.out.println("working");
//System.out.println("working");
p.worldObj.playSoundAtEntity(p, Main.MODID + ":anvilhammer", 1.0F, 1.0F);
Main.sNet.sendToAll(new MsgPacket(true));
Main.sNet.sendToAll(new MsgPacketLocX(x));