Make Gun (ranged weapon) dont swing down on Survival

Started by ninjawizard1234 on

Topic category: Help with modding (Java Edition)

Last seen on 02:04, 3. Mar 2024
Joined Nov 2023

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)

	public InteractionResultHolder<ItemStack> use(Level world, Player entity, InteractionHand hand) {
		return new InteractionResultHolder(InteractionResult.PASS, entity.getItemInHand(hand));