(Tutorial) How to make your custom bow function like a vanilla bow 1.16.5 2022.2

Started by mrbone'sbonethrone on

Topic category: User side tutorials

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Tutorial) How to make your custom bow function like a vanilla bow 1.16.5 2022.2

The way that I managed to make this work is by using the steps listed from [Tutorial] How to animate custom bow pulling (for 1.16)! | MCreator but you only need to do steps 1 and 3, ignore step 2, so the Java file called, "YourBowItem.JAVA" you need to delete everything and copy and paste the code below and replace everything that you need:

 

MCreator YourBowItem.JAVA Fixed Code - Pastebin.com

 

To modify the damage of your bow, find the line of code: SoundEvents.ENTITY_ARROW_SHOOT, SoundCategory.PLAYERS, 1.0F, 1.0F / (random.nextFloat() * 2F + 3F) + 2 * 12.0F);

I don't know exactly how these values work but all I know is that the third number (* 2F + 3F) + 2 * 12.0F) can't be a decimal number, only whole numbers.

 

If you do it right, your custom bow should shoot arrows like a vanilla bow!

 

I hope you all have a great day/night.

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Update: I just realized that…
Wed, 01/24/2024 - 22:10

Update: I just realized that the bows only work in creative mode😭

I'll make another tutorial soon to make this work properly.

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Update:Ive decided that I'm…
Thu, 01/25/2024 - 18:44

Update:Ive decided that I'm no longer going to use MCreator, I'm just gonna bite the bullet and learn Java code, see ya nerds later.

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Update: I decided to come…
Sun, 01/28/2024 - 00:45

Update: I decided to come back because I think I know how to get this to work.