Change the current target Entity with GUI.

Started by Merokz on

Topic category: Help with modding (Java Edition)

Last seen on 16:07, 14. Feb 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change the current target Entity with GUI.

Hello Everyone!

 

I just started using MCreator and I have a question for you.

 

I am working on a currency-mod, which is supposed to be used for trades etc.

I am trying to implement a GUI to the whole system, as seen below.

(The "Add" and "Remove Money"-buttons are only for testing, (to see, if the updates work), so just ignore them).


 

My current struggle is, that i am not sure how to change the targeted entity.

I want to use the 2nd Inputbox in the GUI to change the target entity to the selected player.

 

Any ideas on how to do that?