Help with Armour Effects

Started by jacenjuniorndu… on

Topic category: Help with MCreator software

Last seen on 19:23, 15. May 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with Armour Effects
Mon, 11/13/2023 - 20:20 (edited)

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
Last seen on 23:32, 16. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make a procedure in…
Tue, 11/14/2023 - 15:09

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.) 

Last seen on 19:23, 15. May 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you  But i want it to…
Tue, 11/14/2023 - 16:24

Thank you 

But i want it to last until it is taken off

 

Last seen on 23:32, 16. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The procedure triggers on…
Tue, 11/14/2023 - 16:32

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.

Last seen on 19:23, 15. May 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry i replied a late But…
Thu, 11/16/2023 - 15:38

Sorry i replied a late

But could you give me steps 

Sorry again

Last seen on 23:32, 16. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could just do something…
Thu, 11/16/2023 - 15:55

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.

Last seen on 19:23, 15. May 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much  I'll be…
Sat, 11/18/2023 - 15:09

Thank you so much 

I'll be back