Paste #31697: Edit of P#31696 - Diff note for paste #31695

Date: 2016/03/16 17:46:11 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


leashinteract:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - if <player.location.find.entities[HORSE].within[5].size> >= 1 {
                  - foreach <player.location.find.entities[HORSE].within[5]> {
                    - if <%value%.get_leash_holder> == <player> {
                      - animate <npc> animation:ARM_SWING
                      - modifyblock l@608,65,118,newwold m@fence
                      - leash %value% holder:l@608,65,118,newwold
                      }
                    }
                  }