making an one time procedure

Started by kittenbimble on

Topic category: Help with modding (Java Edition)

Last seen on 12:06, 30. Mar 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
making an one time procedure

I made a procedure that randomize entities textures, how can I edit it so It will only play once?
at least so if the player tamed one of the entities, its texture won't be randomized every time the player loads into the world

Screenshot-1

Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In this case I would suggest…
Sat, 07/15/2023 - 16:28

In this case I would suggest setting a string NBT tag on the entity. In your procedure, if the entity's tag is empty, change the texture and set the tag. If the tag already exists, just set the texture.