I'm trying to figure out how to change the range item texture when shooting

Started by Season_Cookie on

Topic category: Help with MCreator software

Last seen on 03:26, 9. May 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm trying to figure out how to change the range item texture when shooting

I'm trying to find out how to change the range item texture when shooting with the ranged item in-game, an example would be when you shoot with the ranged item the texture changes and when you stop shooting it changes back to the texture of when your not shooting, I've been experimenting for an hour and looking up videos and I cannot find anything about this. If you could help it would make my day :) and also won't make me have to scrap all of the work I've been trying to do.

Last seen on 01:00, 12. Aug 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay. So this is kinda…
Tue, 08/10/2021 - 22:17

Okay. So this is kinda complicated. You can't use the Ranged Item template: instead, you need to use the standard item template (although you will want to make another ranged item so that the afore-mentioned item can fire bullets).

 

When the gun is used, you can use an nbt change block to change an nbt tag ("IsFiring" is an appropriate name) to True. Change this nbt tag to False in the procedure that takes place in "when item stopped using"

 

Here's the complicated part: You'll now want to use a dynamic model file, which involves creating a new .json file, with the default texture being the default model. You can read the compass.json file for an example