Help me make a dash enchantment (SOLVED)

Started by TheGunner5712 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help me make a dash enchantment (SOLVED)
Fri, 11/29/2024 - 16:22 (edited)

Hi guys, currently I want to make an enchantment called Dash. It works like the camel dash mechanic in Minecraft, using a key binding (x by default). But now I'm having some problems with the keybinding procedure. Image here: https://imgur.com/3Louhi

Btw i also used tutorials by Cursed Warrior and Kyoukster Mcreator and combined them together.

 

 

*Edit: I just solved the problem, thx to Sin Costan comment, i try to search on Youtube tutorial about timer, and then find a way to fixed it by using nbt timer. Then i just combined it with the procedure i already have. The link of the vid i use here: https://www.youtube.com/watch?v=NuxllOka6p0

Edited by TheGunner5712 on Fri, 11/29/2024 - 16:22
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the green block at the…
Tue, 11/19/2024 - 23:08

In the green block at the top of the procedute, change "On Player tick Update" to No Additional Trigger

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for the reply, but…
Wed, 11/20/2024 - 03:32

Thanks for the reply, but after correcting the procedure I encountered another problem. When set to "On player tick update", it will continuously Dash every time the cooldown expires without having to press the key binding. But when I change it to "No additional trigger", the key binding cannot work. How do i fix this error

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you click on your keybind…
Wed, 11/20/2024 - 21:21

if you click on your keybind, is it still showing that the procedure is assigned to that key?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
since you're using a wait…
Wed, 11/20/2024 - 22:48

since you're using a wait block i'd imagine it probably isn't changing the tag back to false (for example, if you leave the game before the cooldown is over, then the cooldown is effectively infinite and you can't use the ability again)
easiest solution would be to just use the item cooldown block on the boots and make sure the boots aren't on cooldown when checking it again
you could also use potion effects or a dedicated procedure for the cooldown, if you plan on adding more abilities that have cooldowns

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok i just fix the key…
Thu, 11/21/2024 - 02:56

Ok i just fix the key binding part, turns out that i just forgot to add the "Keybind on pressed" procedure to the Keybind element XD. Now i'll try to to make the cooldown doesn't become infinite

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
btw do any of u guys have…
Sat, 11/23/2024 - 04:00

btw do any of u guys have any idea to make the cooldown doesn't become infinite?