Make Gun (ranged weapon) dont swing down on Survival

Started by ninjawizard1234 on

Topic category: Help with modding (Java Edition)

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make Gun (ranged weapon) dont swing down on Survival

so im trying to make my pistol/gun stop moving/swing while i shot, editing the .java i was able to make it stop on Creative but changing the entry SUCESS to PASS on the code below:

does anybody know how to stop it on survival too? (i set the animation to None inside the element btw)

@Override
	public InteractionResultHolder<ItemStack> use(Level world, Player entity, InteractionHand hand) {
		entity.startUsingItem(hand);
		return new InteractionResultHolder(InteractionResult.PASS, entity.getItemInHand(hand));
	}
Last seen on 14:46, 16. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use haste lvl 140
Fri, 04/12/2024 - 14:35

use haste lvl 140