Make Gun (ranged weapon) dont swing down on Survival

Started by ninjawizard1234 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Nov 2023
Points:
457

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 343
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));
	}
Active 1 year ago
Joined Jan 2024
Points:
114

User statistics:

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

use haste lvl 140