Topic category: Help with modding (Java Edition)
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.