mojira.dev
MC-151632

match_tool predicate: Enchantments in datapack doesn't work

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 }

} ]                  }                }              ],              "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

Attachments

Comments 1

Please attach the entire data pack as a zip

Nawat Sreepramoch

(Unassigned)

Unconfirmed

Minecraft 1.14

Retrieved