Verifying Tamed Mobs with Specific Tags

Started by Snow256 on

Topic category: Help with Minecraft modding (Java Edition)

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

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.

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]

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!