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

Hello,

 

I am trying to custom render a block, but I just want to render it like an item; it will be one pixel high, and have transparent parts. Let's just take, for example, a sword (laying flat), and say I am trying to render that as my 1px high cube.

 

Since I will be rendering this just like an item, is there any way that I can easily do this using built-in functionality? I would like to be able to just make a single image, and somehow display it as my block, but 1px thick, and not have to make a lot of textures for each item I plan to do this with.

 

I might just be over-thinking this, but I figured this was the place to ask anyways.

 

Thanks in advance for all your help!

 

 

Scale only one axis using OpenGL? That could be a possibility

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Hi

 

The code in ItemRenderer.renderItemIn2D takes a part of a texture and renders it so it looks like the vanilla items, i.e. flat but with a small thickness..

 

You just need to provide it with the icon texture coordinates and it does the rest.  Should work for blocks too.

 

-TGG

 

 

Whay don't you just try to  make an item that places your block down?

It should be simpler other than messing around with OpenGL.

 

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.