we can build iron chunks and anvils with the ghallegher, need to add crafting recipe for the forgehammer
This commit is contained in:
@@ -4,7 +4,7 @@ To-Dos
|
||||
- [x] Stone Anvil
|
||||
- [x] Stone Anvil Inventory
|
||||
- [x] Stone Anvil Tile
|
||||
- [ ] Stone Anvil Crafting
|
||||
- [x] Stone Anvil Crafting
|
||||
- [x] TESR Inventory Rendering for Anvil
|
||||
|
||||
- [x] Iron Chunk Item Model
|
||||
@@ -13,8 +13,10 @@ To-Dos
|
||||
- [x] StoneTongs Iron Chunks
|
||||
|
||||
- [ ] Hammer Crafting
|
||||
- [ ] Iron Chunking
|
||||
|
||||
- [x] Iron Chunking
|
||||
- [ ] Toolhead Recipes
|
||||
- [ ] WeaponHead recipes
|
||||
- [ ] Add forgehammer to oreDict
|
||||
|
||||
|
||||
*** Backlog ***
|
||||
|
||||
@@ -87,6 +87,7 @@ public class Anvil extends CustomContainerFacing {
|
||||
AnvilCrafting recipe = AnvilCrafting.getRecipe(tempArray);
|
||||
if(recipe != null) {
|
||||
CommonUtils.spawnItemEntityFromWorld(world, pos, recipe.getOutput());
|
||||
world.playEvent(1031, pos, 0);
|
||||
for (int i = 0; i < tile.getSlotListSize(); i++) {
|
||||
if (!tile.getSlotStack(i).isEmpty()) {
|
||||
tile.setSlotStack(i, ItemStack.EMPTY);
|
||||
|
||||
@@ -24,6 +24,7 @@ import nmd.primal.core.common.blocks.PrimalBlock;
|
||||
import nmd.primal.forgecraft.CommonUtils;
|
||||
import nmd.primal.forgecraft.blocks.*;
|
||||
import nmd.primal.forgecraft.items.blocks.ItemBlockIngotBall;
|
||||
import nmd.primal.forgecraft.tiles.TileAnvil;
|
||||
|
||||
/**
|
||||
* Created by kitsu on 11/26/2016.
|
||||
@@ -99,6 +100,36 @@ public class ModBlocks {
|
||||
//CommonUtils.spawnItemEntityFromWorld(world, pos, new ItemStack(ModBlocks.stoneanvil, 1));
|
||||
return true;
|
||||
}
|
||||
if (pItem.equals(PrimalItems.STONE_GALLAGHER) && world.getBlockState(belowPos).getBlock().equals(ModBlocks.stoneanvil)) {
|
||||
TileAnvil tile = (TileAnvil) world.getTileEntity(belowPos);
|
||||
|
||||
|
||||
if (tile.getSlotStack(6).isEmpty() &&
|
||||
tile.getSlotStack(7).isEmpty() &&
|
||||
tile.getSlotStack(8).isEmpty() &&
|
||||
tile.getSlotStack(11).isEmpty() &&
|
||||
tile.getSlotStack(12).isEmpty() &&
|
||||
tile.getSlotStack(13).isEmpty() &&
|
||||
tile.getSlotStack(16).isEmpty() &&
|
||||
tile.getSlotStack(17).isEmpty() &&
|
||||
tile.getSlotStack(18).isEmpty()
|
||||
) {
|
||||
player.swingArm(hand);
|
||||
world.setBlockState(pos, Blocks.AIR.getDefaultState(), 2);
|
||||
tile.setSlotStack(6, new ItemStack(ModItems.ironchunkhot, 1));
|
||||
tile.setSlotStack(7, new ItemStack(ModItems.ironchunkhot, 1));
|
||||
tile.setSlotStack(8, new ItemStack(ModItems.ironchunkhot, 1));
|
||||
tile.setSlotStack(11, new ItemStack(ModItems.ironchunkhot, 1));
|
||||
tile.setSlotStack(12, new ItemStack(ModItems.ironchunkhot, 1));
|
||||
tile.setSlotStack(13, new ItemStack(ModItems.ironchunkhot, 1));
|
||||
tile.setSlotStack(16, new ItemStack(ModItems.ironchunkhot, 1));
|
||||
tile.setSlotStack(17, new ItemStack(ModItems.ironchunkhot, 1));
|
||||
tile.setSlotStack(18, new ItemStack(ModItems.ironchunkhot, 1));
|
||||
world.playEvent(1031, pos, 0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -150,25 +150,13 @@ public class ModCrafting {
|
||||
1.0f
|
||||
);
|
||||
|
||||
//Makes a Charred Tool Handle
|
||||
ForgeCrafting.addRecipe(
|
||||
ModBlocks.ironchunk,
|
||||
ModBlocks.ironchunk.getDefaultState().withProperty(IngotBall.ACTIVE, false),
|
||||
ModBlocks.ironchunk.getDefaultState().withProperty(IngotBall.ACTIVE, true),
|
||||
new ItemStack(ModBlocks.ironchunk, 1),
|
||||
ModBlocks.ironchunk.getDefaultState().withProperty(IngotBall.ACTIVE, false),
|
||||
800,
|
||||
170,
|
||||
400,
|
||||
1.0f,
|
||||
1.0f
|
||||
);
|
||||
|
||||
// ***************************************************************************** //
|
||||
// ANVILING
|
||||
// ***************************************************************************** //
|
||||
|
||||
//AnvilCrafting.addRecipe(6781014, new ItemStack(Blocks.OBSIDIAN, 1));
|
||||
|
||||
|
||||
//Makes a Pickaxe Head
|
||||
AnvilCrafting.addRecipe(
|
||||
new Integer[] { 0,0,0,0,0,
|
||||
0,1,1,1,0,
|
||||
|
||||
Reference in New Issue
Block a user