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

Weapons with "Bane of arthropods" enchantment to the maximum level crash the game

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: 1.15.2, 20w17a
    • Fix Version/s: None
    • Environment:
      Operating system: Windows 10 64-bit 2004 (OS Build 19041.208)
      Java: 1.8.0_51 (Bundled with the release)
    • Confirmation Status:
      Unconfirmed
    • Category:
      (Unassigned)

      Description

      When testing with my overpowered kit, I noticed that killing spiders with my bow crashes the game instantly.

      After further inspection, I concluded that having the enchantment "bane of arthropods" to any weapons that can throw projectiles such as bows and tridents with the maximum level allowed by the game according to the wiki which is 2147483647 has the potential to cause the problem mentioned previously. When killing any arthropods mods including spiders and bees using the item, the game will crash.

      Both 20w17a (1.16) and 1.15.2 are affected by the problem.

      Steps to Reproduce:

      1. Create a fresh Minecraft world.
      2. From the chat, use the following command.
        /give @p bow{Enchantments:[{id:bane_of_arthropods,lvl:2147483647}]} 1
      1. Summon a spider using the command /summon or a spawn egg.
      2. Attempt to damage the mob using the bow.
      3. Observe the problem.

      Observed Results:
      When attempting to damage the mob using the bow, the game instantly crashes.

      Expected Results:
      The bow should work the same way as a regular non-enchanted bow as "bane of arthropods" is not an enchantment designed for the item.

      Screenshots/Videos attached: Video for step-by-step reproduction

      Notes: Tridents also work as previously mentioned. Tried other projectile items including eggs and snowballs and they worked as intended.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              PhilLB1239 PhilLB1239
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: