mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-10-26 14:24:22 +00:00
Let rabbits spawn from cocoon of cparice
This commit is contained in:
1 parent
c74e77d9fc
commit
e25cf207a6
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user