Paste #68922: Untitled Paste

Date: 2020/05/13 00:42:26 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


anvil_interact:
    type: world
    events:
        on player places anvil:
        - yaml load:anvils.yml id:anvils
        - yaml id:anvils set anvil.location:<context.location>
        - yaml savefile:anvils.yml id:anvils
        - narrate "<yaml[anvils].read[anvil].get_sub_items[1].get[1]>"
        on player breaks anvil:
        - yaml load:anvils.yml id:anvils
        - yaml id:anvils set anvil:<context.location>
        - yaml savefile:anvils.yml id:anvils
        on player left clicks anvil with hammer:
        - yaml load:anvils.yml id:anvils
        - define anvils:<yaml[anvils].read[anvil].get_sub_items[1]>
        - if <[anvils].contains_any[<context.location>]>:
            - narrate pass