Started by
Timelord_10
on
Topic category: Help with Minecraft modding (Java Edition)
Hey, I was trying to make a crafting recipe, so that certain potion types can be combined to make other potions. I was doing this with a custom crafting block, using procedures. However, I did notice that there isn't an option to chose specific potion types (like a Wither Potion, or Splash Potion of Poison). Does anyone know a work around? Any help is appreciated! ;)
The only workaround at the moment would be custom code, so you set the proper metadata of the potion in the recipe code.
Would this metadata be nbt tag data? Or similar to how you used to get a subset of an item (block, etc), such as "dark oak planks" would be like "minecraft:wood_planks:5" (you of course now use "dark_oak_planks")? And where would it go in the code? Each ingredient is like so in the code:
Note I used "dark oak planks" in the above example as one of the ingredients, and how it ends in '5'. Is that the # that has to be changed to use a specific potion as an ingredient?
Thanks!
I think the ID would do it, but check the Minecraft Wiki to be sure.
Ok, well, since we're talking about using a potion in a recipe:
The Minecraft wiki shows that a specific type of potion is stored in an nbt tag. So, if I wanted to get a Healing II potion, I'd issue the command:
The Minecraft id is obviously "minecraft:potion". But how do I get that nbt tag into the code so that I can use a *specific* type of potion for a recipe ingredient? Can I just do this:
?
Because using a number there instead does nothing at all. I've even used the old numerical values for potions (i.e., the "Damage" value, such as "minecraft:potion:8373") to get a particular potion and nothing seems to work. :-/
Thanks!
I have found this on this page (http://www.minecraftforge.net/forum/topic/41540-1102-solved-specifying-…):
to use it in your code:
Ooh, it *doesn't* need to be an integer. Hot diggity dog! You're my hero.
As I am very new to all this and only know the most basic basics about programming, could you please tell me where exactly I have to put that code in? :§
what does that '1' stand for?
i see in line 7 here that is my output slot I am trying to turn into a healing potion. How would i go about altering this code so it becomes my healing potion?
How do i put a specific potion into a trader example healing potion?