How do you make the weapon fire like a shotgun?

Started by Ball-van on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you make the weapon fire like a shotgun?

Hello everyone!
I made a small weapon - a shotgun. I want to make it shoot multiple bullets like a shot. Yes, I've seen tutorials on how to make a shotgun, but the point is that they use arrows, and I want to use custom projectiles, and their code is different from arrows. Please tell me or help how to do this and is it possible?

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So what you use is similar…
Wed, 06/30/2021 - 17:24

So what you use is similar to arrows, but make a ranged item for the bullet, but make it have no creative entry, and use the same code as arrows, but where it says arrows, drop it down and change it to your bullet.

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello. In this case,…
Wed, 06/30/2021 - 17:38

Hello.
In this case, MCreator throws an error.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://www.youtube.com…
Fri, 07/02/2021 - 20:28

https://www.youtube.com/watch?v=OY1AgaeekU8&t=204s

not mine, but really good. i use it for my shotguns.

the code you replace is in the item that shoots not the projectiles, so you can choose whatever bullet you want in the dropdown of the procedure.