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

I am experimenting with creating a multi layered book item with decoration layers as separate textures. After working out some item properties, I am able to render an item with multiple textures but get artifacts on the sides, as shown on the image.

The textured are loaded using item properties:
 

		@SubscribeEvent
		public static void onFMLCommonSetupEvent(FMLCommonSetupEvent event) {
			event.enqueueWork(() -> {
				BookItem item = Items.BOOK_ITEM.get();
				ItemProperties.register(item, BookItem.LEVEL, (stack, l, e, s) -> BookItem.getLevel(stack));
			});
		}


I've had a look at how the spawn egg textures work as it does closely what i want and the split the egg and spot textures into two and match exactly into each other as opposed to overlap textures on top of another.

I've also experimented with custom models and hoped that tinkering with different RenderTypes would do the trick (e.i. using RenderType#solidEntity, which fixes my problem for entities but not on items :/), but to no avail.

I could edit my textures to fix this issue but I want to keep it more dynamic was wondering whether there was another way to overcome this issue?

  • 3 weeks later...

An uneducated guess: can you move the layers by a 1000th in any direction? It works on custom models via Blockbench.

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.