Can somebody help me with my idea?

Started by RedCorr on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Sep 2019
Points:
906

User statistics:

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

Active 2 years ago
Joined Feb 2022
Points:
660

User statistics:

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

Active 3 years ago
Joined Sep 2019
Points:
906

User statistics:

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

Active 3 years ago
Joined Sep 2019
Points:
906

User statistics:

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

f

yeah I'm having some difficulties with things sorry xd

Active 3 years ago
Joined Sep 2019
Points:
906

User statistics:

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

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

Active 2 years ago
Joined Feb 2022
Points:
670

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 158
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).

Active 3 years ago
Joined Sep 2019
Points:
906

User statistics:

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