When effect is ends, there might be another effect, but I can't do this, please help!

Started by WorldInGame on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When effect is ends, there might be another effect, but I can't do this, please help!

I have effect named I need more cigarettes, and in triggers I did "when effect expires". I added function in this, that gives player another effect named urgently a cigarette" and couple of another effects. I wanted it to work like this: I tried cigarette, and there is effect "I need more cigarettes", and if i tried another this effect come to start, and i don't get effect urgently a cigarette. But now if I tried a new cigarette after getting effect "I need more cigarettes" this effect expires, and i getting effect "urgently a cigarette". How to fix it? I want to do like dependence to cigarettes.