Key that remains activated

Started by Th4tOneCloud on

Topic category: Help with modding (Java Edition)

Last seen on 00:16, 16. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Key that remains activated
Sat, 07/13/2024 - 20:00 (edited)

Hello, I'm trying to create a Zelda Totk inspired paraglider mod but I'm having a problem trying to make sure that when you activate the paraglider it stays activated, can anyone help me?

(Sorry if there is bad English, I am using a translator)

Images of my code:

Edited by Th4tOneCloud on Sat, 07/13/2024 - 20:00
Last seen on 19:51, 2. Oct 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Love the idea! I can think…
Mon, 07/08/2024 - 21:19

Love the idea! I can think of two easy ways to do this, one by using variables, but it might be simpler to make it so that when the key is pressed, the player is given a potion effect that last until the block below them is no longer air, or that they are given the effect when it is pressed, and it is removed when it is released. Let me know if you need help with this!