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'm trying to make it so that Minecraft banners can be combined with my custom shields.

I have created the ShieldRecipes.java class which extends SpecialRecipe and handles the logic.

I have registered this recipe in my main mod class, Mores.java

However, when I try to combine them in a crafting table, there is no output item, aka it doesn't work.

What am I doing wrong?

GitRepo: https://github.com/Leronus/mOres

 

Classes used:

mOres/src/main/java/mod/mores/recipe/ShieldRecipes.java

mOres/src/main/java/mod/mores/Mores.java

you don't need a custom recipe, it should work by default if your Shield is an instance of ShieldItem, your ISTER use the vanilla logic and you have the correct texture template 

  • Author
6 hours ago, Luis_ST said:

you don't need a custom recipe, it should work by default if your Shield is an instance of ShieldItem, your ISTER use the vanilla logic and you have the correct texture template 

I do need a custom recipe because I'm using my own ItemShield.java class, which extends ShieldItem.java

It does not work as it is now

42 minutes ago, Leronus said:

I do need a custom recipe because I'm using my own ItemShield.java class, which extends ShieldItem.java

it should work, is your git repo up to date?

  • Author
2 minutes ago, Luis_ST said:

it should work, is your git repo up to date?

Yeah it is, just added the .json as well, it still doesn't work

 

Image as reference: https://imgur.com/a/9Drf5PT

Edited by Leronus

  • Author
1 hour ago, diesieben07 said:

This is untrue.

@LeronusYou cannot create registry entries in a static initializer. You must create them in the registry event, I would recommend using DeferredRegister.

I also still cannot find any recipe JSON in your repository that uses your shield_decoration serializer.

Thanks, I got it working now!

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.