Started by
jacenjuniorndu…
on
Topic category: Help with MCreator software
Pls am trying to make a mod where if you were armor it gives you an effect but taking it of removes that effect using procedures can somebody help me.
Thank you.
Edited by jacenjuniorndu@gmail.com on Mon, 11/13/2023 - 20:20
You can make a procedure in the armor's update tick that adds a second or two of the effect to the player when worn. Then, it'll wear off very quickly when it's taken off. (There are more complicated ways of doing this with variables, but if you don't mind a very slight delay, it'll work fine.)
Thank you
But i want it to last until it is taken off
The procedure triggers on update tick. That means every tick, (every twentieth of a second), it will reset the effect timer to two seconds. When the player is no longer wearing the armor, the procedure no longer runs, and the effect wears off.
Sorry i replied a late
But could you give me steps
Sorry again
You could just do something like this, just input the armor piece you want. It's more efficient to just link the procedure to the armor item itself, but this procedure will run on its own.
Thank you so much
I'll be back