Added filled belljars to the creative tab
This commit is contained in:
parent
e7657f7429
commit
d1fa088923
|
@ -1,12 +1,12 @@
|
||||||
// Mod Information
|
#
|
||||||
|
#Sat Nov 01 19:24:52 EDT 2014
|
||||||
mod_name=BloodMagic
|
mod_name=BloodMagic
|
||||||
package_group=com.wayoftime.bloodmagic
|
|
||||||
mod_version=1.2.0
|
|
||||||
build_number=1
|
|
||||||
|
|
||||||
// Dependency Information
|
|
||||||
mc_version=1.7.10
|
|
||||||
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
|
||||||
|
package_group=com.wayoftime.bloodmagic
|
||||||
|
mod_version=1.2.0
|
||||||
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
|
||||||
|
|
|
@ -1,17 +1,27 @@
|
||||||
package WayofTime.alchemicalWizardry.common.block;
|
package WayofTime.alchemicalWizardry.common.block;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import java.util.ArrayList;
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEBellJar;
|
import java.util.List;
|
||||||
|
|
||||||
import net.minecraft.block.BlockContainer;
|
import net.minecraft.block.BlockContainer;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
import net.minecraft.nbt.NBTTagList;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import java.util.ArrayList;
|
import WayofTime.alchemicalWizardry.ModBlocks;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainer;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEBellJar;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class BlockBelljar extends BlockContainer
|
public class BlockBelljar extends BlockContainer
|
||||||
{
|
{
|
||||||
|
@ -24,6 +34,44 @@ public class BlockBelljar extends BlockContainer
|
||||||
this.setBlockName("crystalBelljar");
|
this.setBlockName("crystalBelljar");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List)
|
||||||
|
{
|
||||||
|
if (this.equals(ModBlocks.blockCrystalBelljar))
|
||||||
|
{
|
||||||
|
par3List.add(new ItemStack(par1, 1, 0));
|
||||||
|
|
||||||
|
for(Reagent reagent : ReagentRegistry.reagentList.values())
|
||||||
|
{
|
||||||
|
ItemStack stack = new ItemStack(par1, 1, 0);
|
||||||
|
NBTTagCompound tag = new NBTTagCompound();
|
||||||
|
|
||||||
|
ReagentContainer[] tanks = new ReagentContainer[1];
|
||||||
|
tanks[0] = new ReagentContainer(reagent, 16000, 16000);
|
||||||
|
|
||||||
|
NBTTagList tagList = new NBTTagList();
|
||||||
|
|
||||||
|
NBTTagCompound savedTag = new NBTTagCompound();
|
||||||
|
if (tanks[0] != null)
|
||||||
|
{
|
||||||
|
tanks[0].writeToNBT(savedTag);
|
||||||
|
}
|
||||||
|
tagList.appendTag(savedTag);
|
||||||
|
|
||||||
|
|
||||||
|
tag.setTag("reagentTanks", tagList);
|
||||||
|
|
||||||
|
stack.setTagCompound(tag);
|
||||||
|
|
||||||
|
par3List.add(stack);
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
super.getSubBlocks(par1, par2CreativeTabs, par3List);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack stack)
|
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack stack)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
package WayofTime.alchemicalWizardry.common.items;
|
package WayofTime.alchemicalWizardry.common.items;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
|
||||||
import com.arc.bloodarsenal.BloodArsenal;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.util.FakePlayer;
|
import net.minecraftforge.common.util.FakePlayer;
|
||||||
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||||
|
|
||||||
public classCreativeDagger extends Item
|
public class CreativeDagger extends Item
|
||||||
{
|
{
|
||||||
public CreativeDagger()
|
public CreativeDagger()
|
||||||
{
|
{
|
||||||
|
@ -103,3 +103,4 @@ public classCreativeDagger extends Item
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -184,6 +184,7 @@ item.itemAttunedCrystal.name=Alchemic Router
|
||||||
item.itemTankSegmenter.name=Alchemic Segmenter
|
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
|
||||||
#Creative Tab
|
#Creative Tab
|
||||||
itemGroup.tabBloodMagic=Blood Magic
|
itemGroup.tabBloodMagic=Blood Magic
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue