Hytale Asset ReferenceUnofficial
Versions / 0.5.3 / NPC / Roles / _Core / Tests / Test_Place_Blocks.json

Test_Place_Blocks

Server/NPC/Roles/_Core/Tests/Test_Place_Blocks.json, 4.8 KB

Fields

FieldType
Typestring
$Commentstring
Appearancestring
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "$Comment": "DoubleTestCheck",
  "Appearance": "Dragon_Fire",
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 2,
      "RunThreshold": 0.7,
      "RunThresholdRange": 0.1,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10,
      "MaxClimbHeight": 1,
      "DescendFlatness": 0.7,
      "DescendSpeedCompensation": 0.5
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Any",
            "Once": true
          },
          "Actions": [
            {
              "Type": "SetBlockToPlace",
              "Block": "Rock_Marble_Cobble"
            }
          ]
        },
        {
          "Sensor": {
            "Type": "CanPlaceBlock",
            "Direction": "Backward",
            "Offset": "BodyPosition"
          },
          "Actions": [
            {
              "Type": "PlaceBlock"
            }
          ]
        },
        {
          "Sensor": {
            "Type": "CanPlaceBlock",
            "Direction": "Left",
            "Offset": "BodyPosition"
          },
          "Actions": [
            {
              "Type": "Sequence",
              "Blocking": true,
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 1, 1 ]
                },
                {
                  "Type": "PlaceBlock"
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "CanPlaceBlock",
            "Direction": "Forward",
            "Offset": "BodyPosition"
          },
          "Actions": [
            {
              "Type": "Sequence",
              "Blocking": true,
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 1, 1 ]
                },
                {
                  "Type": "PlaceBlock"
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "CanPlaceBlock",
            "Direction": "Right",
            "Offset": "BodyPosition"
          },
          "Actions": [
            {
              "Type": "Sequence",
              "Blocking": true,
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 1, 1 ]
                },
                {
                  "Type": "PlaceBlock"
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "CanPlaceBlock",
            "Direction": "Backward",
            "Offset": "HeadPosition"
          },
          "Actions": [
            {
              "Type": "Sequence",
              "Blocking": true,
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 1, 1 ]
                },
                {
                  "Type": "PlaceBlock"
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "CanPlaceBlock",
            "Direction": "Left",
            "Offset": "HeadPosition"
          },
          "Actions": [
            {
              "Type": "Sequence",
              "Blocking": true,
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 1, 1 ]
                },
                {
                  "Type": "PlaceBlock"
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "CanPlaceBlock",
            "Direction": "Forward",
            "Offset": "HeadPosition"
          },
          "Actions": [
            {
              "Type": "Sequence",
              "Blocking": true,
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 1, 1 ]
                },
                {
                  "Type": "PlaceBlock"
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "CanPlaceBlock",
            "Direction": "Right",
            "Offset": "HeadPosition"
          },
          "Actions": [
            {
              "Type": "Sequence",
              "Blocking": true,
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 1, 1 ]
                },
                {
                  "Type": "PlaceBlock"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Place_Blocks.name"
}