multiple use keybind

Started by Freddy101 on

Topic category: Help with modding (Java Edition)

Last seen on 09:38, 2. Dec 2023
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
multiple use keybind
Sat, 08/12/2023 - 20:59 (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 Sat, 08/12/2023 - 20:59
Last seen on 09:38, 2. Dec 2023
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

Last seen on 21:14, 29. Nov 2023
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