Some preliminary work on transmutation squares
This commit is contained in:
parent
5ab19755ca
commit
3039c2d71d
|
@ -34,8 +34,8 @@ public class BlockAlchemicalChest extends BlockContainerEE
|
|||
|
||||
public BlockAlchemicalChest(int id)
|
||||
{
|
||||
|
||||
super(id, Material.wood);
|
||||
this.setHardness(2.5F);
|
||||
this.setUnlocalizedName(Strings.ALCHEMICAL_CHEST_NAME);
|
||||
this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);
|
||||
this.setCreativeTab(EquivalentExchange3.tabsEE3);
|
||||
|
@ -50,21 +50,18 @@ public class BlockAlchemicalChest extends BlockContainerEE
|
|||
@Override
|
||||
public TileEntity createNewTileEntity(World world)
|
||||
{
|
||||
|
||||
return new TileAlchemicalChest();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock()
|
||||
{
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOpaqueCube()
|
||||
{
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -78,7 +75,6 @@ public class BlockAlchemicalChest extends BlockContainerEE
|
|||
@Override
|
||||
public void breakBlock(World world, int x, int y, int z, int id, int meta)
|
||||
{
|
||||
|
||||
dropInventory(world, x, y, z);
|
||||
super.breakBlock(world, x, y, z, id, meta);
|
||||
}
|
||||
|
@ -86,7 +82,6 @@ public class BlockAlchemicalChest extends BlockContainerEE
|
|||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9)
|
||||
{
|
||||
|
||||
if (player.isSneaking())
|
||||
{
|
||||
return true;
|
||||
|
@ -113,7 +108,6 @@ public class BlockAlchemicalChest extends BlockContainerEE
|
|||
|
||||
private void dropInventory(World world, int x, int y, int z)
|
||||
{
|
||||
|
||||
TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
|
||||
|
||||
if (!(tileEntity instanceof IInventory))
|
||||
|
|
|
@ -20,7 +20,9 @@ public class BlockAlchemicalFuel extends BlockEE
|
|||
public BlockAlchemicalFuel(int id)
|
||||
{
|
||||
super(id);
|
||||
setUnlocalizedName(Strings.RESOURCE_PREFIX + Strings.ALCHEMICAL_FUEL_BLOCK_NAME);
|
||||
this.setUnlocalizedName(Strings.RESOURCE_PREFIX + Strings.ALCHEMICAL_FUEL_BLOCK_NAME);
|
||||
this.setHardness(5.0F);
|
||||
this.setResistance(10.0F);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
|
|
@ -36,7 +36,7 @@ public class BlockCalcinator extends BlockContainerEE
|
|||
super(id, Material.rock);
|
||||
this.setUnlocalizedName(Strings.CALCINATOR_NAME);
|
||||
this.setCreativeTab(EquivalentExchange3.tabsEE3);
|
||||
this.setHardness(5F);
|
||||
this.setHardness(2.0F);
|
||||
this.setBlockBounds(0.1F, 0.0F, 0.1F, 0.9F, 1.0F, 0.9F);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
package com.pahimar.ee3.block;
|
||||
|
||||
public class BlockTransmutationSquare extends BlockEE
|
||||
{
|
||||
public BlockTransmutationSquare(int id)
|
||||
{
|
||||
super(id);
|
||||
}
|
||||
}
|
|
@ -16,6 +16,7 @@ public class ModBlocks
|
|||
{
|
||||
public static BlockEE alchemicalFuel;
|
||||
public static BlockEE chalk;
|
||||
public static BlockEE transmutationSquare;
|
||||
|
||||
public static BlockContainerEE calcinator;
|
||||
public static BlockContainerEE aludelBase;
|
||||
|
@ -26,6 +27,7 @@ public class ModBlocks
|
|||
{
|
||||
chalk = new BlockChalk(BlockIds.CHALK);
|
||||
alchemicalFuel = new BlockAlchemicalFuel(BlockIds.ALCHEMICAL_FUEL);
|
||||
transmutationSquare = new BlockTransmutationSquare(BlockIds.TRANSMUTATION_SQUARE);
|
||||
|
||||
calcinator = new BlockCalcinator(BlockIds.CALCINATOR);
|
||||
aludelBase = new BlockAludelBase(BlockIds.ALUDEL_BASE);
|
||||
|
@ -38,5 +40,6 @@ public class ModBlocks
|
|||
GameRegistry.registerBlock(aludelBase, "block." + Strings.ALUDEL_NAME);
|
||||
GameRegistry.registerBlock(alchemicalChest, "block." + Strings.ALCHEMICAL_CHEST_NAME);
|
||||
GameRegistry.registerBlock(glassBell, "block." + Strings.GLASS_BELL_NAME);
|
||||
GameRegistry.registerBlock(transmutationSquare, "block." + Strings.TRANSMUTATION_SQUARE_NAME);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ public class BlockConfiguration
|
|||
/* Block configs */
|
||||
BlockIds.ALCHEMICAL_FUEL = blockConfiguration.getBlock(Strings.ALCHEMICAL_FUEL_NAME, BlockIds.ALCHEMICAL_FUEL_DEFAULT).getInt(BlockIds.ALCHEMICAL_FUEL_DEFAULT);
|
||||
BlockIds.CHALK = blockConfiguration.getBlock(Strings.CHALK_NAME, BlockIds.CHALK_DEFAULT).getInt(BlockIds.CHALK_DEFAULT);
|
||||
BlockIds.TRANSMUTATION_SQUARE = blockConfiguration.getBlock(Strings.TRANSMUTATION_SQUARE_NAME, BlockIds.TRANSMUTATION_SQUARE_DEFAULT).getInt(BlockIds.TRANSMUTATION_SQUARE_DEFAULT);
|
||||
|
||||
BlockIds.CALCINATOR = blockConfiguration.getBlock(Strings.CALCINATOR_NAME, BlockIds.CALCINATOR_DEFAULT).getInt(BlockIds.CALCINATOR_DEFAULT);
|
||||
BlockIds.ALUDEL_BASE = blockConfiguration.getBlock(Strings.ALUDEL_NAME, BlockIds.ALUDEL_BASE_DEFAULT).getInt(BlockIds.ALUDEL_BASE_DEFAULT);
|
||||
|
|
|
@ -16,7 +16,7 @@ public class BlockIds
|
|||
public static int ALCHEMICAL_CHEST_DEFAULT = 2454;
|
||||
public static int ALCHEMICAL_FUEL_DEFAULT = 2455;
|
||||
public static int CHALK_DEFAULT = 2456;
|
||||
|
||||
public static int TRANSMUTATION_SQUARE_DEFAULT = 2457;
|
||||
|
||||
/* Current block ids */
|
||||
public static int CALCINATOR;
|
||||
|
@ -25,4 +25,5 @@ public class BlockIds
|
|||
public static int ALCHEMICAL_CHEST;
|
||||
public static int ALCHEMICAL_FUEL;
|
||||
public static int CHALK;
|
||||
public static int TRANSMUTATION_SQUARE;
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@ public class Strings
|
|||
public static final String ALUDEL_NAME = "aludel";
|
||||
public static final String ALCHEMICAL_CHEST_NAME = "alchemicalChest";
|
||||
public static final String GLASS_BELL_NAME = "glassBell";
|
||||
public static final String TRANSMUTATION_SQUARE_NAME = "transmutationSquare";
|
||||
|
||||
/* Item name constants */
|
||||
public static final String MINIUM_SHARD_NAME = "shardMinium";
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1,020 B |
BIN
src/main/resources/assets/ee3/textures/items/alchemicalDust.png
Normal file
BIN
src/main/resources/assets/ee3/textures/items/alchemicalDust.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 548 B |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue