How do I change an item's sprite live?

Started by Exantho on

Topic category: Help with modding (Java Edition)

Last seen on 07:15, 3. Feb 2023
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I change an item's sprite live?
Fri, 07/16/2021 - 14:24 (edited)

Recently, I had an interesting idea for an item similar to the compass and clock but would instead be a radar that would have the amount of mobs nearby appear as the number of dots on the sprite. As I was working on this, I realised that I couldn't find a way to change the sprite live, similar to the compass and clock. If anyone could help or point out that its possible (or best yet, add the ability to the program if it is currently impossible) that would be great. I've already scoured the forums and wiki but I couldn't find anything.

Thanks in advance.

-Exantho (Ethan)

Edited by Exantho on Fri, 07/16/2021 - 14:24
Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The best idea is to make a…
Fri, 07/16/2021 - 23:07

The best idea is to make a ton of variations of the texture

 

Thats how the compass and clock work

 

Tho I havent found a way to change the texture ingame so the next best thing is a ton of duplicate items and changing the item out for the next

Last seen on 07:15, 3. Feb 2023
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I already made all the…
Sat, 07/17/2021 - 07:09

I already made all the variations obviously but yeah, my problem is changing the sprite.
I already thought of the replacing item thing but I feel that would be quite clunky, in GUI and hand, both having the item doing annoying pick up animation.

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hmm true   Might be…
Sun, 07/18/2021 - 02:37

Hmm true

 

Might be something you have to do code for as I know of no other way