From e25cf207a6559d788fb860adab4735a8ce87784d Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Mon, 7 Mar 2016 20:46:05 -0600 Subject: [PATCH] Let rabbits spawn from cocoon of cparice --- .../java/vazkii/botania/common/block/tile/TileCocoon.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/vazkii/botania/common/block/tile/TileCocoon.java b/src/main/java/vazkii/botania/common/block/tile/TileCocoon.java index 2d1149197..80d48a254 100644 --- a/src/main/java/vazkii/botania/common/block/tile/TileCocoon.java +++ b/src/main/java/vazkii/botania/common/block/tile/TileCocoon.java @@ -18,6 +18,7 @@ import net.minecraft.entity.passive.EntityHorse; import net.minecraft.entity.passive.EntityMooshroom; import net.minecraft.entity.passive.EntityOcelot; import net.minecraft.entity.passive.EntityPig; +import net.minecraft.entity.passive.EntityRabbit; import net.minecraft.entity.passive.EntitySheep; import net.minecraft.entity.passive.EntityVillager; import net.minecraft.entity.passive.EntityWolf; @@ -70,7 +71,7 @@ public class TileCocoon extends TileMod { break; } } else { - int entityType = worldObj.rand.nextInt(4); + int entityType = worldObj.rand.nextInt(5); switch(entityType) { case 0: entity = new EntitySheep(worldObj); @@ -86,6 +87,9 @@ public class TileCocoon extends TileMod { case 3: entity = new EntityChicken(worldObj); break; + case 4: + entity = new EntityRabbit(worldObj); + break; } } }