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

Item modifiers that change the item type don't work on entities

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w46a
    • Fix Version/s: 20w48a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands, Data Packs
    • Mojang Priority:
      Low

      Description

      The bug

      /item entity <targets> <slot> modify <modifier> does not work when the resulting item has a different item ID.

      Affected loot item functions

      • minecraft:enchant_with_levels (1)
      • minecraft:enchant_randomly (1)
      • minecraft:set_enchantments (1)
      • minecraft:furnace_smelt
      • minecraft:exploration_map

      (1) Only applies for books

      How to reproduce

      1. /item entity @s hotbar.0 replace minecraft:porkchop
      2. /item entity @s hotbar.0 modify mc-205321:furnace_smelt

        Replaced a slot on … with [Cooked Porkchop], but the item is still Raw Porkchop.

      data/mc-205321/item_modifiers/furnace_smelt.json
      {
          "function": "minecraft:furnace_smelt"
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              boq [Mojang] Bartosz Bok
              Reporter:
              intsuc intsuc
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: