Started by
Gtima Orioner
on
Topic category: Help with Minecraft modding (Java Edition)
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!
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