Changed a few things. Waiting for xcomp to help fix my work environment
This commit is contained in:
parent
d23d90918d
commit
6ad0d3b702
|
@ -47,6 +47,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
compile "codechicken:CodeChickenLib:1.7.10-1.1.1.99:dev"
|
||||||
compile "codechicken:CodeChickenCore:" + config.mc_version + "-" + config.ccc_version + ":dev"
|
compile "codechicken:CodeChickenCore:" + config.mc_version + "-" + config.ccc_version + ":dev"
|
||||||
compile "codechicken:NotEnoughItems:" + config.mc_version + "-" + config.nei_version + ":dev"
|
compile "codechicken:NotEnoughItems:" + config.mc_version + "-" + config.nei_version + ":dev"
|
||||||
compile name: 'MineTweaker3', version: config.minetweaker_version, ext: 'jar'
|
compile name: 'MineTweaker3', version: config.minetweaker_version, ext: 'jar'
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#
|
#
|
||||||
#Tue Nov 11 17:52:50 EST 2014
|
#Fri Nov 14 20:13:59 EST 2014
|
||||||
mod_name=BloodMagic
|
mod_name=BloodMagic
|
||||||
forge_version=10.13.2.1232
|
forge_version=10.13.2.1232
|
||||||
ccc_version=1.0.4.29
|
ccc_version=1.0.4.29
|
||||||
nei_version=1.0.3.64
|
nei_version=1.0.3.64
|
||||||
//=Dependency Information
|
//=Dependency Information
|
||||||
package_group=com.wayoftime.bloodmagic
|
package_group=com.wayoftime.bloodmagic
|
||||||
mod_version=1.2.0
|
mod_version=1.2.1-Beta
|
||||||
minetweaker_version=Dev-1.7.10-3.0.9B
|
minetweaker_version=Dev-1.7.10-3.0.9B
|
||||||
|
build_number=2
|
||||||
mc_version=1.7.10
|
mc_version=1.7.10
|
||||||
build_number=3
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ import java.util.List;
|
||||||
import java.util.zip.ZipEntry;
|
import java.util.zip.ZipEntry;
|
||||||
import java.util.zip.ZipInputStream;
|
import java.util.zip.ZipInputStream;
|
||||||
|
|
||||||
@Mod(modid = "AWWayofTime", name = "AlchemicalWizardry", version = "v1.2.0b (Beta1)", guiFactory = "WayofTime.alchemicalWizardry.client.gui.ConfigGuiFactory")
|
@Mod(modid = "AWWayofTime", name = "AlchemicalWizardry", version = "v1.2.1", guiFactory = "WayofTime.alchemicalWizardry.client.gui.ConfigGuiFactory")
|
||||||
|
|
||||||
public class AlchemicalWizardry
|
public class AlchemicalWizardry
|
||||||
{
|
{
|
||||||
|
@ -557,6 +557,7 @@ public class AlchemicalWizardry
|
||||||
GameRegistry.addRecipe(new ShapedBloodOrbRecipe(new ItemStack(ModItems.energyBazooka), "Ocd", "cb ", "d w", 'O', archmageBloodOrbStack, 'c', crepitousStack, 'b', new ItemStack(ModItems.energyBlaster), 'd', diamondStack, 'w', new ItemStack(ModItems.weakBloodShard)));
|
GameRegistry.addRecipe(new ShapedBloodOrbRecipe(new ItemStack(ModItems.energyBazooka), "Ocd", "cb ", "d w", 'O', archmageBloodOrbStack, 'c', crepitousStack, 'b', new ItemStack(ModItems.energyBlaster), 'd', diamondStack, 'w', new ItemStack(ModItems.weakBloodShard)));
|
||||||
GameRegistry.addRecipe(new ShapedBloodOrbRecipe(new ItemStack(ModItems.itemBloodLightSigil), "btb", "sss", "bob", 'o', magicianBloodOrbStack, 'b', glowstoneBlockStack, 't', new ItemStack(Blocks.torch), 's', imbuedSlateStack));
|
GameRegistry.addRecipe(new ShapedBloodOrbRecipe(new ItemStack(ModItems.itemBloodLightSigil), "btb", "sss", "bob", 'o', magicianBloodOrbStack, 'b', glowstoneBlockStack, 't', new ItemStack(Blocks.torch), 's', imbuedSlateStack));
|
||||||
GameRegistry.addRecipe(new ItemStack(ModItems.itemKeyOfDiablo), " gw", "gdg", "wg ", 'w', weakBloodShardStack, 'g', goldIngotStack, 'd', diamondStack);
|
GameRegistry.addRecipe(new ItemStack(ModItems.itemKeyOfDiablo), " gw", "gdg", "wg ", 'w', weakBloodShardStack, 'g', goldIngotStack, 'd', diamondStack);
|
||||||
|
GameRegistry.addRecipe(new ItemStack(ModItems.itemBloodPack), "gbg","flf","gsg",'s', blankSlateStack,'g', glassStack,'f',new ItemStack(Items.flint,1,craftingConstant),'b', emptyBucketStack, 'l', new ItemStack(Items.leather_chestplate));
|
||||||
customPotionDrowning = (new PotionDrowning(customPotionDrowningID, true, 0)).setIconIndex(0, 0).setPotionName("Drowning");
|
customPotionDrowning = (new PotionDrowning(customPotionDrowningID, true, 0)).setIconIndex(0, 0).setPotionName("Drowning");
|
||||||
customPotionBoost = (new PotionBoost(customPotionBoostID, false, 0)).setIconIndex(0, 0).setPotionName("Boost");
|
customPotionBoost = (new PotionBoost(customPotionBoostID, false, 0)).setIconIndex(0, 0).setPotionName("Boost");
|
||||||
customPotionProjProt = (new PotionProjectileProtect(customPotionProjProtID, false, 0)).setIconIndex(0, 0).setPotionName("Whirlwind");
|
customPotionProjProt = (new PotionProjectileProtect(customPotionProjProtID, false, 0)).setIconIndex(0, 0).setPotionName("Whirlwind");
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class AltarRecipe
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return tierCheck >= minTier && this.requiredItem.isItemEqual(comparedStack) && this.useTag ? this.areRequiredTagsEqual(comparedStack) : true;
|
return tierCheck >= minTier && this.requiredItem.isItemEqual(comparedStack) && (this.useTag ? this.areRequiredTagsEqual(comparedStack) : true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean areRequiredTagsEqual(ItemStack comparedStack)
|
public boolean areRequiredTagsEqual(ItemStack comparedStack)
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
package WayofTime.alchemicalWizardry.api.items;
|
||||||
|
|
||||||
|
public interface IAltarManipulator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -1,12 +1,7 @@
|
||||||
package WayofTime.alchemicalWizardry.common.block;
|
package WayofTime.alchemicalWizardry.common.block;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import java.util.Random;
|
||||||
import WayofTime.alchemicalWizardry.ModItems;
|
|
||||||
import WayofTime.alchemicalWizardry.common.items.EnergyBattery;
|
|
||||||
import WayofTime.alchemicalWizardry.common.items.sigil.SigilOfHolding;
|
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockContainer;
|
import net.minecraft.block.BlockContainer;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
|
@ -19,8 +14,14 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import java.util.Random;
|
import WayofTime.alchemicalWizardry.ModItems;
|
||||||
|
import WayofTime.alchemicalWizardry.api.items.IAltarManipulator;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergyBattery;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.sigil.SigilOfHolding;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class BlockAltar extends BlockContainer
|
public class BlockAltar extends BlockContainer
|
||||||
{
|
{
|
||||||
|
@ -131,7 +132,11 @@ public class BlockAltar extends BlockContainer
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else if (playerItem.getItem().equals(ModItems.sigilOfHolding))
|
}else if(playerItem.getItem() instanceof IAltarManipulator)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (playerItem.getItem().equals(ModItems.sigilOfHolding))
|
||||||
{
|
{
|
||||||
ItemStack item = ((SigilOfHolding) playerItem.getItem()).getCurrentItem(playerItem);
|
ItemStack item = ((SigilOfHolding) playerItem.getItem()).getCurrentItem(playerItem);
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
package WayofTime.alchemicalWizardry.common.block;
|
package WayofTime.alchemicalWizardry.common.block;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import java.util.Random;
|
||||||
import WayofTime.alchemicalWizardry.common.items.TelepositionFocus;
|
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TETeleposer;
|
import codechicken.multipart.TileMultipart;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockContainer;
|
import net.minecraft.block.BlockContainer;
|
||||||
import net.minecraft.block.BlockMobSpawner;
|
import net.minecraft.block.BlockMobSpawner;
|
||||||
|
@ -19,8 +17,12 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import java.util.Random;
|
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.TelepositionFocus;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TETeleposer;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class BlockTeleposer extends BlockContainer
|
public class BlockTeleposer extends BlockContainer
|
||||||
{
|
{
|
||||||
|
@ -77,6 +79,8 @@ public class BlockTeleposer extends BlockContainer
|
||||||
{
|
{
|
||||||
if (playerItem.getItem() instanceof TelepositionFocus)
|
if (playerItem.getItem() instanceof TelepositionFocus)
|
||||||
{
|
{
|
||||||
|
SoulNetworkHandler.checkAndSetItemOwner(playerItem, player);
|
||||||
|
|
||||||
if (playerItem.stackTagCompound == null)
|
if (playerItem.stackTagCompound == null)
|
||||||
{
|
{
|
||||||
playerItem.setTagCompound(new NBTTagCompound());
|
playerItem.setTagCompound(new NBTTagCompound());
|
||||||
|
@ -173,6 +177,11 @@ public class BlockTeleposer extends BlockContainer
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(tileEntityF instanceof TileMultipart)
|
||||||
|
{
|
||||||
|
((TileMultipart)tileEntityF).createAndLoadEntity(nbttag1);
|
||||||
|
}
|
||||||
|
|
||||||
if (blockI instanceof BlockMobSpawner || blockF instanceof BlockMobSpawner)
|
if (blockI instanceof BlockMobSpawner || blockF instanceof BlockMobSpawner)
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,21 +13,21 @@ import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.items.IAltarManipulator;
|
||||||
import WayofTime.alchemicalWizardry.api.items.interfaces.ArmourUpgrade;
|
import WayofTime.alchemicalWizardry.api.items.interfaces.ArmourUpgrade;
|
||||||
|
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class ItemBloodLetterPack extends ItemArmor implements ArmourUpgrade
|
public class ItemBloodLetterPack extends ItemArmor implements ArmourUpgrade, IAltarManipulator
|
||||||
{
|
{
|
||||||
private static IIcon helmetIcon;
|
|
||||||
private static IIcon plateIcon;
|
private static IIcon plateIcon;
|
||||||
private static IIcon leggingsIcon;
|
|
||||||
private static IIcon bootsIcon;
|
|
||||||
|
|
||||||
public static int conversionRate = 100; //LP / half heart
|
public static int conversionRate = 100; //LP / half heart
|
||||||
public static float activationPoint = 0.5f;
|
public static float activationPoint = 0.5f;
|
||||||
public static int tickRate = 20;
|
public static int tickRate = 20;
|
||||||
|
public static int maxStored = 10000;
|
||||||
|
|
||||||
public ItemBloodLetterPack()
|
public ItemBloodLetterPack()
|
||||||
{
|
{
|
||||||
|
@ -39,17 +39,13 @@ public class ItemBloodLetterPack extends ItemArmor implements ArmourUpgrade
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void registerIcons(IIconRegister iconRegister)
|
public void registerIcons(IIconRegister iconRegister)
|
||||||
{
|
{
|
||||||
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:SheathedItem");
|
|
||||||
this.helmetIcon = iconRegister.registerIcon("AlchemicalWizardry:SanguineHelmet");
|
|
||||||
this.plateIcon = iconRegister.registerIcon("AlchemicalWizardry:BoundPlate");
|
this.plateIcon = iconRegister.registerIcon("AlchemicalWizardry:BoundPlate");
|
||||||
this.leggingsIcon = iconRegister.registerIcon("AlchemicalWizardry:BoundLeggings");
|
|
||||||
this.bootsIcon = iconRegister.registerIcon("AlchemicalWizardry:BoundBoots");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
|
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
|
||||||
{
|
{
|
||||||
par3List.add("Crystal of unimaginable power");
|
par3List.add("This pack really chaffes...");
|
||||||
|
|
||||||
if (!(par1ItemStack.stackTagCompound == null))
|
if (!(par1ItemStack.stackTagCompound == null))
|
||||||
{
|
{
|
||||||
|
@ -62,7 +58,7 @@ public class ItemBloodLetterPack extends ItemArmor implements ArmourUpgrade
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public IIcon getIconFromDamage(int par1)
|
public IIcon getIconFromDamage(int par1)
|
||||||
{
|
{
|
||||||
return this.itemIcon;
|
return this.plateIcon;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -109,6 +105,8 @@ public class ItemBloodLetterPack extends ItemArmor implements ArmourUpgrade
|
||||||
int filledAmount = altar.fillMainTank(amount);
|
int filledAmount = altar.fillMainTank(amount);
|
||||||
amount -= filledAmount;
|
amount -= filledAmount;
|
||||||
this.setStoredLP(itemStack, amount);
|
this.setStoredLP(itemStack, amount);
|
||||||
|
|
||||||
|
world.markBlockForUpdate(x, y, z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,11 +138,31 @@ public class ItemBloodLetterPack extends ItemArmor implements ArmourUpgrade
|
||||||
|
|
||||||
return tag.getInteger("storedLP");
|
return tag.getInteger("storedLP");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack)
|
||||||
|
{
|
||||||
|
//This is where I need to do the updating
|
||||||
|
if(world.isRemote)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(world.getWorldTime() % tickRate == 0)
|
||||||
|
{
|
||||||
|
boolean shouldExecute = player.getHealth() / player.getMaxHealth() > activationPoint && this.getStoredLP(itemStack) < maxStored;
|
||||||
|
|
||||||
|
if(shouldExecute)
|
||||||
|
{
|
||||||
|
SoulNetworkHandler.hurtPlayer(player, 1.0f);
|
||||||
|
this.setStoredLP(itemStack, Math.min(this.getStoredLP(itemStack) + conversionRate, maxStored));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onArmourUpdate(World world, EntityPlayer player, ItemStack thisItemStack)
|
public void onArmourUpdate(World world, EntityPlayer player, ItemStack thisItemStack)
|
||||||
{
|
{
|
||||||
//This is where I need to do the updating
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,7 @@ public class SpellHelper
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player instanceof FakePlayer || SpellHelper.getUsername(player).contains("[CoFH]"))
|
if (player instanceof FakePlayer || SpellHelper.getUsername(player).contains("[CoFH]") || SpellHelper.getUsername(player).contains("[ThaumcraftTablet]"))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,6 +185,7 @@ item.itemTankSegmenter.name=Alchemic Segmenter
|
||||||
item.destinationClearer.name=Alchemic Cleanser
|
item.destinationClearer.name=Alchemic Cleanser
|
||||||
item.demonPlacer.name=Demon Crystal
|
item.demonPlacer.name=Demon Crystal
|
||||||
item.creativeDagger.name=Creative Sacrificial Knife
|
item.creativeDagger.name=Creative Sacrificial Knife
|
||||||
|
item.itemBloodPack.name=Blood Letter's Pack
|
||||||
#Creative Tab
|
#Creative Tab
|
||||||
itemGroup.tabBloodMagic=Blood Magic
|
itemGroup.tabBloodMagic=Blood Magic
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue