Jump to content

JacksStuff

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by JacksStuff

  1. I accidentally forgot to push the recent changes, so all the stuff about the recipes is missing from github. Just fixed that. The JSON is located in the data/magic_overhaul/recipes folder and looks like this: { "type": "magic_overhaul:rune_inscribing", "base": { "item": "minecraft:stone" }, "template": { "item": "magic_overhaul:rune_template_acnar" }, "output": { "count": 1, "item": "magic_overhaul:rune_acnar" } }
  2. Yeah, always an empty list, I checked multiple times.
  3. Here's my github repo https://github.com/JacksStuff0905/magic-overhaul-1.20.X, maybe you might find something. Either way thanks a lot for all the help.
  4. Thanks for the suggestions, but nothing seemed to change after applying them. Also the "this.inventory.getStackInSlot" thing prints the correct items.
  5. 1.The game doesn't crash, everything seems normal, but when i insert the designated items into the block entity, the result item does not show up. 2.Yes, I'm using a custom menu, here's the source code:
  6. public class ModRecipes { public static final DeferredRegister<RecipeSerializer<?>> SERIALIZERS = DeferredRegister.create(ForgeRegistries.RECIPE_SERIALIZERS, MagicOverhaul.MOD_ID); public static final RegistryObject<RecipeSerializer<RuneInscribingRecipe>> RUNE_INSCRIBING_SERIALIZER = SERIALIZERS.register("rune_inscribing", () -> new RuneInscribingRecipe.Serializer()); public static void register(IEventBus eventBus){ SERIALIZERS.register(eventBus); } }
  7. I'm somewhat of a beginner at forge and I'm trying to add custom recipe types to my mod. I've been trying to adapt the solution from https://www.youtube.com/watch?v=IOFbegpYY0k and update it to 1.20.2 with the help of the forge docs without success. Does anyone know anything about creating such behaviour? Any help would be appreciated. My recipe is a simple recipe similar to the legacy smithing recipe, heres a JSON example (the "//" will be replaced with some items): { "type": "magic_overhaul:rune_inscribing", "base": { "item": "//base item" }, "template": { "item": "//template item" }, "output": { "count": 1, "item": "//output item" } } What I'm interested most is how to implement the RecipeSerializer and RecipeType classes within my Recipe class. Here's my current RecipeSerializer: Here's the RecipeType: Please comment if you need any more code fragments.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.