making an one time procedure

Started by kittenbimble on

Topic category: Help with Minecraft modding (Java Edition)

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

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.