Paste #66188: Multiverse

Date: 2020/03/16 16:48:03 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Multiverse_Config:
  type: yaml data
  debug: false
  Worlds:
    Spawn_Hub:
      Difficulty: peaceful
      doDaylightCycle: false
    Dekara:
      Difficulty: easy
      doDaylightCycle: true
    PvP_World:
      Difficulty: peaceful
      doDaylightCycle: false
    Multiverse_Hub:
      Difficulty: peaceful
      doDaylightCycle: false
    Schematics:
      Difficulty: peaceful
      doDaylightCycle: false

Multiverse_Loader:
  type: world
  debug: false
  events:
    on server prestart:
      - foreach <script[Multiverse_Config].list_keys[Worlds]> as:world:
        - createworld <[world]>
        - adjust <world[<[world]>]> difficulty:<script[Multiverse_Config].read[Worlds.<[world]>.Difficulty]>
        - gamerule <world[<[world]>]> doDaylightCycle <script[Multiverse_Config].read[Worlds.<[world]>.doDaylightCycle]>