Added Villager Sacrificial Focuses

This commit is contained in:
Adubbz G 2013-06-15 20:39:13 +10:00
parent 3026bc0768
commit 603d95f7f0
5 changed files with 15 additions and 4 deletions

View file

@ -26,7 +26,7 @@ import biomesoplenty.tileentity.TileEntityAltar;
public class BlockBOPGlass extends Block
{
private static final String[] glassTypes = new String[] {"celestiallens", "sacrificialFocus_empty", "sacrificialFocus_active"};
private static final String[] glassTypes = new String[] {"celestiallens", "sacrificialFocus_empty", "sacrificialFocus_active", "sacrificialFocus_villager"};
private Icon[] textures;
public BlockBOPGlass(int blockID)
@ -58,7 +58,7 @@ public class BlockBOPGlass extends Block
{
if (entity instanceof EntityVillager)
{
world.setBlockMetadataWithNotify(x, y, z, 1, 2);
world.setBlockMetadataWithNotify(x, y, z, 3, 2);
world.spawnEntityInWorld(new EntityLightningBolt(world, x + 1, y + 2, z));
world.spawnEntityInWorld(new EntityLightningBolt(world, x -1, y + 2, z));
@ -180,7 +180,7 @@ public class BlockBOPGlass extends Block
{
for (int i = 0; i < glassTypes.length; ++i)
{
if (i != 2)
if (i != 2 && i != 3)
list.add(new ItemStack(blockID, 1, i));
}
}

View file

@ -5,7 +5,7 @@ import net.minecraft.item.ItemStack;
public class ItemBOPGlass extends ItemBlock
{
private static final String[] glassTypes = new String[] {"celestialLens", "sacrificialFocus_empty", "sacrificialFocus_active"};
private static final String[] glassTypes = new String[] {"celestialLens", "sacrificialFocus_empty", "sacrificialFocus_active", "sacrificialFocus_villager"};
public ItemBOPGlass(int par1)
{

View file

@ -142,8 +142,10 @@
<entry key="tile.bop.bones.bones_large.name">Large Bone Segment</entry>
<entry key="tile.bop.glass.celestialLens.name">Celestial Lens</entry>
<entry key="tile.bop.glass.sacrificialFocus_empty.name">Sacrificial Focus</entry>
<entry key="tile.bop.glass.sacrificialFocus_active.name">Sacrificial Focus</entry>
<entry key="tile.bop.glass.sacrificialFocus_villager.name">Sacrificial Focus</entry>
<entry key="tile.bop.altar.altarFrame.name">Altar Frame</entry>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -0,0 +1,9 @@
0*20
1*1
2*1
3*1
4*6
3*1
2*1
1*1
0*20