Skip to content

Commit

Permalink
Merge pull request #126 from drewcassidy/chainlink
Browse files Browse the repository at this point in the history
Make chainlink fences and catwalks translucent
  • Loading branch information
AstralOrdana authored Apr 26, 2024
2 parents 37134df + 115e42d commit 1676833
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static BlockBuilder<CatwalkBlock,?> build (
supportPool.add(supports);
table.add(block, builder.withPool(catwalksPool).withPool(supportPool));
})
.addLayer(()-> RenderType::cutoutMipped)
.addLayer(()-> RenderType::translucent)
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.tag(AllTags.AllBlockTags.FAN_TRANSPARENT.tag)
.item(CatwalkBlockItem::new)
Expand Down Expand Up @@ -129,7 +129,7 @@ public static BlockBuilder<CatwalkStairBlock,?> buildStair (
stairsPool.add(stairs);
table.add(block, builder.withPool(stairsPool).withPool(railingsPool));
})
.addLayer(()-> RenderType::cutoutMipped)
.addLayer(()-> RenderType::translucent)
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.tag(AllTags.AllBlockTags.FAN_TRANSPARENT.tag)
.blockstate((ctx,prov)-> BlockStateGenerator.catwalkStair(texture, ctx, prov))
Expand All @@ -146,7 +146,7 @@ public static BlockBuilder<CatwalkRailingBlock,?> buildRailing (
props.strength(5, (metal.equals("Netherite")) ? 1200 : 6)
.requiresCorrectToolForDrops().noOcclusion().sound(SoundType.NETHERITE_BLOCK)
)
.addLayer(()-> RenderType::cutoutMipped)
.addLayer(()-> RenderType::translucent)
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.tag(AllTags.AllBlockTags.FAN_TRANSPARENT.tag)
.blockstate((ctx,prov)-> BlockStateGenerator.catwalkRailing(reg, metal, ctx, prov))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static BlockBuilder<FenceBlock,?> build (CreateRegistrate reg, String met
.properties(props-> props.strength(5, (metal.equals("Netherite")) ? 1200 : 6).requiresCorrectToolForDrops()
.sound(SoundType.CHAIN)
)
.addLayer(()-> RenderType::cutoutMipped)
.addLayer(()-> RenderType::translucent)
.tag(BlockTags.FENCES)
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.item()
Expand Down

0 comments on commit 1676833

Please sign in to comment.