HyperPigeon / HyperPigeon/Eldritch-Mobs
Attempting to create a "Flyer" ability
- Dominant language
- Java
- Stars
- 8
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
As stated. The goal is for the mob to be able to fly toward its target, particularly in situations where the server has flight mods. However, I can't figure out how the coordinates of {target} and {self} are exposed.
For instance, this is one of my attempts. I've tried several permutations of this to no avail. The following doesn't resolve.
`"command": "execute as {self} at {self} run data merge entity {self} {NoGravity:1b,Motion:[({target}.x-{self}.x)*0.1,({target}.x-{self}.x)*0.1,({target}.z-{self}.z)*0.1]}"`
As a test, I can simply make the mob rise into the air. Obviously yeeting itself toward the flying player is the goal.
`"command": "execute as {self} at {self} run data merge entity {self} {NoGravity:1b,Motion:[0.0,0.5,0.0]}"`
The above works, I just can't figure out how to make it work dynamically.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing how the command examples expose or substitute {self} and {target} coordinates. Compare the working upward-motion command with the attempted dynamic Motion command, then verify that the mob can move toward a flying target without breaking existing command behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100