How to detect when the specific mob as a player pet dies

Started by Megidora on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to detect when the specific mob as a player pet dies

So, I have a hat that gives you ability to summon special entities that will fight for you(wolf reskins basically), but I want to limit the amount of summons to lets say 2, I tried to do this via the global variable and if statement, but I have a problem, I dont know how to lower the variable when the entity dies, I will be very thankful to anyone who will help me with this issue

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure with global…
Sun, 01/21/2024 - 19:09

Procedure with global trigger when entity dies. If entity is sub type of (your mob) lower the value.

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, but this work only in…
Tue, 01/23/2024 - 18:53

Yeah, but this work only in singleplayer, but I want this work in multiplayer also