Skip to content

Commit 07f5dda

Browse files
committed
Add proper copper material properties to the new lightning rod and waxed lightning rod variants.
1 parent f86f313 commit 07f5dda

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

chunky/src/java/se/llbit/chunky/chunk/BlockPalette.java

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,26 @@ public static Map<String, Consumer<Block>> getDefaultMaterialProperties() {
520520
materialProperties.put(s + "weathered_copper_grate", weatheredCopperConfig);
521521
materialProperties.put(s + "weathered_copper_door", weatheredCopperConfig);
522522
materialProperties.put(s + "weathered_copper_trapdoor", weatheredCopperConfig);
523+
524+
materialProperties.put(s + "lightning_rod", block -> {
525+
// apply copper attributes only to non-powered lightning rods
526+
if (block instanceof LightningRod && !((LightningRod) block).isPowered()) {
527+
copperConfig.accept(block);
528+
}
529+
});
530+
materialProperties.put(s + "exposed_lightning_rod", block -> {
531+
// apply copper attributes only to non-powered lightning rods
532+
if (block instanceof LightningRod && !((LightningRod) block).isPowered()) {
533+
exposedCopperConfig.accept(block);
534+
}
535+
});
536+
materialProperties.put(s + "weathered_lightning_rod", block -> {
537+
// apply copper attributes only to non-powered lightning rods
538+
if (block instanceof LightningRod && !((LightningRod) block).isPowered()) {
539+
weatheredCopperConfig.accept(block);
540+
}
541+
});
523542
}
524-
materialProperties.put("minecraft:lightning_rod", block -> {
525-
// apply copper attributes only to non-powered lightning rods
526-
if (block instanceof LightningRod && !((LightningRod) block).isPowered()) {
527-
copperConfig.accept(block);
528-
}
529-
});
530543
materialProperties.put("minecraft:small_amethyst_bud", block -> {
531544
block.emittance = 1.0f / 15f;
532545
});

0 commit comments

Comments
 (0)