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

Game crashes with custom enchantment's "rotated_block_provider"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w20a
    • 24w18a
    • None
    • Confirmed
    • Crash, Enchantments
    • Important
    • Platform

      When using the "rotated_block_provider" block state in the "minecraft:replace_block" effect for an enchantment that is triggered when an arrow hits a block, the game crashes.

       

      How to reproduce:

      Download the attached data pack and enchant your bow with the "minecraft:crash" enchantment. Then shoot an arrow at any block that doesn't have an axis.

       

      Crash Report:
      The game crashed whilst ticking entity
      Error: java.lang.IllegalArgumentException: Cannot set property dtf

      {name=axis, clazz=class jf$a, values=[x, y, z]}

      as it does not exist in Block{minecraft:stone}

            gegy1000 [Mojang] Gegy
            SilicatYT SilicatYT
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: