Create mob that despawns if user that SPAWNED the mob is too far away or dies (multiplayer)

Started by Sayne on Fri, 11/04/2022 - 15:34

Topic category: Help with modding (Java Edition)

Last seen on 22:02, 29. Jan 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Create mob that despawns if user that SPAWNED the mob is too far away or dies (multiplayer)
Fri, 11/04/2022 - 15:34

Im currently working on a set of bosses, but I want to prevent players being able to run away, heal/gear up then come back. I also want to make sure the player doesn't die. However, I need the boss to be compatible with multiplayer. Is it possible to despawn bosses spawned by a specific player, when that specific player runs away or dies?