Change the current target Entity with GUI.

Started by Merokz on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Feb 2022
Points:
470

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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?