Mojira Archive
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 }

{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

Awaiting Response

Nawat Sreepramoch

2019-05-12, 05:32 PM

2019-08-01, 09:08 PM

2019-08-01, 09:08 PM

1

1

Unconfirmed

Minecraft 1.14

-