Verifying Tamed Mobs with Specific Tags

Started by Snow256 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Jan 2020
Points:
691

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
Verifying Tamed Mobs with Specific Tags

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

Active 11 months ago
Joined Jun 2023
Points:
336

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 174
I'm not sure your intention…
Thu, 08/03/2023 - 22:56

I'm not sure your intention or exact use, but something similar to this should work:

https://imgur.com/EDlELRZ

Active 1 year ago
Joined Jan 2020
Points:
691

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
I tried, but it didn't work…
Sun, 08/06/2023 - 02:00

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.

Active 11 months ago
Joined Jun 2023
Points:
336

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 174
Since you're using the …
Sun, 08/06/2023 - 04:55

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]

Active 1 year ago
Joined Jan 2020
Points:
691

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
Ah, man, it didn't work out,…
Sun, 08/06/2023 - 22:04

Ah, man, it didn't work out, but still, thanks!