What type of variable should I use for entity bar

Started by natemilligan45 on Tue, 10/18/2022 - 21:20

Topic category: Help with modding (Java Edition)

Last seen on 23:20, 10. Dec 2022
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What type of variable should I use for entity bar
Tue, 10/18/2022 - 21:20

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 16:27, 27. Jan 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.