v5.1.1 Release

*Updated Minecraft to 1.4.7.
*Updated textures wtih fixed output/input colors.
*Renamed ultimate tier to elite.
*Added a server-sided tick handler.
*Fix sound handler crash.
*Cleaned ItemElectric charge code.
*Lowered Heat Generator generation.
*Fixed generator outputs.
*Fixed wires not connecting to blocks on world load.
*Fixed energy cubes not accepting BC power.
*Made blocks compatible with UE wrench.
*Added option to enable Basic Components steel/bronze crafting.
*Fixed various container bugs.
*UE-friendly recipes.
*Updated CC API.
*Fixed theoretical elementizer.
*Added Teleporter.
*Added Portable Teleporter.
This commit is contained in:
Aidan Brady committed 2013-01-20 20:15:59 -05:00
1 parent 7faad6bdc1
commit d0fed4f1ae
78 files changed
+1926 -999

No files matched your search

+25 -2
View File
@@ -29,6 +29,7 @@ import net.minecraftforge.common.ForgeChunkManager;
* 4: Refined Glowstone
* 5: Steel Block
* 6: Control Panel
* 7: Teleporter
* @author AidanBrady
*
*/
@@ -62,6 +63,8 @@ public class BlockBasic extends Block
return 29;
case 6:
return 0;
case 7:
return 25;
}
return 0;
}
@@ -83,6 +86,7 @@ public class BlockBasic extends Block
list.add(new ItemStack(i, 1, 4));
list.add(new ItemStack(i, 1, 5));
//list.add(new ItemStack(i, 1, 6));
list.add(new ItemStack(i, 1, 7));
}
@Override
@@ -102,10 +106,27 @@ public class BlockBasic extends Block
{
if(!entityplayer.isSneaking())
{
entityplayer.openGui(Mekanism.instance, 14, world, x, y, z);
entityplayer.openGui(Mekanism.instance, 9, world, x, y, z);
return true;
}
}
else if(metadata == 7)
{
if(entityplayer.isSneaking())
{
entityplayer.openGui(Mekanism.instance, 13, world, x, y, z);
return true;
}
if(!world.isRemote)
{
TileEntityTeleporter tileEntity = (TileEntityTeleporter)world.getBlockTileEntity(x, y, z);
if(tileEntity.canTeleport() == 1)
{
tileEntity.teleport();
}
}
}
return false;
}
@@ -126,7 +147,7 @@ public class BlockBasic extends Block
@Override
public boolean hasTileEntity(int metadata)
{
return metadata == 6;
return metadata == 6 || metadata == 7;
}
@Override
@@ -136,6 +157,8 @@ public class BlockBasic extends Block
{
case 6:
return new TileEntityControlPanel();
case 7:
return new TileEntityTeleporter();
}
return null;
}