Posted October 10, 20214 yr 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
October 11, 20214 yr 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
October 11, 20214 yr 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
October 11, 20214 yr 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?
October 11, 20214 yr 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 October 11, 20214 yr by Leronus
October 11, 20214 yr 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.