ContentTweaker

ContentTweaker

27M Downloads

Transparent blocks do not work

Hedgehog0091 opened this issue ยท 1 comments

commented

I am using the latest version of CraftTweaker and ContentTweaker for 1.15.2.
I was trying to add a new plant block but could not get the transparency to display. The people in the Discord told me to set the material to a transparent one (in my case "plants") but it did not appear to change anything. The material clearly changed as the block color on maps changed and the block broke when pushed by a piston.
The same issues are present when I changed the parent model from "block/cube_all" to "block/cross", however in all screenshots it's set to "block/cube_all".

The block seems to render correctly in inventory no matter what the block material is set to:
Screenshot of block in inventory

Transparency without Optifine installed:
Transparency without Optifine installed

Transparency with Optifine installed (the only 1.15.2 Optifine version available is a preview):
Transparency with Optifine installed

The texture I used:
rose

I tested all this with no mods other than Crafttweaker, Contenttweaker and in one of the screenshots, Optifine.

commented

I'm unable to reproduce.
image

I'm using the following script:

#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");

Since we don't have your script, my only guess is that you weren't setting the BlockRenderType to TRANSLUCENT.