ZenUtils icon indicating copy to clipboard operation
ZenUtils copied to clipboard

DirectionalBlock does not rotate bounding box defined with AxisAlignedBB

Open sneetsnart opened this issue 1 year ago • 0 comments

when creating a directional block, the bounding box defined with the axisAlignedBB field is not rotated alongside the block.

Image Image

script i am using:

#loader contenttweaker 

import mods.contenttweaker.CreativeTab;
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Item;
import mods.contenttweaker.BlockMaterial;
import mods.contenttweaker.Block;
import mods.contenttweaker.AxisAlignedBB;
import mods.zenutils.cotx.DirectionalBlock;

var curtain_white = VanillaFactory.createDirectionalBlock("curtain_white", <blockmaterial:Wood>, "HORIZONTAL", false, true);
curtain_white.axisAlignedBB = AxisAlignedBB.create(
     0.0 / 16.0,
     0.0 / 16.0,
     0.0 / 16.0,
	16.0 / 16.0,
	16.0 / 16.0,
    2.0 / 16.0
	);
curtain_white.setBlockHardness(2.0);
curtain_white.setBlockResistance(1.0);
curtain_white.setFullBlock(false);
curtain_white.setLightOpacity(0);
curtain_white.setBlockSoundType(<soundtype:wood>);
curtain_white.setBlockLayer("CUTOUT_MIPPED");
curtain_white.register();

sneetsnart avatar Jul 24 '25 23:07 sneetsnart