How to make my idea?

Started by RedCorr on

Topic category: Help with modding (Java Edition)

Last seen on 16:59, 27. Aug 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make my idea?

Basically I have a weapon and I already made one procedure with it, however I can't make timer.
I need to set timer on how fast XP will be removed from player, and while XP is removed it will generate effects.
I don't know how to make timer, as well as one button that can turn that mode on and off, please help me

Last seen on 21:53, 12. Sep 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know about the timer…
Sat, 09/03/2022 - 20:49

I don't know about the timer, but maybe you could make a GUI for the buttons?

Last seen on 13:52, 24. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a keybing that will…
Sat, 09/03/2022 - 21:22

Add a keybing that will manipulate the boolean. Add a global variable that will hold the remaining seconds (you'll need to enter the seconds in ticks (1 second = 20 ticks). On entity tick when the mode is on remove one tick from global variable. When boolean is off, reset the timer.