Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.9.1 / EncounterManager / Example_Block_Sensor.json

Example_Block_Sensor

Server/EncounterManager/Example_Block_Sensor.json, 1.0 KB

Fields

FieldType
Classstring
Typestring
Debugstring
StartStatestring
Instructionsarray[1]

Source

{
  "Class": "EncounterManager",
  "Type": "Generic",
  "Debug": "DisplayState",
  "StartState": "Searching",
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": { "Type": "State", "State": "Searching" },
          "Instructions": [
            {
              "Sensor": { "Type": "Block", "Range": 20, "MaxHeight": 8, "Blocks": "Gaia" },
              "Actions": [
                { "Type": "Log", "Message": "[Blackboard] Encounter detected a block nearby" },
                { "Type": "SpawnParticles", "Offset": [ 0, 1.5, 0 ], "ParticleSystem": "Alerted" },
                { "Type": "State", "State": "Found" }
              ]
            }
          ]
        },
        {
          "Sensor": { "Type": "State", "State": "Found" },
          "Instructions": [
            {
              "ActionsBlocking": true,
              "Actions": [
                { "Type": "Timeout", "Delay": [ 3, 3 ] },
                { "Type": "State", "State": "Searching" }
              ]
            }
          ]
        }
      ]
    }
  ]
}