Jump to content

lampad

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by lampad

  1. You're right, just dropping this.setContainerItem(this) into the constructor of the item did the trick. Sorry for being dense and thanks for the help.
  2. Hmm, I see. The problem is I don't want the resulting item the recipe produces to create additional items, I want one of the input ingredients back as a result of completing the recipe. Maybe the setContainerItem method can be used by the recipe too? Maybe I'm being dense... Probably being dense... So, could I subclass this class, use it as an ingredient to a recipe, and the recipe will give it back in the end? Do I need two "phases" of the item (full, empty)? I'll try tinkering with it.
  3. Not quite sure I understand that. Are you saying set the result of the recipe to the ingredient (which would be a container in this case)? If so, I'd like to have the recipe output a different item than the container input. Is creating a container item as simple as inheriting from the Container class?
  4. Yeah, like buckets. However, the ingredient we're hoping to not consume isn't necessarily a container. Is there a way to give an item the "container" property where it can't be consumed by the recipe, but wouldn't be able to store or contain anything? Does that make sense?
  5. Hey everyone. I tutor a kid every week, and he's recently become interested in creating his own Minecraft mod. We're both working our way through Forge and learning as we go. We're currently trying to create a recipe that doesn't consume a specific input Ingredient/ItemStack. I see a couple of ways of feasibly doing this: 1. Don't consume the item in the recipe (not sure if this is possible based on what I've looked through in the source) 2. Return a duplicate ItemStack that matches the original input Ingredient ItemStack. Seems like that's what's being mentioned here: but I couldn't seem to get the suggestion in there to work. The custom recipe now just doesn't return anything. (PR to his mod from yours truly here if you'd like to see the code: https://github.com/pjht/ME-System/pull/1) Is there another way to approach this? Am I doing something dumb with the #2 approach? Any help would be appreciated.
×
×
  • Create New...

Important Information

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