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

Hi!

    I made a pizza block. It can be eaten like a cake. But the textures aren't working like I want them to. Have a look at the screenshot:-

 

QL8oAbS.png.

 

How can I reduce the block height, so that the top and the side of the pizza meet?

 

Regards,

Ablaze.

 

Tell me if you need any files.

Add me on Skype: AblazeTheBest. Send a message saying "#HeyAblaze"

 

Currently: Making a mod!

  • Author

So setRenderBounds is the method I need, but where do I place it? Also, do you have a tutorial on proxies on your website? You explain it really well so I want to learn from you. Because soon enough I'll need them for a universal mod, and I don't have them.

 

Regards,

Ablaze.

 

P.S. I hope the method doesn't go in my proxy, because then I'll have to look for a proxy tutorial :'(.

Add me on Skype: AblazeTheBest. Send a message saying "#HeyAblaze"

 

Currently: Making a mod!

Hi

 

Like GotoLink said, BlockCake is a good clue.

 

If you have a custom renderer, you can use setRenderBounds before your call to renderStandardBlock.

 

Otherwise, an easier way is just to override

Block.setBlockBoundsBasedOnState()

 

   /**
     * Updates the blocks bounds based on its current state. Args: world, x, y, z
     */
    public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
    {
        this.setBlockBounds(MIN_X, MIN_Y, MIN_Z, MAX_X, MAX_Y, MAX_Z);
    }

 

Choose the min and max based on the example pictures in the link I pasted earlier...

 

Re proxies: :-) thanks

Actually it's funny you ask about proxies because I'm just investigating that myself now and I'll probably put it up on the website in a week or two (depending how long it takes me to figure all the details out!)

 

-TGG

 

 

 

 

 

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.