Enchanted Snowballs that have custom enchantments through datapacks don't call minecraft:post_attack when hitting an entity.
Steps to reproduce:
Create a datapack with a custom enchantment that is able to be placed on snowballs (example enchantment json below)
Open the world and gain an enchanted snowball
Throw the snowball at an entity
The function in post_attack wont run
Attachments
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm. I've attached a data pack containing your example enchantment and a function that should run when you hit a mob with a snowball enchanted with it.