ContentTweaker

ContentTweaker

27M Downloads

[1.16] Add Support for Side Culling

EpicPuppy613 opened this issue ยท 3 comments

commented

I'm trying to make a translucent block with side culling, but currently there is no way to add side culling except in the code.
My block code is here

new BlockBuilder(<blockmaterial:glass>)
    .notSolid()
    .withHardnessAndResistance(0.3f)
    .withRenderType(BlockRenderType.TRANSLUCENT)
    .withType<BlockBuilderBasic>()
    .build("white_cloud");

And this is a image of what is currently happening
2021-08-23_09 20 09

commented

This can be done like so:

#loader contenttweaker
import mods.contenttweaker.block.BlockBuilder;
import mods.contenttweaker.block.BlockRenderType;
import mods.contenttweaker.block.advance.BlockBuilderAdvanced;

new BlockBuilder(<blockmaterial:glass>)
    .notSolid()
    .withHardnessAndResistance(0.3f)
    .withRenderType(BlockRenderType.TRANSLUCENT)
    .withType<BlockBuilderAdvanced>()
    .build("white_cloud");

and then

import mods.contenttweaker.functions.IBlockIsSideInvisible;

<advancedblock:white_cloud>.setIsSideInvisible(IBlockIsSideInvisible.GLASS_LIKE);
commented

Is there a way to accomplish this in 1.12? Sorry if this is the wrong place to ask.

commented

I second levenj3's concern