Key binding not working

Started by LeKebabGeek on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Jul 2018
Points:
732

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
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
Active 3 years ago
Joined Nov 2019
Points:
877

User statistics:

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

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

Active 4 years ago
Joined Jul 2018
Points:
732

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
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.

Active 4 years ago
Joined Jul 2018
Points:
732

User statistics:

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

Thx for the help 👌🏻

Active 3 years ago
Joined May 2021
Points:
588

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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!

Active 5 months ago
Joined Nov 2024
Points:
39

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Klemen, could you please…
Sun, 02/09/2025 - 23:32

Klemen, could you please send me a screenshot on specifically how to make the event/target entity not be the player and instead the mob? I've tried your entity in range and riding entity blocks for hours. I would really like it if you could give me a solution