Get keycode and keycode press triggers

Started by Tazgirl on

Topic category: Feature requests and ideas for MCreator

Last seen on 19:30, 26. Apr 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get keycode and keycode press triggers

There's 3, maybe 4, client sided blocks I think could be really useful for advanced mod making and from my knowledge of Java should be possible.

A block which can get the keycode used for a supplied keybind. i.e keybind.name.ZOOM and then returns the keycode as a string

A block which takes an input of a keycode then forces it to be pressed for a set number of ticks. i.e holds down w for 10 ticks

A block which takes an input of a keycode then forces it to be de-pressed/unable to be pressed for a set number of ticks. i.e forces w to become unpressed for 10 ticks if held

 

Then this one is a maybe as it could be recreated through the use of the other blocks but would be easier:

A block which prevents the client from using a set keycode for a set number of ticks. i.e the player pressing w doesnt do anything but the force press block still can.