Hytale Asset ReferenceUnofficial
Versions / 0.5.7 / NPC / Roles / _Core / Tests / Motion / Test_Random_Hotbar.json

Test_Random_Hotbar

Server/NPC/Roles/_Core/Tests/Motion/Test_Random_Hotbar.json, 1.1 KB

Fields

FieldType
Typestring
Appearancestring
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
HotbarSizenumber
HotbarItemsobject
Instructionsarray[1]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Appearance": "Sheep",
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 3,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    },
    "Weapons": {
      "Value": [ "Droplist:Test_Random_Hotbar" ]
    }
  },
  "HotbarSize": 4,
  "HotbarItems": { "Compute": "Weapons" },
  "Instructions": [
    {
      "Continue": true,
      "Instructions": [
        {
          "Sensor": {
            "Type": "Mob",
            "Range": 30,
            "GetPlayers": true,
            "GetNPCs": false,
            "Filters": [
              {
                "Type": "LineOfSight"
              }
            ]
          },
          "HeadMotion": {
            "Type": "Watch"
          },
          "Actions": [
            {
              "Type": "Log",
              "Message": "Visible"
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Random_Hotbar.name"
}