Custom Texture Resetting on Game Restart

Started by InfinitysDaughter on

Topic category: Plugins and third-party tools

Last seen on 23:09, 15. Jun 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Texture Resetting on Game Restart

I have an entity that I want to be able to set a texture variant based on an item used. I have the procedure and it works perfectly, however when I reload the world the texture reverts back to the base texture for the mob. The procedure does use the GekoLib "set texture" procedure.

Here is the procedure I've used. Would anyone have an idea how to make the change permanent unless changed via another item?

https://ibb.co/KL64Nzf

Last seen on 14:42, 19. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set an NBT which if present…
Fri, 05/26/2023 - 16:14

Set an NBT which if present on tick update, sets the texture if it's not already.

Last seen on 23:09, 15. Jun 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Would that allow for the use…
Fri, 05/26/2023 - 17:22

Would that allow for the use of multiple textures? Or would that look for a texture and replace any other texture with that one?

Last seen on 14:42, 19. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can only use one texture…
Fri, 05/26/2023 - 17:34

you can only use one texture at a time, but you can change that texture depending on a condition by doing what I described.

Last seen on 23:09, 15. Jun 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not really sure how to…
Fri, 05/26/2023 - 18:22

I'm not really sure how to do that.

Would I use the set nbt tag block and if yes, would I do that for each texture change block? Then how would I test for the tag on tick?