Patchouli

Patchouli

168M Downloads

[1.15.2] Multiblock blockstate rotation broken

Minecraftschurli opened this issue · 1 comments

commented

I have investigated that the Rotation of blockstates seems to be broken

Steps to reproduce:

  • make a multiblock from code
PatchouliAPI.instance.registerMultiblock(new ResourceLocation(Patchouli.MOD_ID, "test_multiblock"),
    PatchouliAPI.instance.makeMultiblock(new String[][]{
        {
            "   ",
            " L ",
            "   "
        },
        {
            " E ",
            "S0N",
            " W "
        }},
        'L', PatchouliAPI.instance.stateMatcher(Blocks.LECTERN.getDefaultState().rotate(Rotation.CLOCKWISE_180)),
        'N', PatchouliAPI.instance.stateMatcher(Blocks.SANDSTONE_STAIRS.getDefaultState().with(StairsBlock.FACING, Direction.NORTH)),
        'E', PatchouliAPI.instance.stateMatcher(Blocks.SANDSTONE_STAIRS.getDefaultState().with(StairsBlock.FACING, Direction.EAST)),
        'S', PatchouliAPI.instance.stateMatcher(Blocks.SANDSTONE_STAIRS.getDefaultState().with(StairsBlock.FACING, Direction.SOUTH)),
        'W', PatchouliAPI.instance.stateMatcher(Blocks.SANDSTONE_STAIRS.getDefaultState().with(StairsBlock.FACING, Direction.WEST)),
        '0', PatchouliAPI.instance.strictBlockMatcher(Blocks.SANDSTONE)
    )
);
  • visualize it in all directions
    north
    east
    south
    west
  • try to finish it in all directions
  • some show as east/west but validate 180° rotated
    2020-05-05_16 35 00
    2020-05-05_16 35 08
commented

and it seems to be mirroring some things
because this multiblock:

{
    " CEC ",
    " SMN ",
    " SAN ",
    " SMN ",
    " CWC "
}, {
    " MZM ",
    " I I ",
    "     ",
    " Y Y ",
    " MZM "
}, {
    " MZM ",
    "     ",
    "     ",
    "     ",
    " MZMV"
}, {
    " MZML",
    "     ",
    "  0  ",
    "     ",
    " MZM "
}, {
    "MMMMM",
    "MMMMM",
    "MMCMM",
    "MMMMM",
    "MMMMM"
}
  • should look like this:
    2020-05-05_18 41 23
  • but looks like this:
    2020-05-05_18 41 49
    when facing north