Random Things

Random Things

44M Downloads

Request: Allow entity filters to tell different variants of a mob apart, such as babies and villager professions

TheDeviantCrafter opened this issue ยท 2 comments

commented

Right now, the entity filter is only capable of storing the entity ID of the mob you click on. I'd like it to also tell different mob variants apart. Specifically:

  • Animals: Treat baby animals as a different mob

  • Villagers: Treat each profession as a different mob

  • Creepers: Treat charged creepers as a different mob

  • Chickens and spider: Treat jockies as a different mob

  • Zombie villagers: Treat each profession as a different mob

This should only happen when sorting multiple variants of the same mob. For example, if a filtered redirection plate is sorting blacksmith villagers one direction and librarians in another, it will treat them as separate.

If it's sorting villagers one direction and cows another, however, it will treat all cows and all villagers as the same mob. This should cut down on cases where you just want to sort zombie villagers from other hostile mobs and don't want to create 15 different filters, one for each profession.

commented

That would require a lot of NBT reading

commented

Would that have a significant performance impact? My intuition is that it wouldn't be much worse than just checking the entity ID.