Key binding not working

Started by LeKebabGeek on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Key binding not working
Sat, 12/05/2020 - 08:56 (edited)

Hello,

I'm on 2020.5 version and I wanted to make a ridden entity shoot a projectile when I hit a key, I've made the procedure for shooting, it works when I put it in the "on entity tick update" box in the entity triggers, but when I try to bind a key to the procedure it doesn't work.

I'd like to make that as long as I press the button, it keeps shooting.

Procedure for shooting projectile:

https://imgur.com/GzfrBvb
 

Keybind:

https://imgur.com/4FGDbMQ

Edited by LeKebabGeek on Sat, 12/05/2020 - 08:56
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
because the entity passed to…
Mon, 11/16/2020 - 01:04

because the entity passed to your procedure is the player, not the mechaboyus

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How could I pass the…
Mon, 11/16/2020 - 07:04

How could I pass the mechaboyus instead of the player?

Entity in range or riding…
Mon, 11/16/2020 - 07:40

Entity in range or riding entity blocks.

But make sure to check if said entity is (sub)type your mod to make sure the checked entity is not null, or the game will crash.

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thx for the help 👌🏻
Mon, 11/16/2020 - 08:49

Thx for the help 👌🏻

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, I'm trying to create…
Sat, 05/01/2021 - 20:11

Hi, I'm trying to create something similar and am having the issue of the keybind not working. I'm on Mcreator 2021.1 and wanted to ask if you could be more specific with how to fix this error as I cant find the things you referred to anywhere, thanks!