Paste #113001: Unnamed Denizen Script Paste

Date: 2023/07/28 15:13:20 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
14


MagmaSpread_Run_Task:
    type: task
    definitions: start_pos
    script:
    - define max_change 50
    - while <server.has_flag[MagmaSpread]>:
        - foreach <[start_pos].find_blocks[!air|magma_block].within[<[loop_index]>]> as:loc:
            - modifyblock <[loc]> magma_block no_physics
            - define max_change:--
            - if <[max_change]> <= 0:
                - stop
            - wait 2t
        - wait 10t