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

I am trying to make a 2x1x1 Block, and have managed that, but the block bounds don't work for it. When looking a the left half of the block, you can interact with it and break it and even see that the bounds are 2x1x1, but when I move my mouse over to the right side of the block the hitbox disappears and I can even place a block in the right half.

 

Any idea on how to fix this?

 

-Whyneb360

 

P.S. I know I'll need to rotate the hitbox, and that parts all settled. Just trying to figure out how to make a functional 2x1x1 hitbox first

 

this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 2.0F);

Hi

 

I think what you are trying to do is not possible.

 

You need to create a multi block structure instead.  For example like the vanilla bed or the door.  I think Forge has some inbuilt support to help with this, I know nothing about it.  Google may help...

 

-TGG

There is no inbuilt support for multiblock in forge.

So you should code the multiblock structure yourself, using some metadata and onNeighborBlockChange, and so on.

 

The code for vanilla door would be a good example.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.