Started by
LeKebabGeek
on
Topic category: Help with Minecraft modding (Java Edition)
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:
Keybind:
Edited by LeKebabGeek on Sat, 12/05/2020 - 08:56
because the entity passed to your procedure is the player, not the mechaboyus
How could I pass the mechaboyus instead of the player?
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.
Thx for the help 👌🏻
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!