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> {
+ - if <def[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
+ - leash '<def[value]>' 'holder:l@608,65,118,newwold'
}
}
}