[TUTORIAL] Shotgun with multiple projectiles

Started by joseph8675309 on Sat, 01/02/2021 - 00:22

Topic category: User side tutorials

Last seen on 20:13, 4. Jul 2022
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[TUTORIAL] Shotgun with multiple projectiles
Sat, 01/02/2021 - 00:22

In this tutorial you will learn how to make a weapon shoot multiple projectiles like a shotgun. to start off this is going to be super easy really its just adding a number in the right place and its done, so lets get to it. First of all you will have to make a procedure like thisxz

you can change the projectile to whatever you want but make sure thats how you want it, so this procedure is going to go with your weapon under when ranged item used.

gasd

now here comes the coding part so to edit the code of the procedure with 4 arrows above we need to click the procedure then click the edit.

daegr

once you are in you will see something like this

rfhdf

what you want to look for is something like this

f

this is one of the arrows i had 4 so i would edit 4 but if you want less then thats cool too. so now that you are here outlined in the red is the offset that the arrow will have when it is shot so we want to change this so the arrows wont shoot in the same place and actually be spread out, in the smaller red circle is what i added to change the position of the arrow normally you will just see  x     y      and z       but to change them just add + and a number like 0.2 going above to 1 or 2 is super far. so to make more spread arrows i addes +0.1 to x  y  and z but for each arrow i only chose one to edit for example  for the first arrow i did x+0.1    y   z and then the second arrow i did   y+0.1     I do this to keep every arrow separate. once you edit your arrows i suggest copying all of the code and pasting it somewhere in case you want to do it for more stuff ,once you are finished press save and exit and lock code for mcreator . Now you are done your weapon should now have multiple projectiles, feel like a code lord yet

mil

Last seen on 15:22, 24. Apr 2022
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks... This very helped…
Tue, 01/19/2021 - 19:31

Thanks... This very helped me :) gj

Last seen on 12:40, 3. Jul 2022
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hello and thank you Joseph…
Sun, 02/07/2021 - 17:33

Hello and thank you Joseph for your tutorial.
I allowed myself to use it to transform it into a plugin, which avoids touching the code.

Plugin: https://mega.nz/file/6kkAGTZB#gRVKA0WvZAgVQORe7AkWqfeu_6j-NWXR5gZDQFNMM…

Last seen on 03:58, 17. Feb 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
you'll never give up on it…
Wed, 02/17/2021 - 04:00

you'll never give up on it. No matter how bad the situation may get cookie clicker free game

Last seen on 03:47, 30. Jun 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This doesn't work anymore
Thu, 03/04/2021 - 01:11

This doesn't work anymore

Last seen on 01:23, 2. Jul 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how exactly does the plugin…
Sat, 05/29/2021 - 20:58

how exactly does the plugin work? i have it loaded and it doesnt look like anything changed

Last seen on 01:23, 2. Jul 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is there any way to get it…
Fri, 06/04/2021 - 21:23

Is there any way to get it to work with custom projectiles or no?

Last seen on 12:40, 3. Jul 2022
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I haven't tested, but it's…
Sat, 06/05/2021 - 18:02

I haven't tested, but it's just a copy of the existing block in MCreator, so if it's possible with the MCreator block it's okay with this one too.
I'll do a test.

Last seen on 01:23, 2. Jul 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
only reason i ask is because…
Sun, 06/06/2021 - 15:29

only reason i ask is because from my own tests it seems to just shoot them at the same time straight, and when i change it over to arrow they shoot properly

Last seen on 11:04, 3. Feb 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
 You can also add/change the…
Wed, 07/14/2021 - 10:38

 You can also add/change the particle/bullet and the vector to get a more of a shotgun feel. This is great, TY

 

Chew

Last seen on 01:33, 31. May 2022
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
this doesn't work anymore
Tue, 10/12/2021 - 01:09

this doesn't work anymore

Last seen on 16:31, 21. Jun 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
:( no it doesn't
Wed, 12/22/2021 - 19:45

:( no it doesn't