mojira.dev

Myro

Assigned

No issues.

Reported

MCPE-230424 X and Z values in the "offset" array in projectile and behavior. fire_at_target components cannot be set relative to entity rotation, making them useless Confirmed

Comments

I tried to implement a dummy entity but since I don’t want the entity to shoot on its own when mounted by a player it seams that in that case it doesn’t work (or a tleast I don’t have the knowledge to make it work…)

So please take a look at it (I understand that is might seam like a small error but I haven’t found a way to work around it)

I can try to get around with the dummy entity but how do I trigger that correctly with an entity that can shoot and bite?

Plus I keep asking myself why fire at target has an offset but not with the entities rotation….

Steps to reproduce:
1.)make a custom entity with fire at target and make it not shoot from the center
2.) make the entity fire at a target in different directions (like south, north, east, west)
Result:

The entity seams to not offset the projectile from its geometry but rater into for example north. Meaning the entity fire either from its mouth or above its back end.
Expected result:
for it to always fire from its mouth. (and why is there no good documentation for what the numbers on the anchor means?)
added visual:
spawn the cherry dragon. place a monster at least 6 blocks away and see its green projectile (might not be good for visibility in the video but thats all I can do…). Do that for all 4 direction (or more directions if needed) and make note of where the projectile spawns.

[media: demo fire at target.mp4]

Now follows the addon, please note that it contains more material (work in progress) that isn’t needed for the problem and this is purely about fire at target (and the cherry dragon behavior has no errors in it)

[media]

@[Mod] Celesian I am running into the same error with minecraft:equippable in the entity file in file version 1.21.0 also when the game version is the copper drop so the last update that was released (if I add a timer of 0.05 in between or trigger the event via command later on everything works as expected (if needed I can make a video/provide my code))