How do I assign permanent inventory to only tamed entity?

Started by Gtima Orioner on

Topic category: Help with modding (Java Edition)

Last seen on 17:07, 10. Mar 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I assign permanent inventory to only tamed entity?

Good afternoon! There was a problem with the implementation of the mob's inventory. In general, I would like to implement an inventory like a horse or a donkey. But if you link inventory through the MCreator inventory tab, then even if the entity is not tamed, you can open the inventory. I tried to implement it in many ways and tried to find a way on the Internet, but I did not find it. If you can tell me or show me how to implement it, I would be very grateful to you. I'm using MCreator 2023.4, a mod for forge 1.20.1.

Thank you in advance!

Last seen on 15:45, 8. Apr 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try this if you want the…
Thu, 04/04/2024 - 09:14

Try this if you want the Entity to be opened by only the person who tamed it :

If :   Is Target Entity tamed by Source Entity

do : Open GUI [    ] for Source Entity

 

Or If you want it to be opened by anyone :

If :    Is Target Entity tamed

do :  Open GUI [   ] for Source Entity