Added ability to make twine out of tall grass and ferns.

master
einsteinsci 2015-12-23 11:42:26 -08:00
parent f4f9cd20f6
commit ba5000857e
2 changed files with 19 additions and 15 deletions

View File

@ -245,21 +245,21 @@ public class BBEventHandler
}
// Tripwire -> thread
if (block == Blocks.tripwire)
{
int rem = 0;
for (int i = 0; i < e.drops.size(); i++)
{
if (e.drops.get(i).getItem() == Items.string)
{
rem = i;
}
}
int count = e.drops.get(rem).stackSize; // Almost certainly 1.
e.drops.remove(rem);
e.drops.add(new ItemStack(RegisterItems.thread, count));
}
//if (block == Blocks.tripwire)
//{
// int rem = 0;
// for (int i = 0; i < e.drops.size(); i++)
// {
// if (e.drops.get(i).getItem() == Items.string)
// {
// rem = i;
// }
// }
//
// int count = e.drops.get(rem).stackSize; // Almost certainly 1.
// e.drops.remove(rem);
// e.drops.add(new ItemStack(RegisterItems.thread, count));
//}
// Makes sure emergency escape mechanic does not let blocks fall out (like logs)
if (BBConfig.alwaysBreakable.contains(block))

View File

@ -39,6 +39,10 @@ public class RegisterRecipes
// Twine
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(RegisterItems.twine, 2), Blocks.vine, "itemKnife"));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(RegisterItems.twine),
new ItemStack(Blocks.tallgrass, 1, 1), "itemKnife"));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(RegisterItems.twine),
new ItemStack(Blocks.tallgrass, 1, 2), "itemKnife"));
// Roasting Stick
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(RegisterItems.roastingStick),