quat1024 / apathy

Apathetic Mobs but it's Overengineered
9 stars 5 forks source link

Add Scoreboard predicate in mob.json ? #2

Closed Bluberry-Kat closed 2 years ago

Bluberry-Kat commented 2 years ago

This is kind of a huge disaster and I don't know how possible it is
The conceptual use-case is something like Runescape, where certain mobs target you by default, but stop being hostile outright if you're a good deal stronger than them.
For this case I (as a pack developer) would manually track a player's "strength" via some kind of heuristic inside a Scoreboard, and deny the mob's aggression if said scoreboard passes a certain comparison (probably a json object for common arithmetic comparisons, like less-than, greater-than, etc)
That's just for the specific use-case I have in mind; datapacks are scary and I'm sure someone will figure out more things it could be used for

quat1024 commented 2 years ago

Neat idea. Added this in 2.0 which is on curse and modrinth right now. Documentation here.