Paste #44509: Untitled Paste

Date: 2017/09/18 06:36:06 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


# SHIPS PLUGIN  22099 17 -237721#
SHIPS_COMMAND: 
    type: command 
    name: ships
    script: 
    - choose "<context.args.get[1]>": 
        - case "spawn":
            - if <yaml[ships].contains[<context.args.get[2]>]>{
                - foreach <yaml[ships].list_keys[<context.args.get[2]>]> {
                    - spawn armor_stand[gravity=false;marker=true;equipment=<yaml[ships].read[<def[value]>.material].as_item>|air|air|air;armor_pose=head|<yaml[ships].read[<def[value]>.rotation]>] <yaml[ships].read[<def[value]>.location].as_location>
                }
            }
            else {
            - narrate "<&c>There is no ship of that name!"
            }