Paste #63556: while loop

Date: 2020/01/05 11:51:35 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9


- if <context.location.material> == <material[wheat[age=7]]>:
            - if <server.has_flag[breakqueue]>:
                - flag server breakqueue:->:<context.location>/<npc[<server.flag[cuboids].map_find_key[<context.location.cuboids.get[2].notable_name>]>]>
        #send the npc who the area belongs to to break the block
            - else:
                - flag server breakqueue:->:<context.location>/<npc[<server.flag[cuboids].map_find_key[<context.location.cuboids.get[2].notable_name>]>]>
                - while <server.has_flag[breakqueue]>:
                    - ~break <server.flag[breakqueue].get[1].split[/].get[1]> <server.flag[breakqueue].get[1].split[/].get[2]>
                    - flag server breakqueue[1]:<-