mojira.dev

Syrenyx

Assigned

No issues.

Reported

MC-299373 Server-client desync in tick order execution Plausible MC-298937 post_attack enchantment effect component does not trigger for summoned arrows/arrows without Owner Confirmed

Comments

Steps to Reproduce:
To reproduce with the attached pack installed:

  1. Use the command /summon minecraft:arrow ~ ~ ~ {"weapon":{"id":"minecraft:bow","components":{"minecraft:enchantments":{"mc_298937:enchantment":1}}}} above a living entity susceptible to damage (example minecraft:zombie) and have it hit the entity.

Observed Result:
The enchantments minecraft:post_attack effect component fails to trigger its effect.

Expected Result:
The defined minecraft:post_attack effect should write Successfully Triggered Function Effect in the game chat via its function effect.

Additional Information:
Conversely, using a bow with the enchantment (/give @s minecraft:bow[minecraft:enchantments={"mc_298937:enchantment":1}]) to shoot the same entity will trigger the effect as expected.

In the same vein, summoning an arrow with the enchantment and an Owner defined will also trigger the effect when it deals damage so long as the owner is a living entity:

  • /summon minecraft:zombie ~ ~ ~ {UUID:[I;0,0,0,0]}

  • /summon minecraft:arrow ~ ~ ~ {"Owner":[I;0,0,0,0],"weapon":{"id":"minecraft:bow","components":{"minecraft:enchantments":{"mc_298937:enchantment":1}}}}

Datapack for 25w31a, latest development version at time of response:

[media]