{
  "$type": "Vintagestory.GameContent.EntityActivityCollection, VSSurvivalMod",
  "Name": "guard2keep",
  "Activities": {
    "$type": "System.Collections.Generic.List`1[[Vintagestory.GameContent.EntityActivity, VSSurvivalMod]], System.Private.CoreLib",
    "$values": [
      {
        "$type": "Vintagestory.GameContent.EntityActivity, VSSurvivalMod",
        "Slot": 0,
        "Priority": 20.0,
        "Name": "onattacked",
        "Code": "onattacked",
        "Conditions": {
          "$type": "Vintagestory.GameContent.IActionCondition[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.EmotionStateCondition, VSSurvivalMod",
              "emotionState": "aggressiveondamage",
              "Invert": false
            }
          ]
        },
        "Actions": {
          "$type": "Vintagestory.GameContent.IEntityAction[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.UndressAction, VSSurvivalMod",
              "Slot": "heldl"
            },
            {
              "$type": "Vintagestory.GameContent.UndressAction, VSSurvivalMod",
              "Slot": "heldr"
            },
            {
              "$type": "Vintagestory.GameContent.UnequipAction, VSSurvivalMod",
              "Target": "righthand"
            },
            {
              "$type": "Vintagestory.GameContent.UnequipAction, VSSurvivalMod",
              "Target": "lefthand"
            },
            {
              "$type": "Vintagestory.GameContent.StandardAIAction, VSSurvivalMod",
              "durationSeconds": 60.0
            }
          ]
        },
        "ConditionsOp": 1
      },
      {
        "$type": "Vintagestory.GameContent.EntityActivity, VSSurvivalMod",
        "Slot": 0,
        "Priority": 2.0,
        "Name": "towertohome",
        "Conditions": {
          "$type": "Vintagestory.GameContent.IActionCondition[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.TimeOfDayCondition, VSSurvivalMod",
              "minHour": 18.0,
              "maxHour": 4.0,
              "Invert": false
            },
            {
              "$type": "Vintagestory.GameContent.PositionVicinityCondition, VSSurvivalMod",
              "range": 3.0,
              "Invert": true,
              "targetX": 512791.6,
              "targetY": 21.0,
              "targetZ": 511702.6,
            },
            {
              "$type": "Vintagestory.GameContent.PositionVicinityCondition, VSSurvivalMod",
              "range": 3.0,
              "Invert": true,
              "targetX": 512832.6,
              "targetY": 40.0,
              "targetZ": 511712.7,
            }
          ]
        },
        "Actions": {
          "$type": "Vintagestory.GameContent.IEntityAction[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512833.6,
              "targetY": 29.0,
              "targetZ": 511712.2,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:",
              "searchRange": 2.0,
              "activateArgs": "{opened: true}",
              "targetX": 512833.5,
              "targetY": 29.0,
              "targetZ": 511710.6,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512833.4,
              "targetY": 28.0,
              "targetZ": 511709.5,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:",
              "searchRange": 2.0,
              "activateArgs": "{opened: false}",
              "targetX": 512833.5,
              "targetY": 29.0,
              "targetZ": 511710.6,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512837.1,
              "targetY": 28.0,
              "targetZ": 511709.3,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512837.1,
              "targetY": 28.0,
              "targetZ": 511705.9,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512829.8,
              "targetY": 28.0,
              "targetZ": 511706.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": true,
              "Radius": 0.0,
              "targetX": 512819.5,
              "targetY": 23.0,
              "targetZ": 511720.9,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:door*",
              "searchRange": 3.0,
              "activateArgs": "{opened: true}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512816.5,
              "targetY": 23.0,
              "targetZ": 511721.1,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:door*",
              "searchRange": 3.0,
              "activateArgs": "{opened: false}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": true,
              "Radius": 0.0,
              "targetX": 512807.7,
              "targetY": 23.0,
              "targetZ": 511721.1,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": true,
              "Radius": 0.0,
              "targetX": 512806.0,
              "targetY": 23.0,
              "targetZ": 511704.9,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512794.9,
              "targetY": 21.0,
              "targetZ": 511702.5,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:door*",
              "searchRange": 2.0,
              "activateArgs": "{opened: true}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512791.6,
              "targetY": 21.0,
              "targetZ": 511702.6,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:door*",
              "searchRange": 2.0,
              "activateArgs": "{opened: false}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            }
          ]
        },
        "ConditionsOp": 1
      },
      {
        "$type": "Vintagestory.GameContent.EntityActivity, VSSurvivalMod",
        "Slot": 0,
        "Priority": 1.5,
        "Name": "climbdownfromtower",
        "Conditions": {
          "$type": "Vintagestory.GameContent.IActionCondition[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.TimeOfDayCondition, VSSurvivalMod",
              "minHour": 18.0,
              "maxHour": 4.0,
              "Invert": false
            },
            {
              "$type": "Vintagestory.GameContent.PositionVicinityCondition, VSSurvivalMod",
              "range": 2.0,
              "Invert": true,
              "targetX": 512832.5,
              "targetY": 29.0,
              "targetZ": 511712.7,
            },
            {
              "$type": "Vintagestory.GameContent.PositionVicinityCondition, VSSurvivalMod",
              "range": 3.0,
              "Invert": true,
              "targetX": 512790.5,
              "targetY": 21.0,
              "targetZ": 511702.6,
            }
          ]
        },
        "Actions": {
          "$type": "Vintagestory.GameContent.IEntityAction[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:trapdoor*",
              "searchRange": 2.0,
              "activateArgs": "{opened: true}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512831.6,
              "targetY": 40.0,
              "targetZ": 511711.6,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512831.6,
              "targetY": 37.3,
              "targetZ": 511711.6,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:trapdoor*",
              "searchRange": 2.0,
              "activateArgs": "{opened: true}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512831.6,
              "targetY": 29.0,
              "targetZ": 511711.6,
            }
          ]
        },
        "ConditionsOp": 1
      },
      {
        "$type": "Vintagestory.GameContent.EntityActivity, VSSurvivalMod",
        "Slot": 0,
        "Priority": 1.2000000476837158,
        "Name": "climbladdertotower",
        "Conditions": {
          "$type": "Vintagestory.GameContent.IActionCondition[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.TimeOfDayCondition, VSSurvivalMod",
              "minHour": 8.0,
              "maxHour": 18.0,
              "Invert": false
            },
            {
              "$type": "Vintagestory.GameContent.PositionVicinityCondition, VSSurvivalMod",
              "range": 2.0,
              "Invert": false,
              "targetX": 512832.4,
              "targetY": 29.0,
              "targetZ": 511712.5,
            }
          ]
        },
        "Actions": {
          "$type": "Vintagestory.GameContent.IEntityAction[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512831.5,
              "targetY": 29.0,
              "targetZ": 511711.6,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512831.5,
              "targetY": 38.1,
              "targetZ": 511711.6,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:*door",
              "searchRange": 2.0,
              "activateArgs": "{opened: true}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512831.6,
              "targetY": 39.9,
              "targetZ": 511711.7,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:door*",
              "searchRange": 2.0,
              "activateArgs": "{opened: false}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            }
          ]
        },
        "ConditionsOp": 1
      },
      {
        "$type": "Vintagestory.GameContent.EntityActivity, VSSurvivalMod",
        "Slot": 0,
        "Priority": 1.0,
        "Name": "hometotower",
        "Conditions": {
          "$type": "Vintagestory.GameContent.IActionCondition[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.TimeOfDayCondition, VSSurvivalMod",
              "minHour": 6.0,
              "maxHour": 18.0,
              "Invert": false
            },
            {
              "$type": "Vintagestory.GameContent.PositionVicinityCondition, VSSurvivalMod",
              "range": 3.0,
              "Invert": true,
              "targetX": 512832.7,
              "targetY": 40.0,
              "targetZ": 511713.1,
            }
          ]
        },
        "Actions": {
          "$type": "Vintagestory.GameContent.IEntityAction[], VSSurvivalMod",
          "$values": [
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512791.5,
              "targetY": 21.0,
              "targetZ": 511702.5,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:door*",
              "searchRange": 2.0,
              "activateArgs": "{opened: true}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512795.0,
              "targetY": 21.0,
              "targetZ": 511702.4,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:door*",
              "searchRange": 2.0,
              "activateArgs": "{opened: false}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": true,
              "Radius": 0.0,
              "targetX": 512806.3,
              "targetY": 23.0,
              "targetZ": 511705.1,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": true,
              "Radius": 0.0,
              "targetX": 512808.5,
              "targetY": 23.0,
              "targetZ": 511721.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": true,
              "Radius": 0.0,
              "targetX": 512817.1,
              "targetY": 23.0,
              "targetZ": 511721.0,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:*gate*",
              "searchRange": 3.0,
              "activateArgs": "{opened: true}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512819.8,
              "targetY": 23.0,
              "targetZ": 511721.1,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:*gate*",
              "searchRange": 3.0,
              "activateArgs": "{opened: false}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": true,
              "Radius": 0.0,
              "targetX": 512829.3,
              "targetY": 28.0,
              "targetZ": 511706.1,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512836.9,
              "targetY": 28.0,
              "targetZ": 511705.8,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512837.1,
              "targetY": 28.0,
              "targetZ": 511709.5,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512833.4,
              "targetY": 28.0,
              "targetZ": 511709.5,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:door*",
              "searchRange": 2.0,
              "activateArgs": "{opened: true}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            },
            {
              "$type": "Vintagestory.GameContent.GotoAction, VSSurvivalMod",
              "AnimSpeed": 1.0,
              "WalkSpeed": 0.02,
              "AnimCode": "walk",
              "Astar": false,
              "Radius": 0.0,
              "targetX": 512833.5,
              "targetY": 29.0,
              "targetZ": 511712.4,
            },
            {
              "$type": "Vintagestory.GameContent.ActivateBlockAction, VSSurvivalMod",
              "targetBlockCode": "game:door*",
              "searchRange": 2.0,
              "activateArgs": "{opened: false}",
              "targetX": 0.0,
              "targetY": 0.0,
              "targetZ": 0.0,
            }
          ]
        },
        "ConditionsOp": 1
      }
    ]
  }
}