Verifying Tamed Mobs with Specific Tags

Started by Snow256 on

Topic category: Help with modding (Java Edition)

Last seen on 23:51, 10. Mar 2024
Joined Jan 2020
Points:

User statistics:

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

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

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

Last seen on 23:51, 10. Mar 2024
Joined Jan 2020
Points:

User statistics:

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

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

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

Last seen on 23:51, 10. Mar 2024
Joined Jan 2020
Points:

User statistics:

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

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