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

How would I create a multi-layer block texture? I know I have to create a custom block renderer but how do I go about doing it?

  • Author

What I want to do is have different colored stone and overlay the ore texture on top of the stone. I am looking to add an api that will let other people add their own ores to my mod.

 

Example:

width=16 height=16https://dl.dropboxusercontent.com/u/248986518/stone_raw_white.png[/img] + width=16 height=16https://dl.dropboxusercontent.com/u/248986518/coal_overlay.png[/img] = width=16 height=16https://dl.dropboxusercontent.com/u/248986518/bright_coal_ore.png[/img]

Oh, I see. You do need customize a block renderer.

Maybe this tutorial could help: http://www.minecraftforge.net/forum/index.php/topic,28714.0.html

 

Load a stone model and clone it first, then add ore quads, finally return it.

Author of Tao Land Mod.

width=200 height=69http://taoland.herbix.me/images/1/14/TaoLandLogo.png[/img]

Also, author of RenderTo

----

I'm not an English native speaker. I just try my best.

  • Author

Sorry to be a bother but I read your tutorial and I understood it but I do not know how to implement it. Can you lead me into the right direction?

No need to use ISmartBlockModel, IModel is enough.

Following steps may help you:

[*]IModel.getTextures should return your stone texture and user defined ore overlay

[*]IModel.getDependencies should return your stone model because we would use it

[*]IModel.bake would return the model:

  • Use ModelLoaderRegistry.getModel to get your stone model
  • Create a SimpleBakedModel, using the property from your stone model
  • Add overlay to this SimpleBakedModel, to do this, you need to know about BakedQuad and SimpleBakedModel

 

But users have to provide a blockstate json file after all... I don't know much about how to map a blockstate file in codes.

 

Author of Tao Land Mod.

width=200 height=69http://taoland.herbix.me/images/1/14/TaoLandLogo.png[/img]

Also, author of RenderTo

----

I'm not an English native speaker. I just try my best.

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.