So i have been trying some stuff but can't think of a way to create a potion that never ends. Splash or not im having trouble. What i want it to do is be a potion of poison that when it is thrown it does not leave your inventory kind of like duplicating. so you can throw it any number of times. Thing is i want it to only be that specific item not every splash potion.
The Meaning of Life, the Universe, and Everything.
Location:
solingen
Join Date:
10/11/2019
Posts:
46
Member Details
on 1.14
/execute unless entity @a[nbt={Inventory:[{id:"minecraft:splash_potion",tag:{Potion:"minecraft:strong_poison"}}]}] run give @s splash_potion{Potion:"minecraft:strong_poison"} 1
Second, give a tag to the player(s) that should have an infinite amount of potions:
/scoreboard players set <Player Name> 1
(I think it's also possible to do it dynamically, with detecting the players that have the potion but you would be unable to put the potion e.g. in a chest and I don't have enough time to solve that at the moment.)
So i have been trying some stuff but can't think of a way to create a potion that never ends. Splash or not im having trouble. What i want it to do is be a potion of poison that when it is thrown it does not leave your inventory kind of like duplicating. so you can throw it any number of times. Thing is i want it to only be that specific item not every splash potion.
on 1.14
/execute unless entity @a[nbt={Inventory:[{id:"minecraft:splash_potion",tag:{Potion:"minecraft:strong_poison"}}]}] run give @s splash_potion{Potion:"minecraft:strong_poison"} 1
in an repeating commandblock
************EDIT***********
sry too fast not working
First, create a scoreboard objective with
Second, give a tag to the player(s) that should have an infinite amount of potions:
(I think it's also possible to do it dynamically, with detecting the players that have the potion but you would be unable to put the potion e.g. in a chest and I don't have enough time to solve that at the moment.)
Then you can use the command from romanorose76
in a repeating command block to refresh the splash potion (I didn't test it but I think it is working).
Of course you can also give the player another splash potion (check Minecraft Wiki).
The potion will always be in the first hotbar slot, you can also give it to another slot by altering the /give command but it will be static.
Hope I helped you.
Best way to achieve this is to set a scoreboard to test if a player has thrown a splash potion-
First set up the scoreboard:
Then check for potion throw and replace main hand slot with potion (run this in a repeat command block)
Then reset the score(in chain, conditional command block):
Perseverance always pays. Sooner or later.
***edit **
never mind..
want to delete that post but cant