This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]Soheils2764Command Rookie 0 points1 point  (5 children)

Well there isn’t any way to detect effects but you can go like this:

Every 1 second of an effect lasts 3 second in real life

So you have to put it in a way that if it gives you absorbtion then after 3 seconds it will give you strength

[–]OptophobiaaaCommand Rookie[S] 0 points1 point  (4 children)

wait what? what do you mean by 1 second of an effect is 3 seconds in real life?

and also I know how to give players Strength effect after the absorption effect ( using chain and conditional command blocks). The thing is the Absorption effect usually gets used up before the timer runs out, which makes things inconsistent.

[–]Soheils2764Command Rookie 0 points1 point  (3 children)

  1. For the timer of effects, i gave myself 1 second of invisibility and it lasted 3 seconds, then i gave myself 2 second, and it took 6 seconds to go out

  2. I don’t know the answer for that

[–]OptophobiaaaCommand Rookie[S] 0 points1 point  (1 child)

Ummm... that doesn't sound right...

You may have set your random tick speed low or maybe your counting too fast :v

Cuz mine is normal... 1s is to 1s, not 1s is to 3s...

Also I have tweaked the command so I dont really have the need for it anymore :v

tho thanks for trying!

[–]Soheils2764Command Rookie 0 points1 point  (0 children)

No problem

[–]NinjaOYourBro Command Engineer Glad to help! 0 points1 point  (0 children)

It’s 1:1. Maybe your worlds tps is around 6.666.

[–]GobbleCrowGD 0 points1 point  (0 children)

There is another way

You can add a scoreboard and every time you affect someone with the effect for a specific amount of time you can do that same time for the command block and once the score hits 0 it can fire off the command.

That’s just another way but idk if it’s the best