Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-273670

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21
    • None
    • Windows 11, Java 21.0.3
    • Community Consensus
    • Data Packs, Enchantments

      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

        1. example.json
          0.6 kB
          Illusioner2520

            Unassigned Unassigned
            Illusioner2520 Illusioner2520
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: