Topic category: Help with modding (Java Edition)
I'm trying to make a special speed potion that, if you right click on a block instead of drinking it, it'll give Quick Charge 1 to any crossbow in your inventory. The thing is, I can't figure out how to target the crossbow. I tried putting a crossbow in the section for the enchantment instead of "Provided Itemstack" but it just doesn't do anything. How do you enchant a specific item instead of the item that's causing the enchanting to happen?