Can somebody help me with 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:
Can somebody help me with my idea?

Ok so, I was thinking about making a mod where when you press a certain key you enable "Blade mode" - your XP bar is decreasing and you gain speed effect, I already made this.
But now I'm curious if I can make that binded key on this mode activateable and deactivateable, like it switches from "On" to "Off" in a single key, and if can then how can I do that?
If I can't bind "Activate" and "Deactivate" on one button, then how do I make a timer?
(Also making a mod for 1.12.2 forge ofc)

Last seen on 06:22, 13. Mar 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In your keybind's procedure…
Mon, 08/22/2022 - 19:59

In your keybind's procedure set a logic nbt value and have an if else statement detecting if it is true or not and switch the value. Then use that value to determine whether "Blade Mode" is activated or not.

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok nice thanks! Also one…
Mon, 08/22/2022 - 20:17

Ok nice thanks!
Also one more question - can I make custom overlay appear when "Blade Mode" is activated? I looked at every catregory in either overlay and procedure but I didn't see anything related to Overlay.

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah I'm having some…
Mon, 08/22/2022 - 21:49

f

yeah I'm having some difficulties with things sorry xd

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh ok, I made this Toggling…
Tue, 08/23/2022 - 18:18

Oh ok, I made this Toggling without any NBT tags.
Surprisingly.

Last seen on 13:56, 19. Dec 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want a condition for…
Tue, 08/23/2022 - 19:45

If you want a condition for overlay, you have to go to the overlay element, then on the right, link a procedure that returns("return" procedure block in flow control tab) logic type data(true or false).

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sure but, what about overlay…
Fri, 08/26/2022 - 11:58

sure but, what about overlay that will appear only if certain particles is spawned?
or i can make it look like that with invisible hitbox?