Posted November 19, 201311 yr 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:- . 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!
November 19, 201311 yr Hi I guess the pizza is a block not an item? This link might help http://greyminecraftcoder.blogspot.com.au/2013/07/rendering-non-standard-blocks.html -TGG
November 20, 201311 yr 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!
November 20, 201311 yr Did you look at BlockCake ? It isn't hard to change the rendering height to a smaller value.
November 21, 201311 yr 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
November 23, 201311 yr Hi As promised... @SidedProxy explained... http://greyminecraftcoder.blogspot.com.au/2013/11/how-forge-starts-up-your-code.html -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.