Question Datapack using advancements to run functions on newly spawned item not working.

jpeterik12

New member
Feb 1, 2022
2
0
1
I have a data pack that modifies beehive items by using an advancement trigger to detect when one is broken, then running a reward function to find and modify the item. In vanilla, the reward runs after the item is created and can modify the item, but in paper, it seems that the item cannot be found in the reward function.

In order to fix this, I was wondering what the possible cause was, so I ask:
Does paper process advancement rewards differently than vanilla?
Are item drops from blocks processed on another thread/different order?
or is there some other reason why this pack would not work?
 

jpeterik12

New member
Feb 1, 2022
2
0
1
1. Load Datapack
2. Break beehive/beenest with a silk touch axe in survival
3. In vanilla chat will have [Beehive] hi or [Bee Nest] hi, while in paper you don't get that.
 

Attachments

  • Test_DP.zip
    14.4 KB · Views: 2