[TUTORIAL] Shotgun with multiple projectiles

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

Topic category: User side tutorials

Last seen on 13:57, 25. Feb 2021
Joined May 2018
User 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 14:16, 25. Feb 2021
Joined Jan 2016
User 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 07:18, 24. Feb 2021
Joined Aug 2014
User 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
User 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