added clean iron block, textures, and hot

This commit is contained in:
Mohammad-Ali Minaie
2017-04-02 22:16:04 -04:00
parent 0efdd46d61
commit cd8365533a
11 changed files with 40 additions and 22 deletions

View File

@@ -2,6 +2,7 @@ To-Dos
*** Bugs *** *** Bugs ***
- [ ] Duplication Bug for Tool Repair - [ ] Duplication Bug for Tool Repair
- [ ] Can't remove cool ingots from Forge
*** Priority *** *** Priority ***
- [ ] Make an Iron Anvil - [ ] Make an Iron Anvil

View File

@@ -1,5 +1,6 @@
package nmd.primal.forgecraft.blocks; package nmd.primal.forgecraft.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.ITileEntityProvider; import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.IProperty;
@@ -156,16 +157,11 @@ public class Forge extends CustomContainerFacing implements ITileEntityProvider/
***********************/ ***********************/
//REMOVE COOL INGOT //REMOVE COOL INGOT
if(facing == EnumFacing.UP ) { if(facing == EnumFacing.UP ) {
if (pItem.isEmpty()) { /*if (pItem.isEmpty()) {
for (int i = 2; i < tile.getSlotListSize(); i++) { for (int i = 2; i < tile.getSlotListSize(); i++) {
//System.out.println(i); //System.out.println(i);
if (!tile.getSlotStack(i).isEmpty()) { if (!tile.getSlotStack(i).isEmpty()) {
if (tile.getSlotStack(i).getItem().equals(new ItemStack(ModBlocks.ironchunk).getItem())) { if (Block.getBlockFromItem(tile.getSlotStack(i).getItem()) instanceof IngotBall) {
CommonUtils.spawnItemEntity(world, player, tile.getSlotStack(i));
tile.setSlotStack(i, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(i).getItem().equals(new ItemStack(ModBlocks.ironball).getItem())) {
CommonUtils.spawnItemEntity(world, player, tile.getSlotStack(i)); CommonUtils.spawnItemEntity(world, player, tile.getSlotStack(i));
tile.setSlotStack(i, ItemStack.EMPTY); tile.setSlotStack(i, ItemStack.EMPTY);
return true; return true;
@@ -177,13 +173,12 @@ public class Forge extends CustomContainerFacing implements ITileEntityProvider/
return true; return true;
} }
} }
}
} }
} }
}*/
if (pItem.getItem().equals(new ItemStack(ModBlocks.ironchunk).getItem())) { if (Block.getBlockFromItem(pItem.getItem()) instanceof IngotBall) {
//System.out.println("Activating"); //System.out.println("Activating");
for (int i = 2; i <= tile.getSlotListSize(); i++) { for (int i = 2; i <= tile.getSlotListSize(); i++) {
if (tile.getSlotStack(i).isEmpty()) { if (tile.getSlotStack(i).isEmpty()) {
@@ -193,15 +188,6 @@ public class Forge extends CustomContainerFacing implements ITileEntityProvider/
} }
} }
} }
if (pItem.getItem().equals(new ItemStack(ModBlocks.ironball).getItem())) {
for (int i = 2; i < tile.getSlotListSize(); i++) {
if (tile.getSlotStack(i).isEmpty()) {
tile.setSlotStack(i, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
}
//Needs Ore Dictionary Compat //Needs Ore Dictionary Compat
if (pItem.getItem().equals(new ItemStack(Items.IRON_INGOT).getItem())) { if (pItem.getItem().equals(new ItemStack(Items.IRON_INGOT).getItem())) {
for (int i = 2; i < 7; i++) { for (int i = 2; i < 7; i++) {

View File

@@ -1,6 +1,3 @@
{ {
"forge_marker":1, "forge_marker":1,
"defaults": { "defaults": {

View File

@@ -0,0 +1,26 @@
{
"forge_marker":1,
"defaults": {
"textures": {
"particle": "forgecraft:blocks/clean_iron_ingot",
"texture": "forgecraft:blocks/clean_iron_ingot"
},
"parent": "forgecraft:ironball"
},
"variants": {
"active=false": {
"model": "forgecraft:ironball",
"textures": {
"particle": "forgecraft:blocks/clean_iron_ingot",
"texture": "forgecraft:blocks/clean_iron_ingot"
}
},
"active=true": {
"model": "forgecraft:ironball",
"textures": {
"particle": "forgecraft:blocks/clean_iron_ingot_hot",
"texture": "forgecraft:blocks/clean_iron_ingot_hot"
}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

View File

@@ -0,0 +1,8 @@
{
"forge_marker":1,
"textures": {
"particle": "forgecraft:blocks/clean_iron_ingot",
"texture": "forgecraft:blocks/clean_iron_ingot"
},
"parent": "forgecraft:block/ironball"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 741 B

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 741 B

After

Width:  |  Height:  |  Size: 601 B