How to make my idea?

Started by RedCorr on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Sep 2019
Points:
908

User statistics:

  • Modifications: 0
  • Forum topics: 40
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 115
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

Active 2 years ago
Joined Aug 2022
Points:
479

User statistics:

  • Modifications: 0
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
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?

Active 1 year ago
Joined Mar 2020
Points:
664

User statistics:

  • Modifications: 2
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
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.