Is there a way to add draw time to a ranged item?

Started by Strevortni on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to add draw time to a ranged item?

So i have this musket,and i can't figure out a way for it to shoot only when fully drawn.

Any advice?

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nope because it's surely…
Sat, 07/13/2019 - 00:01

Nope because it's surely very hard to make, and I believe that for the moment, you would have to code.

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ik this is an old  topic but…
Sun, 10/30/2022 - 19:15

Ik this is an old  topic but it is on the top of google so here is how to change it draw back time

Open it with code and look for the 

        @Override

public int getUseDuration(ItemStack itemstack) {
return 72000;
}

 

and change the return 72000 to any value you want