How to make a recipe that uses a specific goat horn?

Started by ------- on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a recipe that uses a specific goat horn?
Thu, 11/21/2024 - 19:11 (edited)

Hi, i'm working on a mod that lets you craft new music discs using a specific music disc + a specific goat horn. But i can't find any way to make the recipe check for what specific goat horn is being used, is there any way to do this without custom code? And if not, how could it be done with code?

Thanks.

Edited by ------- on Thu, 11/21/2024 - 19:11
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm late, but if you still…
Fri, 02/14/2025 - 04:19

I'm late, but if you still haven't figured this out you may want to look into using a specific item I.D. in your crafting recipe as opposed to the base goat horn. Here's an example of the item I.D. for the "Ponder" goat horn: item.minecraft.goat_horn.sound.0
By changing the zero at the end to another number(0 through 7) you can change what specific goat horn you're referencing.