Add initial docs for Entity Pathfinders and Mob Goal API#289
Add initial docs for Entity Pathfinders and Mob Goal API#289olijeffers0n wants to merge 6 commits intomainfrom
Conversation
|
this needs notes on how vanilla selects which goals to activate and prolly some more caveats on how pathfinding works from somebody who actually uses the pathfinder, iirc it can ge all kinda wonky to call moveTo every tick. |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
| :::tip | ||
|
|
||
| You can access the Vanilla goals from the `VanillaGoal` class. These are the goals that are used by Vanilla Minecraft. | ||
| They are specific to each mob type, so you can't use `VanillaGoal.BEE_ATTACK` on a Zombie, for example. | ||
|
|
||
| ::: |
There was a problem hiding this comment.
This feels confusing as it kinda reads as if one could create Vanilla goals entities (especially under the register section) which isn't possible right now.
e759306 to
32c1b73
Compare
zlataovce
left a comment
There was a problem hiding this comment.
the casing is a bit wonky in several places beyond my comments, but otherwise lgtm
|
|
||
| ::: | ||
|
|
||
| ## Creating a Custom Goal |
There was a problem hiding this comment.
| ## Creating a Custom Goal | |
| ## Creating a custom Goal |
| Location destination = path.getFinalPoint(); | ||
| ``` | ||
|
|
||
| ## Pathfinding Rules |
There was a problem hiding this comment.
| ## Pathfinding Rules | |
| ## Pathfinding rules |
|
As far as I'm aware of that's just the grammatical rules of titles in English. Basically everything but "a", "the", etc. should be uppercase if I'm not mistaken? See Title case (but Wikipedia itself doesn't use that but sentence casing, which imo. Is easier to read but can feel unnatural in headings) |
we use sentence case in most places throughout the site |
d028fab to
c948fc3
Compare
I have not extensively used either of these API's in the past, however these seem to work
closes #265