Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hey,

i´ve got a small issue. I´m using Mcreator for 1.12.2 and getting an answer there is quite a thing. I want to create a corner block like the CR mod does. Unluckily the subtract bounding box option is bugged for the 1.12.2 generator in Mcreator and i can´t figure out what exact line of code i have to add in order to make it work.

This:

@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));

 

is the already manipulated code that gives the block a hitbox like it is a vertical half slab. But i want the hitbox to go around the corner. So i would either need a bounding box that is a standard block - the part that i want to cut out or a hitbox that just does the corner thing. What do i need to do?

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.