SuperMartijn642 / ConnectedGlass

7 stars 9 forks source link

Silktouch does not work on Glass Blocks/Panes from the Connected Glass mod #5

Closed NielsPilgaard closed 4 years ago

NielsPilgaard commented 4 years ago

Using Silktouch enchanted items does not retrieve the broken glass blocks/panes added by the Connected Glass mod - All the blocks are missing loot tables. They should be similar to this one, snagged from the Minecraft datapack: path for the json below is data/minecraft/loot_tables/blocks/glass.json in the Minecraft 1.15.2 jar

{
  "type": "minecraft:block",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:glass"
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:match_tool",
          "predicate": {
            "enchantments": [
              {
                "enchantment": "minecraft:silk_touch",
                "levels": {
                  "min": 1
                }
              }
            ]
          }
        }
      ]
    }
  ]
}
SuperMartijn642 commented 4 years ago

Thanks I added it now in version 1.0.6!