Skip to content

1.21.1 - Accidental Block Hardnesseroo #187

@Nessiesson

Description

@Nessiesson

In the constructor for your BlockMeltedReactor you make modify the properties of Blocks.IRON_BLOCK.

super(Blocks.IRON_BLOCK.properties().strength(250.0f, 999.0f).sound(SoundType.METAL).requiresCorrectToolForDrops().noOcclusion());

I think you meant to make a copy (with BlockBehaviour.Properties.ofFullCopy(Blocks.IRON_BLOCK)) first. Not doing so can cause other blocks which also base their properties on iron blocks to accidentally use the properties of your block.

Two examples are Zinc Blocks from the Create mod and many of the Oritech mod blocks take forever to mine with Nuclear Science installed because their strength is changed to the (250, 999) your block uses.

Looking at the mod's other blocks it seems like they are not making a local copy of the properties before changing them either. Please consider fixing this thanks <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions