Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.9.1 / Item / Interactions / Block / Coffin / Block_Coffin_Open.json

Block_Coffin_Open

Server/Item/Interactions/Block/Coffin/Block_Coffin_Open.json, 608 B

Fields

FieldType
Typestring
Matchersarray[1]
Nextobject

Source

{
  "Type": "BlockCondition",
  "Matchers": [
    {
      "Block": {
        "State": "default"
      }
    }
  ],
  "Next": {
    "Type": "Serial",
    "Interactions": [
      {
        "Type": "ChangeState",
        "Changes": {
          "default": "Open"
        }
      },
      {
        "Type": "SpawnNPC",
        "EntityId": "Skeleton",
        "SpawnChance": 0.5,
        "SpawnOffset": {
          "X": 0,
          "Y": 0.5,
          "Z": 0
        },
        "SpawnYawOffset": 180,
        "Effects": {
          "WorldSoundEventId": "SFX_Stone_Coffin_Open_Close"
        }
      }
    ]
  }
}