Paste #112509: Unnamed Denizen Script Paste

Date: 2023/07/19 09:30:51 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13


ChunkLoad_Command:
    type: command
    name: chunkload
    description: Does something
    usage: /chunkload
    permission: dscript.mycmd
    script:
    - if <context.source_type> == player:
        - define chunk <player.location.chunk>
        - chunkload <[chunk]>
        - narrate "Loaded Chunk <[chunk]>"
        - wait 5t
        - narrate "Is Chunk Force Loaded: <[chunk].force_loaded>"