Jump to content

Recommended Posts

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!

Posted

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!

Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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