Hytale Asset ReferenceUnofficial
Versions / 0.4.0 / Item / Interactions / Weapons / Hatchet / Attacks / Chop / Scraper_Chop.json

Scraper_Chop

Server/Item/Interactions/Weapons/Hatchet/Attacks/Chop/Scraper_Chop.json, 2.0 KB

Fields

FieldType
Typestring
Effectsobject
$Commentstring
RunTimenumber
Nextobject

Source

{
  "Type": "Simple",
  "Effects": {
    "ItemAnimationId": "Chop"
  },
  "$Comment": "Prepare Delay",
  "RunTime": 0.083,
  "Next": {
    "Type": "Parallel",
    "$Comment": "Make sure this parallel interaction is needed and can't be optimized away",
    "Interactions": [
      {
        "Interactions": [
          {
            "Type": "Selector",
            "$Comment": "Length of Combat",
            "RunTime": 0.083,
            "Selector": {
              "Id": "Horizontal",
              "Direction": "ToLeft",
              "TestLineOfSight": true,
              "ExtendTop": 0.5,
              "ExtendBottom": 0.5,
              "StartDistance": 0.1,
              "EndDistance": 2.5,
              "Length": 30,
              "RollOffset": 60,
              "YawStartOffset": -15
            },
            "HitEntity": {
              "Interactions": [
                {
                  "Type": "Replace",
                  "DefaultValue": {
                    "Interactions": [
                      "Hatchet_Chop_Damage"
                    ]
                  },
                  "Var": "Hatchet_Chop_Damage"
                }
              ]
            },
            "Next": {
              "Type": "Simple",
              "$Comment": "Pad the interaction length",
              "RunTime": 0.084
            }
          }
        ]
      },
      {
        "Interactions": [
          {
            "Type": "Simple",
            "$Comment": "Block break delay",
            "RunTime": 0.05,
            "Next": {
              "Type": "UseBlock",
              "Failed": {
                "Type": "BreakBlock",
                "Tool": "Scraper",
                "MatchTool": true
              }
            }
          }
        ]
      },
      {
        "Interactions": [
          {
            "Type": "Replace",
            "DefaultValue": {
              "Interactions": [
                "Hatchet_Chop_Effect"
              ]
            },
            "Var": "Hatchet_Chop_Effect"
          }
        ]
      }
    ]
  }
}