[SOLVED]multiple use keybind

Started by Freddy101 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED]multiple use keybind
Wed, 01/10/2024 - 18:55 (edited)

is there a way to make to make one keybind do multiple things ex: I want to make a keybind equip 1 of 7 different helmets but which helmet you get depends on which achievement you have

Kinda a noob so pics and downloads are more  helpful but ill take whatever help I can get

Edited by Freddy101 on Wed, 01/10/2024 - 18:55
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nevermind unless you can…
Sat, 08/12/2023 - 21:22

nevermind unless you can tell me how to do it without making 7 of the same keybinds with different procedures

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for the example, you first…
Sat, 08/12/2023 - 21:47

for the example, you first have to detect which advancement has been obtained, if the first one has been obtained, set the variable to 1, if the last one got detected, set it to 7 (you start 1st, 2nd, 3rd... 7th), then, you just add some condition blocks, and depending on the value of your variable, it puts this or that helmet, i hope i explained well enough and that it will help