[TUTORIAL] Shotgun with multiple projectiles

Started by joseph8675309 on

Topic category: User side tutorials

Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[TUTORIAL] Shotgun with multiple projectiles

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

Joined Jan 2016
Points:

User statistics:

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

Thanks... This very helped me :) gj

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined Feb 2021
Points:

User statistics:

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

This doesn't work anymore

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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?

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined Sep 2021
Points:

User statistics:

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

this doesn't work anymore

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is this outdated because I'm…
Fri, 09/27/2024 - 22:18

Is this outdated because I'm trying to look for the "shoot ranged item as" procedure and I can't find it.