Respawning in a dimension with effect

Started by Q-Bit on

Topic category: Help with modding (Java Edition)

Last seen on 14:32, 15. Jun 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Respawning in a dimension with effect

Hi, i'm trying to get the player to spawn in a dimension after he died but only if he has an effect.

At the moment, a block is placed in the dimension when the effect is applied to the player, but when the player dies, he respawns at the worldspawn. (The block placement triggers an event that should set the spawnpoint on top of the block)

I could set the worldspawn in the dimension but then multiplayer wouldn't work.