What type of variable should I use for entity bar

Started by natemilligan45 on

Topic category: Help with modding (Java Edition)

Last seen on 01:42, 28. Feb 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What type of variable should I use for entity bar

So I’m trying to give my mod made villager a happiness bar but I can’t figure out Wht type of variable. should I do global, local or nbt. Cause I heard global effects every villager. How should I go about it.

Last seen on 00:55, 28. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it for individual…
Fri, 10/21/2022 - 12:58

Is it for individual villagers, or the player? If you're trying to specifically give individual villagers happiness, I'm not sure how you'd go about it. To the best of my knowledge, you'd probably have to make some sort of custom nbt tag; variables can only affect players or the world itself.