This commit is contained in:
Brian Ricketts 2013-01-18 21:53:06 -06:00
commit ef590bfa0b
4 changed files with 39 additions and 39 deletions

View file

@ -1,4 +1,4 @@
## Assembly Line
### Brief
Assembly Line is a Minecraft mod that brings realistic factory style transportation systems into Minecraft.
Assembly Line is a Minecraft mod that brings realistic factory style systems into Minecraft.

View file

@ -1,35 +1,35 @@
package assemblyline.client.render;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
public class RenderCrate implements ISimpleBlockRenderingHandler
{
@Override
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer)
{
}
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer)
{
return false;
}
@Override
public boolean shouldRender3DInInventory()
{
return false;
}
@Override
public int getRenderId()
{
return 0;
}
}
package assemblyline.client.render;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
public class RenderCrate implements ISimpleBlockRenderingHandler
{
@Override
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer)
{
}
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer)
{
return false;
}
@Override
public boolean shouldRender3DInInventory()
{
return false;
}
@Override
public int getRenderId()
{
return 0;
}
}

View file

@ -110,7 +110,7 @@ public abstract class TileEntityAssemblyNetwork extends TileEntityElectricityRec
protected ElectricityPack getRequest()
{
return new ElectricityPack(15, this.getVoltage());
return new ElectricityPack(10, this.getVoltage());
}
protected int getMaxTransferRange()

View file

@ -118,9 +118,9 @@ public class TileEntityConveyorBelt extends TileEntityAssemblyNetwork implements
PacketManager.sendPacketToClients(this.getDescriptionPacket());
}
if (this.isRunning())
if (this.isRunning()&& this.worldObj.isRemote)
{
if (this.ticks % (10) == 0) //sound is 0.5 seconds long (20 ticks/second)
if (this.ticks % (10) == 0 ) //sound is 0.5 seconds long (20 ticks/second)
Minecraft.getMinecraft().sndManager.playSound("assemblyline.conveyor", this.xCoord, this.yCoord, this.zCoord, 0.125f, 0.3f);
this.wheelRotation += 40;