ContentTweaker

ContentTweaker

27M Downloads

v1.16s Block property setting is not update?

sysyss opened this issue ยท 1 comments

commented

kind like set gravity and else.
i need my own falling block.

commented

I've added support for the 3 missing block properties.

Gravity is not a block property, but I have added support for falling blocks.

#loader contenttweaker
import mods.contenttweaker.block.BlockBuilder;
import mods.contenttweaker.block.BlockRenderType;
import mods.contenttweaker.block.basic.BlockBuilderFalling;

new BlockBuilder(<blockmaterial:glass>)
    .notSolid()
    .withHardnessAndResistance(0.3f)
    .withRenderType(BlockRenderType.TRANSLUCENT)
    .withType<BlockBuilderFalling>()
    .withDustColor((thisBlock, state, reader, pos) => 0xFF55FF)
    .build("falling_block");