How make action buttons on guis for mob

Started by ndemon00 on Mon, 04/25/2022 - 08:51

Topic category: Help with modding (Java Edition)

Last seen on 16:37, 20. Jun 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How make action buttons on guis for mob
Mon, 04/25/2022 - 08:51

How would I make buttons do an action in a gui for mobs, like for example a button tht when clicked causes them to follow 

Last seen on 05:13, 29. Jun 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
set a global variable, when…
Mon, 04/25/2022 - 16:39

set a global variable, when you push button it goes on your variable

In mob AI set conditions for following you the variable