Skip to content

Commit

Permalink
Add missing recipes; fix saplings turning into other saplings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Aug 9, 2014
1 parent 620a557 commit 4a4c843
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ public void init () {
GameRegistry.addRecipe(new ItemStack(ModBlocks.mediumPot, 3), "x x", "x x", " x ",
'x', Blocks.hardened_clay);

for (int i = 0; i < 16; i++) {
GameRegistry.addRecipe(new ItemStack(ModBlocks.mediumPotColored, 3, i), "x x", "x x", " x ",
'x', new ItemStack(Blocks.stained_hardened_clay, 1, 15 - i));

GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.mediumPotColored, 1, i),
ModBlocks.mediumPot, new ItemStack(Items.dye, 1, i));
}

GameRegistry.addRecipe(new ItemStack(ModBlocks.potteryTable), "x", "y",
'x', Items.clay_ball, 'y', Blocks.crafting_table);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected void setBlockAndNotifyAdequately (World world, int x, int y, int z, Bl
world.setBlock(x, y, z, Blocks.air, 0, 4);

if (!(generator.generate(world, random, x, y, z)))
world.setBlock(x, y, z, this, 1, 4);
world.setBlock(x, y, z, this, id, 4);
}

@Override
Expand Down

0 comments on commit 4a4c843

Please sign in to comment.