Stronger Potions?
Hey everyone, I started work on a custom brewing recipe datapack which, if you put amethyst shards in a brewing stand which contains speed 2 potions, it will make speed 3 potions. However, the issue is that it doesnt work. I'm using chatgpt for the code as i've never created a datapack from scratch, or at all before. Any help is appreciated. I tried changing from amethyst shards to glowstone but it still didnt work
detect-brew-speed-three.mcfunction (changing underscores to dashes due to discord chat formatting)
Continue to help postexecute as @a[nbt={SelectedItem:{id:"minecraft:glowstone_dust"}}] at @s if block ~ ~-1 ~ minecraft:brewing_stand run function mypack:do_brew_speed_three
do-brew-speed-three.mcfunction
# data/mypack/functions/do_brew_speed_three.mcfunction # 1. Remove one Amethyst Shard from the player execute as @s run clear @s minecraft:glowstone_dust 1 # 2. For each bottle‐slot index… # If it contains a Speed II, remove the old bottle and insert Speed III # -- slot 0 -- execute at @s if data block ~ ~-1 ~ {Items:[{Slot:0b,id:"minecraft:potion",tag:{Potion:"minecraft:strong_swiftness"}}]} run function mypack:_brew_speed3_slot_0 # -- slot 1 -- execute at @s if data block ~ ~-1 ~ {Items:[{Slot:1b,id:"minecraft:potion",tag:{Potion:"minecraft:strong_swiftness"}}]} run function mypack:_brew_speed3_slot_1 # -- slot 2 -- execute at @s if data block ~ ~-1 ~ {Items:[{Slot:2b,id:"minecraft:potion",tag:{Potion:"minecraft:strong_swiftness"}}]} run function mypack:_brew_speed3_slot_2 # 3. Feedback particle at the stand particle minecraft:happy_villager ~ ~-1 ~ 0.5 0.5 0.5 0.01 10
There are more but this is it so far