Advanced Door Bells Wiki

Registering a Switch

For a normal switch variant, use:

DoorBellApi.registerSwitchVariant(
        id,
        blockSetType,
        properties
);

For example:

public static final Block OAK_DOOR_BELL_SWITCH =
        DoorBellApi.registerSwitchVariant(
                MyMod.id("oak_door_bell_switch"),
                BlockSetType.OAK,
                BlockBehaviour.Properties.ofFullCopy(
                        Blocks.OAK_BUTTON
                )
        );

The addon chooses the complete BlockBehaviour.Properties.

You can therefore make the block behave like whatever material or design you want.