How to give item back to player after craft

Started by EnderDremurr on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Jan 2022
Points:
482

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
How to give item back to player after craft

I have recipe that uses dragon egg, and i want to give the egg back to player after craft

i created procedure Give item(egg) to provided entity`s inventory and connected it to "when item is crafted/smelted' but that does not work, is here way to leave egg in crafting bench instead of giving it to player?

 

Active 3 years ago
Joined Apr 2021
Points:
790

User statistics:

  • Modifications: 1
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 292
After you craft the item…
Sun, 01/30/2022 - 13:48

After you craft the item(there is a trigger made for it), do:

 

 

 ⇒ There is a brick(block) that does this. Search in 'Procedure Search', if you can't find.

EXECUTE COMMAND IN THE NAME OF (Event/Target Entity) [ /give @s dragon egg 1]

Active 2 years ago
Joined Dec 2021
Points:
582

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
Also, when creating a custom…
Wed, 02/16/2022 - 16:27

Also, when creating a custom item, you can make it so that the item will stay in crafting grid.