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

Stonecutting recipe won't verify whether "result" key is invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.3
    • None
    • Community Consensus
    • Data Packs
    • Low
    • Platform

      Normally, if a json in datapack quote an invalid object, the file could not be loaded by minecraft, which equals the file does not exist.

      But somehow, when it turns to a recipe ' "type": "minecraft:stonecutting" ', game will NOT verify whether the "result" is valid AT ALL! In other words, if a stonecutting recpie has an invalid result, minecraft would still regard it as a valid one, and will load it while automatically replace the invalid result with "minecraft:air", item.

      The bug exists since introduced in 1.14. Capture is in 1.19.3, and the json is the recipe itself.

       

      一般来说,如果数据包的json文件引用了无效的对象,那么这个文件无法被游戏加载,等同于不存在。

      但是,在切石的配方中,游戏不会检测产物的合法性。换句话说,如果切石机的产物不存在,游戏仍然会视为是一个合法的配方,并且能够加载,其产物会自动替换为空气

      这个bug在1.14引入以来,至目前的最新版1.19.3为止一直存在。图为1.19.3的截图,附件为对应的无效配方。

       

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

              Created:
              Updated:
              CHK: