Terra icon indicating copy to clipboard operation
Terra copied to clipboard

Option in structures to specify "repeating script"

Open dfsek opened this issue 5 years ago • 1 comments

Add a repeat option to structure configs, which would have min-duration, max-duration, and script sub-keys. The specified script would then be repeated in an interval from min-duration to max-duration.

Example config:

repeat:
  min-duration: PT1M # 1 minute.
  max-duration: PT2M # 2 minutes.
  script: spawn_guardians

This config would run the spawn_guardians script every 1-2 minutes. It could be used to respawn guardians in an ocean monument structure.

The repeated script would be run at the structure's origin, and would only run when the origin is in a loaded chunk.

dfsek avatar Apr 04 '21 20:04 dfsek

Any progress about this issue? It seems kinda game-breaking for me.

REALMWTH avatar Aug 07 '21 14:08 REALMWTH