Return item when crafting with Vanilla Water Bottle, Potion, or Honey Bottle

Started by Thagrahn on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Return item when crafting with Vanilla Water Bottle, Potion, or Honey Bottle

I've seen this question come up a lot, but without it getting a straight and easy to follow answer, and now I find myself needing such an answer.

I have custom shapeless crafting recipes that call for the water bottle and the honey bottle from vanilla Minecraft, and I want to return the empty bottle to the player after crafting.

How would I set up the Procedure to know when to return an empty bottle to the player when these recipes are crafted?

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Was able to find a solution…
Thu, 03/30/2023 - 01:30

Was able to find a solution by making sure the crafting recipes only required 1 bottle item each, and set up the "When Crafted" trigger for each item that required a bottled item to a shared procedure that simply gave an empty bottle to the player that did the crafting.

This solution limits the crafting options of the items it cannot have alternate recipes that do not require a bottle, or require different bottle amounts when crafting.

Up side is that it is reliable, but down side is the limiting crafting recipes.