[MC-9164] Chickens can be bred with nether wart, melon seeds, and pumpkin seeds Created: 04/Feb/13 Updated: 06/Sep/15 Resolved: 24/Aug/14 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Snapshot 13w05b, Snapshot 13w06a, Snapshot 13w07a, Snapshot 13w09a, Snapshot 13w09b, Snapshot 13w09c, Snapshot 13w10a, Snapshot 13w10b, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Snapshot 13w16b, Minecraft 1.5.2, Snapshot 13w17a, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 13w48a, Minecraft 13w48b, Minecraft 13w49a, Minecraft 1.7.3, Minecraft 1.7.4, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w10b, Minecraft 14w10c, Minecraft 14w17a, Minecraft 1.8-pre1 |
| Fix Version/s: | Minecraft 14w34d |
| Type: | Bug | ||
| Reporter: | Chumbanotz | Assignee: | Mog (Ryan Holtz) |
| Resolution: | Fixed | Votes: | 13 |
| Labels: | chickens, melon, nether, pumpkin, seeds, wart | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||||||
| Description |
|
What I expected to happen was... What really happened was... Steps to Reproduce: |
| Comments |
| Comment by Galaxy_2Alex [ 24/Aug/14 ] |
|
Works As Intended |
| Comment by Galaxy_2Alex [ 22/Aug/14 ] |
|
Reoccurs in 1.8 pre-1 |
| Comment by aaaa aaaa [ 21/Aug/14 ] |
|
Ah, nice! |
| Comment by Anon Ymus [ 20/Aug/14 ] |
|
Not sure if any of you who are complaining about the supposed new behavior have actually tested it, but they can't be bred or led with anything besides wheat seeds now. |
| Comment by Moo [ 20/Aug/14 ] |
|
Yeah, for me, the real bug is that they can be bred using these other things, not that they don't follow them. |
| Comment by Color Fusion [ 20/Aug/14 ] |
|
@Atom clark @Felipe Fernandez |
| Comment by aaaa aaaa [ 20/Aug/14 ] |
|
I can understand melon and pumpkin seeds, but Nether Wart? Since when chickens eat mushrooms/fungus? (or if they do, since when they're known for doing that?). |
| Comment by Pneuma01 [ 20/Aug/14 ] |
|
Is this really fixed ? |
| Comment by Atom clark [ 20/Aug/14 ] |
|
i don't think they should follow nether warts, they aren't exactly 'seeds', their more just a plant that grows somewhere where you don't even get chickens (with the exception of Chicken Jockeys where the rider is a baby pitman, but thats too rare to be considered) |
| Comment by Itouch2 [ 26/Apr/14 ] |
|
Confirmed for 14w17a |
| Comment by Itouch2 [ 11/Mar/14 ] |
|
Confirmed for 1.7.5 and 14w10c |
| Comment by Itouch2 [ 24/Feb/14 ] |
|
Confirmed for 08a |
| Comment by Peter [ 30/Dec/13 ] |
|
Is this issue still in 1.7.4 in survival or it's just my chickens preference? |
| Comment by Markku [ 09/Feb/13 ] |
|
Chickens eat quite a bit of stuff, not just wheat seed. However, not knowing what the nether stuff really is or how chickens would like it, I'll only say the same "seems strange to me". Also, I know what melon seeds are like, and I would think chickens wouldn't be that happy about eating them. The change to drop nether wart from follow-effect (with my fixes) and edibles (would need a change still) is easy. Also, simply dropping back to single seed (wheat's) would be just fine. However, I still think the change to allow multiple food items for tempting and breeding would be sensible in general, and just use it differently for different animals. Especially for pigs which eat just about anything. (Same seems to apply to some dogs, but that is another story.) |
| Comment by Moo [ 09/Feb/13 ] |
|
Chickens eating nether warts would seem strange to me... I'd also say they're only "seeds" for implementation reasons. |
| Comment by Markku [ 06/Feb/13 ] |
|
Chicken's code checks the item used for breeding to be any kind of seed (all seed items inherit ItemSeeds class). However, the AI task responsible for detecting and following the player with seeds in hand defines only one acceptable item type; not by class or a list of IDs. Possible fixes are either adding more tasks (each configured with different seed type) or adjusting the task implementation to allow a list of different seed types. I like the latter better... Current code EntityAITempt ...
private int breedingFood; // <-- will be changed
...
public EntityAITempt(EntityCreature creature, float par2, int breedingFoodId, boolean par4) {
this.temptedEntity = creature;
this.field_75282_b = par2;
this.breedingFood = breedingFoodId; // <-- will be changed
this.scaredByPlayerMovement = par4;
this.setMutexBits(3);
}
...
public boolean shouldExecute() {
...
ItemStack var1 = this.temptingPlayer.getCurrentEquippedItem();
return var1 == null ? false : var1.itemID == this.breedingFood; // <-- will be changed
}
}
}
EntityChicken public EntityChicken(World world) { ... this.tasks.addTask(3, new EntityAITempt(this, 0.25F, Item.seeds.itemID, false)); ... } Fix EntityAITempt ...
private int[] breedingFoods; // <-- part of fix
...
public EntityAITempt(EntityCreature creature, float par2, int breedingFoodId, boolean par4) {
this.temptedEntity = creature;
this.field_75282_b = par2;
this.breedingFoods = new int[] { breedingFoodId }; // <-- part of fix
this.scaredByPlayerMovement = par4;
this.setMutexBits(3);
}
// New method
public EntityAITempt(EntityCreature par1EntityCreature, float par2, int[] breedingFoodIds, boolean par4) {
this.temptedEntity = par1EntityCreature;
this.field_75282_b = par2;
this.breedingFoods = breedingFoodIds;
this.scaredByPlayerMovement = par4;
this.setMutexBits(3);
}
...
public boolean shouldExecute() {
...
ItemStack var1 = this.temptingPlayer.getCurrentEquippedItem();
if (var1 == null)
return false;
for (int i = 0; i < this.breedingFoods.length; i++)
if (var1.itemID == this.breedingFoods[i])
return true;
return false;
}
}
}
EntityChicken public EntityChicken(World world) { ... this.tasks.addTask(3, new EntityAITempt(this, 0.25F, new int[] { Item.seeds.itemID, Item.melonSeeds.itemID, Item.netherStalkSeeds.itemID, Item.pumpkinSeeds.itemID }, false)); ... } Changes tested on 1.4.7 and they work. Now where did I put that lava bucket, too many chickens love me... |
| Comment by Tails [ 06/Feb/13 ] |
|
Added Nether Wart. |