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.

[1.7.10] [10.13.2.1291] [SOLVED] Force rendering for block

Featured Replies

Posted

Good day!

 

I am trying to make a book for my mod for players to know how to build structures in my mod.

 

I am using renderItemIntoGUI() method in RenderItem class.

And I have a slight problem. And that problem is that I need to force rendering type to some Blocks.

Like BlockWall, that is defaultly rendered with two block attachments on sides (picture below) and I need to render it without any connection.

 

xt4a6rF.png

 

So, my question is:

Is there any clever way to force block rendering?

 

I am using:

Minecraft 1.7.10

Forge 10.13.2.1291

First of all, that looks realy good. And I'm curious to see how you did this.

 

Besides, you try to render an Item, wich means you cant change it's state. Basicly this is how it is rendered in your hotbar. So a workaround would be to create your own custom cob.wall without the connected parts, and use that one instead.

Projects:

Discontinued:

- N2ConfigAPI

- Meachanical Crafting Table

 

Latest:

- CollectionUtils

 

Coöperations:

- InGameConfigManager

  • Author

Okay, I got it!

I have created modified version of RenderBlocks class and changed renderBlockAsItem() method for render pass 32 that is used for BlockWall.

 

It works perfectly:

9ugtDfM.png

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.