Hytale Asset ReferenceUnofficial
Versions / 0.4.0 / Item / RootInteractions / Weapons / Shortbow / Root_Weapon_Shortbow_Secondary_Guard.json

Root_Weapon_Shortbow_Secondary_Guard

Server/Item/RootInteractions/Weapons/Shortbow/Root_Weapon_Shortbow_Secondary_Guard.json, 811 B

Fields

FieldType
RequireNewClickboolean
Rulesobject
Interactionsarray[2]
Tagsobject

Source

{
  "RequireNewClick": true,
  "Rules": {
    "Interrupting": [
      "Primary"
    ]
  },
  "Interactions": [
    {
      "Type": "StatsCondition",
      "Costs": {
        "Ammo": 1
      },
      "Next": {
        "Type": "ChangeStat",
        "Behaviour": "Set",
        "StatModifiers": {
          "Ammo": 0
        },
        "Next": {
          "Type": "ModifyInventory",
          "RequiredGameMode": "Adventure",
          "ItemToAdd": {
            "Id": "Weapon_Arrow_Crude",
            "Quantity": 1
          }
        }
      }
    },
    {
      "Type": "Replace",
      "Var": "Guard_Start",
      "DefaultOk": true,
      "DefaultValue": {
        "Interactions": [
          "Weapon_Shortbow_Secondary_Guard"
        ]
      }
    }
  ],
  "Tags": {
    "Attack": [
      "Melee"
    ]
  }
}