FarmControl icon indicating copy to clipboard operation
FarmControl copied to clipboard

Add naming support

Open NathanCollaert opened this issue 4 years ago • 2 comments

Added support for controlling named mobs. Also ran the IDE optimizer through the project to make everything as uniform as possible. Updated some libraries to their latest version.

How the naming works:

  • A new name predicate was added to the GroupDefinition class just like typePredicate and excludePredicate, this predicate also works the same way as the others in the EntityGroupResult class.
  • If a name is given to a profile then only mobs with that exact name (and optional other criteria) will be counted towards that profile.
  • A name can start or end with a '*' which is a placeholder for anything (eg: *-villager = <anything here>-villager will be counted towards this group).

NathanCollaert avatar Feb 11 '22 17:02 NathanCollaert

Hey, thanks for opening a PR!

I'm not opposed to the idea, but my preference would be for such an option to be included in an "extras" add-on once there is an API for the plugin. The potential uses just seem a bit niche

froobynooby avatar Feb 12 '22 01:02 froobynooby