Date: 2014/10/16 18:56:45 UTC-07:00
Type: Denizen Script
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[<<>l@].replace[|].with[.as_location.material<>>|].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>"