mojira.dev
MC-273670

Snowball enchanted with custom enchantment doesn't call minecraft:post_attack after hitting an entity after being thrown

Enchanted Snowballs that have custom enchantments through datapacks don't call minecraft:post_attack when hitting an entity.

 

Steps to reproduce:

  1. Create a datapack with a custom enchantment that is able to be placed on snowballs (example enchantment json below)

  2. Open the world and gain an enchanted snowball

  3. Throw the snowball at an entity

  4. The function in post_attack wont run

Attachments

Comments 2

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.

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

Illusioner2520

(Unassigned)

Community Consensus

Data Packs, Enchantments

1.21

Retrieved