Floorcrafting
Want to craft a custom potion via floorcrafting with the predicate in_cauldren so that the recipe only works in cauldrens. I used the code
execute at @a as @e[type=item,distance=..5,nbt={OnGround:true,Item:{id:"minecraft:honey_bottle",Count:1b}},limit=1, predicate=horstattack_3:cauldren] at @s store success entity @s Age short 6000 store success entity @e[type=item,distance=...5,nbt={OnGround:true,Item:{id:"minecraft:sugar",Count:1b}},limit=1,predicate=horstattack_3:cauldren] Age short 6000 store success entity @s Age short 6000 store success entity @e[type=item,distance=...5,nbt={OnGround:true,Item:{id:"minecraft:fern",Count:1b}},limit=1,predicate=horstattack_3:cauldren] Age short 6000 run summon item ~ ~ ~ {Item:{id:"minecraft:potion",Count:1b,tag:{display:{Name:'{"text":"Jägermeister","italic":false}',Lore:['{"text":"Jägermeister, tasty"}']},CustomModelData:6,CustomPotionEffects:[{Id:3,Amplifier:0b,Duration:100},{Id:15,Amplifier:1b,Duration:5},{Id:19,Amplifier:1b,Duration:20}],CustomPotionColor:16777215}}}
Is there any other way to write the code. I have the Problem that some items dont get replaced by the potion. So the honeybottle stays in the caudren even though the recipe was already crafted
Continue to help post