From 79f37cfd42c53af7969fba388b711955e389b76d Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Sun, 27 May 2018 15:03:29 +1000 Subject: + Added ability to disassemble Large eggs into Stem Cells. % Updated Large egg tooltips. % Made the Giant Chickens occasionally try and fly around. $ Small fix to writeItemsToGtCraftingComponents() in NBTUtils.java. --- .../core/entity/monster/EntityGiantChickenBase.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/Java/gtPlusPlus/core/entity') diff --git a/src/Java/gtPlusPlus/core/entity/monster/EntityGiantChickenBase.java b/src/Java/gtPlusPlus/core/entity/monster/EntityGiantChickenBase.java index 4313b0cc45..35b9321ece 100644 --- a/src/Java/gtPlusPlus/core/entity/monster/EntityGiantChickenBase.java +++ b/src/Java/gtPlusPlus/core/entity/monster/EntityGiantChickenBase.java @@ -81,6 +81,10 @@ public class EntityGiantChickenBase extends EntityChicken { { this.motionY *= 0.6D; } + + if (MathUtils.randInt(0, 10000) <= 5) { + jump(); + } this.field_70886_e += this.field_70889_i * 2.0F; @@ -101,7 +105,13 @@ public class EntityGiantChickenBase extends EntityChicken { /** * Called when the mob is falling. Calculates and applies fall damage. */ - protected void fall(float p_70069_1_) {} + protected void fall(float p_70069_1_) { + + if (MathUtils.randInt(0, 10) <= 5) { + jump(); + } + + } protected Item getDropItem() { @@ -260,6 +270,7 @@ public class EntityGiantChickenBase extends EntityChicken { @Override protected void jump() { this.motionY = 0.68999998688697815D; + this.motionY += 0.068999998688697815D; if (this.isPotionActive(Potion.jump)) { this.motionY += (double)((float)(this.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.5F); @@ -273,6 +284,11 @@ public class EntityGiantChickenBase extends EntityChicken { } this.isAirBorne = true; + + if (MathUtils.randInt(0, 10) < 10) { + jump(); + } + ForgeHooks.onLivingJump(this); } -- cgit