Started by
AidenR0
on
Topic category: Help with Minecraft modding (Java Edition)
Hello there!
So I'm currently working on a mod, one of the parts required to make the mod work is the potion effect being displayed on the screen using the /title command
I've seen the procedure "get potion duration.." but I've been messing with it to no luck
So I was hoping you guys would help out! Thanks in advance
Try this:
Execute command / title @p times 1 20 1
⚙ If Has Event/target entity active potion <Select your potion>
do Execute command / title @p title [{"text":"<Write your potion name>","color":"<Write your text color>"}]
You can use assemble text block from text procedure blocks.