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

match_tool predicate: Enchantments in datapack doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.14
    • None
    • Unconfirmed

      Following the steps:

      1. I created datapacks like this.

      {{  "type": "minecraft:block",  "pools": [    {      "rolls": 1,      "entries": [        {          "type": "minecraft:alternatives",          "children": [            {              "type": "minecraft:item",              "conditions": [                {                  "condition": "minecraft:match_tool",                  "predicate": {                    "enchantments": [ { "enchantment": "minecraft:silk_touch", "levels":

      { "min": 1 }

      {color:#FF0000}} ]                  }                }              ],              "name": "minecraft:campfire"            },           

      {              "type": "minecraft:item",              "conditions": [                \{                  "condition": "minecraft:survives_explosion"                }

                    ],              "name": "minecraft:campfire"            }          ]        }      ]    }  ]}

      2. I break a campfire with no silk_touch ,but I got campfire not coal

            Unassigned Unassigned
            pluemzazaminecraft8991@gmail.com Nawat Sreepramoch
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: