Fixed Tiled Glass not requiring Silk Touch

This commit is contained in:
simibubi 2024-08-08 08:23:08 +02:00
parent 3747f4dd81
commit 1ad5a97ca1
3 changed files with 13 additions and 2 deletions

View file

@ -3788,7 +3788,7 @@ de42002e7b77c3bdc8e69407f6dcab57bf5fa96e data/create/loot_tables/blocks/steam_wh
94f516dd7e6fd4bd4ee26fad2d2d84b79f40de0b data/create/loot_tables/blocks/sticky_mechanical_piston.json 94f516dd7e6fd4bd4ee26fad2d2d84b79f40de0b data/create/loot_tables/blocks/sticky_mechanical_piston.json
69cc8ce9ff7b905b62f52d9ac4819e79f3235f58 data/create/loot_tables/blocks/stockpile_switch.json 69cc8ce9ff7b905b62f52d9ac4819e79f3235f58 data/create/loot_tables/blocks/stockpile_switch.json
da3ceb80799d349b91781b0dd43a02e548045c66 data/create/loot_tables/blocks/stressometer.json da3ceb80799d349b91781b0dd43a02e548045c66 data/create/loot_tables/blocks/stressometer.json
811674fd816503cd78fc4df267dc23f760940e8f data/create/loot_tables/blocks/tiled_glass.json 92c80a3ffd23529029d079e0c2e2cac7ea5ccec2 data/create/loot_tables/blocks/tiled_glass.json
313344ef4ee67ffd0f7fd44adcb3ad08de571c92 data/create/loot_tables/blocks/tiled_glass_pane.json 313344ef4ee67ffd0f7fd44adcb3ad08de571c92 data/create/loot_tables/blocks/tiled_glass_pane.json
e2846b8823918bce402eb361f703ecdc14251ccc data/create/loot_tables/blocks/track.json e2846b8823918bce402eb361f703ecdc14251ccc data/create/loot_tables/blocks/track.json
749a2f82cc5315d10447d644b13c1c1e9a7673a6 data/create/loot_tables/blocks/track_observer.json 749a2f82cc5315d10447d644b13c1c1e9a7673a6 data/create/loot_tables/blocks/track_observer.json

View file

@ -12,7 +12,17 @@
], ],
"conditions": [ "conditions": [
{ {
"condition": "minecraft:survives_explosion" "condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
} }
] ]
} }

View file

@ -41,6 +41,7 @@ public class AllPaletteBlocks {
.addLayer(() -> RenderType::cutout) .addLayer(() -> RenderType::cutout)
.recipe((c, p) -> p.stonecutting(DataIngredient.tag(Tags.Items.GLASS_COLORLESS), c::get)) .recipe((c, p) -> p.stonecutting(DataIngredient.tag(Tags.Items.GLASS_COLORLESS), c::get))
.blockstate((c, p) -> BlockStateGen.cubeAll(c, p, "palettes/")) .blockstate((c, p) -> BlockStateGen.cubeAll(c, p, "palettes/"))
.loot((t, g) -> t.dropWhenSilkTouch(g))
.tag(Tags.Blocks.GLASS_COLORLESS, BlockTags.IMPERMEABLE) .tag(Tags.Blocks.GLASS_COLORLESS, BlockTags.IMPERMEABLE)
.item() .item()
.tag(Tags.Items.GLASS_COLORLESS) .tag(Tags.Items.GLASS_COLORLESS)