Added ability to make twine out of tall grass and ferns.
parent
f4f9cd20f6
commit
ba5000857e
|
@ -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))
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue