ehbean Posted November 21, 2020 Posted November 21, 2020 Hey there. I've got a quick 2 part question about crafting recipes. 1. I have a Json file set up that returns and item whenever you craft with it, but I would like it to return two different items. (The recipe has you using a mortar and pestle to grind something). So if at all possible I'd like to return both the mortar, and the other item that is made in the process. 2. How do I go about making a custom crafting station that accepts only certain items, uses a blaze powder as fuel. It would act similarly to a brewing stand, but I'd like to be able to add a new more crafting "options" going into it for later in this mod I'm working on. Thank you Quote
Draco18s Posted November 21, 2020 Posted November 21, 2020 (edited) 3 hours ago, ehbean said: So if at all possible I'd like to return both the mortar, and the other item that is made in the process. That's what container items are for. Vanilla does this with buckets of milk, for example. This is not handled by the crafting recipe json, but the item's class. 3 hours ago, ehbean said: How do I go about making a custom crafting station that accepts only certain items, uses a blaze powder as fuel. It would act similarly to a brewing stand, but I'd like to be able to add a new more crafting "options" going into it for later in this mod I'm working on. You need slots that only accept specific items. As an example: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderfarming/inventory/SaltSlotHandler.java Used: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderfarming/entity/TannerTileEntity.java#L56 Edited November 21, 2020 by Draco18s 1 Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
ehbean Posted November 22, 2020 Author Posted November 22, 2020 23 hours ago, Draco18s said: That's what container items are for. Vanilla does this with buckets of milk, for example. This is not handled by the crafting recipe json, but the item's class. You need slots that only accept specific items. As an example: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderfarming/inventory/SaltSlotHandler.java Used: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderfarming/entity/TannerTileEntity.java#L56 Where would I find an example of the class that handles the buckets of items? Also, thank you for the GitHub links. Very useful. Quote
Draco18s Posted November 22, 2020 Posted November 22, 2020 12 hours ago, ehbean said: Where would I find an example of the class that handles the buckets of items? Vanilla code, go find the MilkBucketItem 1 Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Recommended Posts
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.