Paste #10521: Untitled Paste

Date: 2014/10/16 18:56:45 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
15
16
17
18


dRestaurant:
  type: world
  debug: false
  events:

    on magictest command:
      - determine passively fulfilled
      - define startTime <server.current_time_millis>
      - define locations '<cu@restaurant_demo1.get_blocks>'
#      - define materials '<parse:<def[locations].include[<&sp>].replace[l@].with[<&lt>l@].replace[|].with[.as_location.material<&gt>|].as_list.exclude[<&sp>]>>'
#      - narrate <def[locations].comma_separated>
#      - narrate <def[materials].comma_separated>
      - narrate <def[locations].get[<def[materials].find[m@quartz_block]||1>]||null>
#      - repeat <def[locations].size> {
#        - narrate <def[locations].get[%value%]>
#        - narrate <def[materials].get[%value%]>
#        }
      - narrate "<&6>Complete!<&co> <&a><server.current_time_millis.sub[%startTime%].as_int>"