Repository navigation
Replies: 2 comments
|
Thanks, I did not realize. I also found a workaround for my problem of making these mobs passive: Just cancel the targeting event if the target is a player. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem?
I'd like to use the goals api to change mob behaviour. It's working very nicely for the mobs that are mapped. But, for some mobs, such as Piglins, the
Bukkit.getAllGoals()doesn't return any goals (Not even inherited from Creaturs/Monster). So I can't remove or replace goals.Looking at this file
VanillaGoal.java, there seems to be a mapping for crossbow attack, but it's not mapped to any creature.https://github.com/PaperMC/Paper/blob/master/paper-api-generator/generated/com/destroystokyo/paper/entity/ai/VanillaGoal.java
Describe the solution you'd like.
Add Default mapping of monster and creture inheritance of all mobs respectively for future-proofing
Describe alternatives you've considered.
I've looked into workarounds but I'm not savvy enough to get anywhere.
Other
This is my function to make monsters passive.
For zombies, skeletons, etc. it works. But here are some mobs that don't:
No goals found for Zoglin
No goals found for Piglin Brute
No goals found for Axolotl
No goals found for Goat
No goals found for Allay
All reactions