How can I link these two codes?

Started by Capapro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I link these two codes?
Tue, 11/09/2021 - 15:51 (edited)

Hello all, I was making a mod about it as I wanted to change the difficulty via shortcut. But I couldn't connect these two codes in the picture, how can I connect them?

picture link:https://ibb.co/FWCwcT2

Edited by Capapro on Tue, 11/09/2021 - 15:51
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
with if statements? you…
Tue, 11/09/2021 - 16:28

with if statements? you might want to search tutorials on how to make procedures on yt

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't want code, I want to…
Tue, 11/09/2021 - 16:37

I don't want code, I want to collect these two pieces

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what?
Tue, 11/09/2021 - 16:58

what?