How to make mob shoot when right-click at the time when riding it

Started by Gamemaster2022 on

Topic category: Help with modding (Java Edition)

Last seen on 16:16, 15. Sep 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make mob shoot when right-click at the time when riding it

Hello, I am making mod with warfare items and I made tank. I want to make it shoot rocket (bullet) when mounted by right-click. I do not know how to do it. I am not afraid of coding so let´s talk! Every idea is welcome. Thank you!

Last seen on 16:16, 15. Sep 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help please. I really…
Tue, 05/25/2021 - 06:44

Help please. I really appreciate it!

Last seen on 09:43, 1. Jun 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here's the code: https://ibb…
Tue, 06/01/2021 - 05:31

Here's the code: https://ibb.co/kGwwHbd

Haven't tested this, but it should work. If you have questions, ask.

AND PLEASE LOOK IN TOO MY FORUMS!!!

TELL EVERYONE YOU KNOW, THAT I NEED HELP

 

Last seen on 16:16, 15. Sep 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello thanks for your reply…
Sat, 06/05/2021 - 06:40

Hello thanks for your reply. I actually tried it but It seems like it does not work. Anyways I will look into your forums for help. Thank you!

 

Last seen on 09:43, 1. Jun 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  It shoots an arrow, when…
Sat, 06/05/2021 - 15:38

 

It shoots an arrow, when you right click on the mount(Raptor). If that is still not working, try using the same code, but rather than shooting an arrow, do "/say hi" To see if the arguments as a whole, work.

If still it doesn't work, please ask. I'll think about the problem is very seriously...

Last seen on 16:16, 15. Sep 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hmmm... Tested right now. It…
Sun, 06/06/2021 - 08:42

Hmmm... Tested right now. It does nothing :(

Last seen on 09:43, 1. Jun 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Before I start, try making…
Mon, 06/07/2021 - 10:39

Before I start, try making the cube bigger(in the get closest entity square cube), maybe that will work.

If you can, please give an image, with "/say" command instead of "shoot arrow" brick.

I need to take close look.