This commit is contained in:
KitsuShadow
2015-07-07 23:28:22 -04:00
parent db43a14b32
commit cbac489907
100 changed files with 131 additions and 120 deletions

View File

@@ -110,7 +110,7 @@ public class ModBlocks {
//MACHINES
public static Block formtable;
//public static Block newForge;
public static Block testForge;
//public static Block testForge;
public static Block forgeAnvil;
public static Block waterFilter;
public static Block shelfFour;
@@ -139,11 +139,11 @@ public class ModBlocks {
public static Block tanWaterCrucible;
public static Block slackWaterCrucible;
public static final void init() {
GameRegistry.registerBlock(testBlock = new TestBlock("testBlock", Material.rock), "testBlock");
Fluid fluidSmoke = new Fluid("blocksmoke").setDensity(-1000).setTemperature(310).setGaseous(true).setBlock(blockSmoke).setViscosity(1200);
Fluid fluidSmoke = new Fluid("blocksmoke").setDensity(-1000).setTemperature(310).setGaseous(true).setBlock(blockSmoke).setViscosity(0);
FluidRegistry.registerFluid(fluidSmoke);
blockSmoke = new BlockSmoke(fluidSmoke, Material.water).setBlockName("blockSmoke");
GameRegistry.registerBlock(blockSmoke, Main.MODID + "_" + blockSmoke.getUnlocalizedName().substring(5));
@@ -174,7 +174,7 @@ public class ModBlocks {
GameRegistry.registerBlock(wootzOre = new WootzOre("wootzOre", Material.rock), "wootzOre");
GameRegistry.registerBlock(formtable = new formTable("formTable", Material.wood), "formTable");
GameRegistry.registerBlock(testForge = new TestForge("TestForge", Material.iron), "TestForge");
//GameRegistry.registerBlock(testForge = new TestForge("TestForge", Material.iron), "TestForge");
GameRegistry.registerBlock(forgeAnvil = new ForgeAnvil("forgeAnvil", Material.iron), "forgeAnvil");
GameRegistry.registerBlock(waterFilter = new WaterFilter("waterFilter", Material.iron), "waterFilter");
//GameRegistry.registerBlock(sandFilter = new SandFilter("sandFilter", Material.wood), "sandFilter");

View File

@@ -60,28 +60,28 @@ public class BlockSmoke extends BlockFluidFinite{
super.randomDisplayTick(world, x, y, z, random);
if (random.nextInt(6) == 0) {
world.spawnParticle("cloud", x + 0.5D, y + 0.2D, z + 0.5D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("largesmoke", x + 0.5D, y + 0.2D, z + 0.5D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("cloud", x + 0.5D, y + 0.5D, z + 0.5D, 0.0D, 0.2D, 0.0D);
world.spawnParticle("largesmoke", x + 0.5D, y + 0.5D, z + 0.5D, 0.0D, 0.2D, 0.0D);
}
if (random.nextInt(6) == 1) {
world.spawnParticle("cloud", x + 0.5D, y + 0.8D, z + 0.5D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("largesmoke", x + 0.5D, y + 0.8D, z + 0.5D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("cloud", x + 0.8D, y + 0.5D, z + 0.5D, 0.0D, 0.2D, 0.0D);
world.spawnParticle("largesmoke", x + 0.8D, y + 0.5D, z + 0.5D, 0.0D, 0.2D, 0.0D);
}
if (random.nextInt(6) == 2) {
world.spawnParticle("cloud", x + 0.2D, y + 0.5D, z + 0.5D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("largesmoke", x + 0.2D, y + 0.5D, z + 0.5D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("cloud", x + 0.2D, y + 0.5D, z + 0.5D, 0.0D, 0.2D, 0.0D);
world.spawnParticle("largesmoke", x + 0.2D, y + 0.5D, z + 0.5D, 0.0D, 0.2D, 0.0D);
}
if (random.nextInt(6) == 3) {
world.spawnParticle("cloud", x + 0.8D, y + 0.5D, z + 0.5D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("largesmoke", x + 0.8D, y + 0.5D, z + 0.5D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("cloud", x + 0.5D, y + 0.5D, z + 0.8D, 0.0D, 0.2D, 0.0D);
world.spawnParticle("largesmoke", x + 0.5D, y + 0.5D, z + 0.8D, 0.0D, 0.2D, 0.0D);
}
if (random.nextInt(6) == 4) {
world.spawnParticle("cloud", x + 0.5D, y + 0.5D, z + 0.2D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("largesmoke", x + 0.5D, y + 0.5D, z + 0.2D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("cloud", x + 0.5D, y + 0.5D, z + 0.2D, 0.0D, 0.2D, 0.0D);
world.spawnParticle("largesmoke", x + 0.5D, y + 0.5D, z + 0.2D, 0.0D, 0.2D, 0.0D);
}
if (random.nextInt(6) == 5) {
world.spawnParticle("cloud", x + 0.5D, y + 0.5D, z + 0.8D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("largesmoke", x + 0.5D, y + 0.5D, z + 0.8D, 0.0D, 0.0D, 0.0D);
world.spawnParticle("cloud", x + 0.8D, y + 0.5D, z + 0.2D, 0.0D, 0.2D, 0.0D);
world.spawnParticle("largesmoke", x + 0.8D, y + 0.5D, z + 0.2D, 0.0D, 0.2D, 0.0D);
}
}

View File

@@ -67,6 +67,7 @@ public abstract class IngotBase extends BlockContainer {
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int aa, float bb, float cc, float ff){
//System.out.println(this.getUnlocalizedName());
if(player.inventory.getCurrentItem().getItem()!=ModItems.forgeHammer){
int a = player.inventory.currentItem;
if(player.inventory.getStackInSlot(a)!=null){

View File

@@ -30,13 +30,6 @@ public class ForgeAnvil extends BlockContainer{
private final Random random = new Random();
@SideOnly(Side.CLIENT)
private IIcon iconSide;
@SideOnly(Side.CLIENT)
private IIcon iconTop;
@SideOnly(Side.CLIENT)
private IIcon iconBot;
public ForgeAnvil(String unlocalizedName, Material mat) {
super(mat);
this.setBlockName(unlocalizedName);
@@ -48,19 +41,6 @@ public class ForgeAnvil extends BlockContainer{
}
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int metadata) {
return side == 1 ? this.iconTop : (side == 0 ? this.iconBot : (side != metadata ? this.blockIcon : this.iconSide));
}
@Override
public TileEntity createNewTileEntity(World world, int i) {
return new TileEntityAnvilForge();

View File

@@ -80,11 +80,12 @@ public class TestForge extends BlockContainer {
}
public Item getItemDropped(int par1, Random random, int par3) {
return Item.getItemFromBlock(ModBlocks.testForge);
return null;
}
public Item getItem(World world, int par2, int par3, int par4) {
return Item.getItemFromBlock(ModBlocks.testForge);
//return Item.getItemFromBlock(ModBlocks.testForge);
return null;
}
@Override

View File

@@ -16,8 +16,8 @@ public class FuelHandler implements IFuelHandler
//MagnumOpus.logger.info("fuel handler: " + fuel);
/** Mod Real Fuel Items **/
if ( stack.isItemEqual(new ItemStack(ModItems.itemShit)) ) { return 600; }
else if ( stack.isItemEqual(new ItemStack(ModBlocks.shitblock)) ) { return 3200; }
if ( stack.isItemEqual(new ItemStack(ModItems.itemShit)) ) { return 150; }
else if ( stack.isItemEqual(new ItemStack(ModBlocks.shitblock)) ) { return 1500; }
/** that is all **/

View File

@@ -42,8 +42,6 @@ public class ForgeRenderer extends TileEntitySpecialRenderer {
GL11.glPushMatrix();
GL11.glTranslatef((float) x, (float) y, (float) z);
if(tileEntity.getStackInSlot(1) != null){
entItem1 = new EntityItem(tileEntity.getWorldObj(), x, y, z, tileEntity.getStackInSlot(1));
GL11.glPushMatrix();
@@ -95,7 +93,6 @@ public class ForgeRenderer extends TileEntitySpecialRenderer {
loc = TEXTURE;
}
FMLClientHandler.instance().getClient().renderEngine.bindTexture(loc);
renderBlock(tileEntity, tile.getWorldObj(), tile.xCoord,tile.yCoord, tile.zCoord, ModBlocks.forge);
GL11.glPopMatrix();

View File

@@ -124,7 +124,7 @@ public class IRFirebox implements IItemRenderer {
case ENTITY: {
GL11.glPushMatrix();
//GL11.glScalef(1.75F, 1.75F, 1.75F);
GL11.glScalef(0.5F, 1.0F, 0.5F);
GL11.glTranslatef(0.0F, 0.5F, 0.0F);
Minecraft.getMinecraft().renderEngine.bindTexture(TEXTURE);

View File

@@ -10,6 +10,7 @@ public class TileDamascus extends TileIngotBase{
this.hot = false;
this.heatTicks = 500;
this.heatBase = 500;
}
}

View File

@@ -36,7 +36,7 @@ public class TileIngotBase extends TileEntity implements AnvilUtil{
int y = this.yCoord;
int z = this.zCoord;
if(!world.isRemote){
System.out.println(this.heatTicks);
//System.out.println(this.heatTicks);
if(this.heatTicks<=0){
world.setBlockMetadataWithNotify(x, y, z, 1, 2);
this.hot=true;

View File

@@ -9,6 +9,7 @@ public class TileIronPlate extends TileIngotBase{
this.hits = 0;
this.hot = false;
this.heatTicks = 450;
this.heatBase = 450;
}
}

View File

@@ -9,7 +9,9 @@ public class TileLapisIngot extends TileIngotBase{
this.hits = 0;
this.hot = false;
this.coolTicks = 300;
this.coolBase = 300;
this.heatTicks = 600;
this.heatBase = 600;
}
}

View File

@@ -8,9 +8,6 @@ public class TileMyIronIngot extends TileIngotBase{
super(nameCustom);
this.hits = 0;
this.hot = false;
this.heatBase = 50;
this.heatTicks = 50;
this.coolBase = 50;
}
}

View File

@@ -9,7 +9,9 @@ public class TileRedstoneIngot extends TileIngotBase{
this.hits = 0;
this.hot = false;
this.coolTicks = 300;
this.coolBase = 300;
this.heatTicks = 600;
this.heatBase = 600;
}
}

View File

@@ -22,6 +22,7 @@ import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import com.kitsu.medievalcraft.block.ModBlocks;
import com.kitsu.medievalcraft.block.ingots.IngotBase;
import com.kitsu.medievalcraft.tileents.ingots.TileIngotBase;
@@ -331,28 +332,32 @@ public class TileForge extends TileEntity implements IInventory{
return getItemBurnTime(stack) > 0;
}
//Main.sNet.sendToAll(new MsgPacketOn(tileEnt.isBurning));
//Main.sNet.sendToAll(new MsgPacketForgeX(tileEnt.xCoord));
//Main.sNet.sendToAll(new MsgPacketForgeY(tileEnt.yCoord));
//Main.sNet.sendToAll(new MsgPacketForgeZ(tileEnt.zCoord));
//Main.sNet.sendToAll(new MsgPacketBurning(tileEnt.isOn));
private void forgeMaint(World world, int x, int y, int z){
if(this.getStackInSlot(0)==null){
if(world.getBlockMetadata(x, y, z)>=4&&world.getBlockMetadata(x, y, z)<=7){
world.setBlockMetadataWithNotify(x, y, z, world.getBlockMetadata(x, y, z)-4, 2);
}
}
if(this.getStackInSlot(0)==null){
if(world.getBlockMetadata(x, y, z)>7){
world.setBlockMetadataWithNotify(x, y, z, world.getBlockMetadata(x, y, z)-8, 2);
}
}
if(this.getStackInSlot(1)==null){
if(world.getBlockMetadata(x, y, z)>=8){
world.setBlockMetadataWithNotify(x, y, z, world.getBlockMetadata(x, y, z)-4, 2);
}
}
if(world.getBlockMetadata(x, y, z)>3&&world.getBlockMetadata(x, y, z)<8){
if(this.getStackInSlot(1)!=null){
if(this.getStackInSlot(1)!=null && (world.canBlockSeeTheSky(x, y+1, z)==true)){
world.setBlockMetadataWithNotify(x, y, z, world.getBlockMetadata(x, y, z)+4, 2);
}
}
if(world.getBlockMetadata(x, y, z)>7){
if(world.rand.nextInt(5)==1){
world.setBlock(x, y+2, z, ModBlocks.blockSmoke, 0, 2);
}
}
}
}

View File

@@ -169,6 +169,7 @@ item.itemSmallBarrelLid.name
item.halfSplitBoard.name=Half Split Board
item.woodPulp.name=Wood Pulp
item.charcoalFilter.name=Charcoal Filter
item.slottedTongs.name=Stone Tongs
tile.shitBlock.name=Shit Block
tile.formTable.name=Form Table

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 711 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 805 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB