Silk Moth should be able to breed just like Bees [Suggestion]
ChristopherJ123 opened this issue · 8 comments
Description
Bees can be bred with flowers, I think the same should apply with silk moth, this is useful especially for silk farms.
PSA--and I have literally just confirmed this--Silk moths are breedable in the current version of the game.
Because SilkMothEntity implements DespawnableAnimal
and DespawnableAnimal
is an extremely minimal abstract class that extends Animal
, SilkMothEntity
inherits the default behavior from the Animal
abstract class where, explicity:
// I prefer the Yarn mapping which calls this method isBreedingItem
public boolean isFood(ItemStack itemStack) {
return itemStack.is(Items.WHEAT);
}
That is, if you want baby silk moths, feed 'em wheat!
Just make sure to name them, as otherwise:
@Override public boolean removeWhenFarAway(double d) { return !this.hasCustomName(); }
Thanks for the info!😊 This will help alot!
But still it doesn't make sense to feed them with wheat, maybe using betterend plants is more accurate. Also, the despawn when far away without name tag could be improved to work similarly with bees, they shouldn't despawn.
@ChristopherJ123 see my PR (#109). I believe making a silk moth farm right now would be an exercise in futility, given that un-named moths despawn (and named ones might lose their names on saving / loading).
I'd love your input on the changes I've proposed, especially regarding what item or items can put a moth into "love mode."
I'd love your input on the changes I've proposed, especially regarding what item or items can put a moth into "love mode."
Perhaps blossom berry could be a potential breeding item, considering it has a flower and similarly how bees are attracted to flowers, also they are in the same biome with silk moths. Blossom berry seeds could also be a choice. What do oyu think🙂
Thanks again for the PR. I just changed some minor details. Mainly that the food item is a blossom berry and that the moths will follow players holding a blossom berry (otherwise I found it quite hard to give them the food :D )