Proper recipe for TeaCup that gives a full teacup.Nerfed the bufs from tea.

Oh boy, the speed buf was OP...
dev
Decebaldecebal 2015-07-09 13:31:32 +03:00
parent baf84f1d15
commit bb66a71f36
2 changed files with 3 additions and 3 deletions

View File

@ -448,7 +448,7 @@ public class InitRecipes
GameRegistry.addRecipe(new ItemStack(InitItems.itemTeapot, 1, 0), "BB ", "B B", "BB ", 'B', Items.brick);
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemTeapot, 1, 1), Items.potionitem, new ItemStack(InitItems.itemTeapot, 1, 0));
GameRegistry.addRecipe(new ItemStack(InitItems.itemTeapot, 1, 8), "SLS", "LPL", "SLS", 'P', new ItemStack(InitItems.itemTeapot, 1, 2), 'L',
GameRegistry.addRecipe(new ItemStack(InitItems.itemTeapot, 1, 12), "SLS", "LPL", "SLS", 'P', new ItemStack(InitItems.itemTeapot, 1, 2), 'L',
InitItems.itemTeaLeaf, 'S', Items.sugar);
GameRegistry.addRecipe(new ItemStack(InitItems.itemTeacup), "B B", " B ", 'B', Items.clay_ball);

View File

@ -56,8 +56,8 @@ public class ItemTeacup extends BaseItemWithMetadata
{
if(stack.getItemDamage() > 0)
{
player.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 50, 100));
player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 50, 100));
player.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 50, 10));
player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 50, 10));
player.getFoodStats().addStats(1, 0);
world.playSoundAtEntity(player, "random.burp", 0.5F, (world.rand.nextFloat() * 0.1F) + 0.9F);
stack.setItemDamage(stack.getItemDamage() - 1);