Subtract option in 1.12.2

Started by Lendill on

Topic category: Help with modding (Java Edition)

Last seen on 00:31, 9. Dec 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Subtract option in 1.12.2

Hey,

this is my bounding box code for my block in 1.12.2:

@Override
        public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
            switch ((EnumFacing) state.getValue(BlockHorizontal.FACING)) {
                case SOUTH :
                default :
                    return new AxisAlignedBB(0, 0, 0, 0.5, 1, 1).union(new AxisAlignedBB(0, 0, 0, 0.5, 1, 1));
                case NORTH :
                    return new AxisAlignedBB(0.5, 0, 0, 1, 1, 1).union(new AxisAlignedBB(0.5, 0, 0, 1, 1, 1));
                case EAST :
                    return new AxisAlignedBB(0, 0, 0.5, 1, 1, 1).union(new AxisAlignedBB(0, 0, 0.5, 1, 1, 1));
                case WEST :
                    return new AxisAlignedBB(0, 0, 0, 1, 1, 0.5).union(new AxisAlignedBB(0, 0, 0, 1, 1, 0.5));

 

Cause the subtract option is not working at all i need to edit it manually. Whats the line of code i need to add?

Current hitbox

Last seen on 00:31, 9. Dec 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
mirror mirror on the wall
Sat, 11/13/2021 - 21:27

mirror mirror on the wall

Last seen on 13:58, 21. Jan 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you are using a depreceated…
Sat, 12/18/2021 - 04:15

you are using a depreceated plugin for MCreator