Killing the player based on distance to a moving "circle of death"

Started by prestomajesto on

Topic category: Help with MCreator software

Last seen on 14:39, 25. Feb 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Killing the player based on distance to a moving "circle of death"
Sat, 02/25/2023 - 02:47 (edited)

Hi all,

 

I've been trying to make a mod that incentivizes a nomadic-style playthrough, and I'd love some assistance with getting started.

 

The idea is to create a circular area (of about 400-ish blocks wide?) that spawns some distance away from the player. Every three days, the circle moves closer to the player and if it intersects with the player's coordinates, they die. 

 

I've read through much of the tutorials and wiki but I'm still a bit lost. How would I begin the process of implementing this? I've never been terribly good at code but this is the first time in ages that I've been motivated to do it :p

 

Thanks!

Edited by prestomajesto on Sat, 02/25/2023 - 02:47
Last seen on 14:39, 25. Feb 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thinking about this again,…
Sat, 02/25/2023 - 02:44

thinking about this again, maybe a more elegant implementation would be to ditch the whole circle idea, and replace that with "if the player is within x distance if this coordinate (which moves closer every three days) then the player dies"

Last seen on 14:39, 25. Feb 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disregard my last message…
Sat, 02/25/2023 - 02:49

Disregard my last message entirely, it doesn't have the same effect