Started by
Snow256
on
Topic category: Help with modding (Java Edition)
Hello! I'm having a certain issue, and I'd like to ask for help. I'm creating a procedure to check if a player has a tamed mob with a specific tag. Does anyone know if this is possible and how can I accomplish it? The reason for using a tag is that there are multiple tamed mobs with the same tag
I'm not sure your intention or exact use, but something similar to this should work:
https://imgur.com/EDlELRZ
Not sure why I used a string for that, lol. This would work as well:
https://imgur.com/25WNNDe
I tried, but it didn't work out. Could you please tell me what I did wrong?
The idea is an item that tames a zombie, but I want the player to be able to tame only one.![](https://i.imgur.com/Nh6V9mH.png)
Since you're using the "player right clicks on entity" you wouldn't need the "entity iterator" since the entity being clicked would the the event/target entity. For the "get owner of" change the entity iterator to [event/target entity] and change the current event/target entity to [source entity]
Ah, man, it didn't work out, but still, thanks!