Paste #47777: Untitled Paste

Date: 2018/06/08 19:11:36 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Labyrinth_Reset_Spawn: 
    type: world 
    events: 
        on player enters wgregion_W_world_R_labyrinth: 
            - adjust <player> bed_spawn_location:<l@333,63,287,world>
            - narrate "<&2>Your spawn location has been changed in case of death or disconnect." 



## This is suspic's code.  it works great.
worldguard_regions_to_notable_cuboids:
    type: task
    debug: false
    speed: 0
    script:
    - define c_list 'li@'
    - foreach <server.list_worlds> {
        - define w '<def[value]>'
        - foreach <def[w].list_regions> {
            - note <def[value].cuboid> 'as:wgregion_W_<def[w].name>_R_<def[value].id>'
            - define c_list '<def[c_list].include[cu@wgregion_W_<def[w].name>_R_<def[value].id>]>'
        }
    }
    - foreach <server.list_notables[cuboids].filter[starts_with[cu@wgregion_]].exclude[<def[c_list]>]> {
        - note remove as:<def[value]>
    }