[Tutorial] MCreator 2024.2 Tutorial for creating a shotgun.

Started by dkrdjdi on

Topic category: User side tutorials

Last seen on 09:08, 8. Sep 2024
Joined May 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Tutorial] MCreator 2024.2 Tutorial for creating a shotgun.

Triggers : https://imgur.com/a/jWYRwRz

 

Code : for (int i = 0; i < 5; i++)

*In the code, the value 5 means the number of projectiles.

 

Image for reference : https://imgur.com/a8KvSfj

*The higher the value of the part of the code with 15f, the more it spreads.

 

[Tutorial] : https://youtu.be/Qsx3-cDc6No

 

Last seen on 09:08, 8. Sep 2024
Joined May 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for (int i = -2; i < 5; i++)…
Sat, 08/03/2024 - 04:07

for (int i = -2; i < 5; i++)

_entityToSpawn.shoot(_shootFrom.getLookAngle().x + i * 0.1, 0, _shootFrom.getLookAngle().z + i * 0.1, 1, 0);

If you want to spread it more neatly, modify the code like this.