Hello! This is close to what I was trying to figure out. I was wondering if you could help me? I am trying to clear a named water bottle from a player's inventory. I was wondering if clearing a named item was even possible but if not. I was wondering how to detect a splash potion of weakness? Thanks in advance for the help!
--Edit--
Also, how to detect a named splash potion of weakness?
testfor @e[type=ThrownPotion]
Keep in mind that the Duration tag is in ticks, so it may not be exactly 2 minutes and 15 seconds, even though it is shown to be.
Regardless, you would use the dataTags in the /testfor command:
To /give the potion (the Damage value only determines color and if it's a splash potion):
And to detect the thrown variant:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Hello! This is close to what I was trying to figure out. I was wondering if you could help me? I am trying to clear a named water bottle from a player's inventory. I was wondering if clearing a named item was even possible but if not. I was wondering how to detect a splash potion of weakness? Thanks in advance for the help!
--Edit--
Also, how to detect a named splash potion of weakness?
I like to help and howl and laugh all day XD
What do NOT say to get in trouble HERE!!!
My Blog