diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-05-27 15:03:29 +1000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-05-27 15:03:29 +1000 |
commit | 79f37cfd42c53af7969fba388b711955e389b76d (patch) | |
tree | 3b1c23174f11d95be12c77747a1fed570f8884a0 /src/Java/gtPlusPlus/core/entity | |
parent | 087fbb268c0fa9ff82fb0f3d30cd45c35aa57f6a (diff) | |
download | GT5-Unofficial-79f37cfd42c53af7969fba388b711955e389b76d.tar.gz GT5-Unofficial-79f37cfd42c53af7969fba388b711955e389b76d.tar.bz2 GT5-Unofficial-79f37cfd42c53af7969fba388b711955e389b76d.zip |
+ 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.
Diffstat (limited to 'src/Java/gtPlusPlus/core/entity')
-rw-r--r-- | src/Java/gtPlusPlus/core/entity/monster/EntityGiantChickenBase.java | 18 |
1 files changed, 17 insertions, 1 deletions
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); } |