ContentTweaker

ContentTweaker

27M Downloads

Adjacent blocks are transparent with custom glass block

Dimentive opened this issue · 2 comments

commented

I made a custom translucent glass-like block in ContentTweaker, and it works fine except for one thing: Whenever there’s a block adjacent to it, regardless of which side, I can see through the world on that side.

2019-05-08_13 43 01

This issue seems similar to #25, but I’m not using a custom JSON script; I haven’t altered it. Also, it was, apparently, fixed in a dev build back in 2017.

Script

#loader contenttweaker
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Block;

var blueGlass = VanillaFactory.createBlock("blueglass", <blockmaterial:glass>);
blueGlass.setBlockHardness(0.3);
blueGlass.setBlockResistance(1.5);
blueGlass.setBlockLayer("TRANSLUCENT");
blueGlass.setLightOpacity(0);
blueGlass.setTranslucent(true);
blueGlass.setBlockSoundType(<soundtype:glass>);
blueGlass.register();

Versions

  • Minecraft: 1.12.2
  • Forge: 14.23.5.2816
  • CraftTweaker: 4.1.17 (latest)
  • ContentTweaker: 4.9.1 (latest)
commented

YOu didn't set Full Block to false

commented

Ah, you’re right. Thanks.