text: const Attachment = api.require('Attachment');
  const Tag = api.require('Tag');
  const Transform = api.require('Transform');
  const ParticleEmitter = api.require('ParticleEmitter');
  const Vector3 = api.require('Vector3');
  
  const attachment = Attachment.fromJSON({
      parent: this.parent,
      socket: "chest",
      immediate: true
  });
  
  api.onStopped(() => api.shutdownGracefully());
  
  
  api.createEntity()
      .add(Tag.fromJSON('Blood Effect'))
      .add(Transform.fromJSON({
          position: new Vector3(10, 1, 10)
      }))
      .add(attachment)
      .add(ParticleEmitter.fromJSON( {
          "position": {
              "x": 12.03384763447396,
              "y": 2.3270851188134687,
              "z": 9.981135039856145
          },
          "scale": {
              "x": 0.9999999120408464,
              "y": 0.9999998887754546,
              "z": 0.9999998557551298
          },
          "rotation": {
              "x": -0.0020428671600426283,
              "y": 0.2659872194591586,
              "z": -0.005924612836773618,
              "w": 0.9639561840187524
          },
          "parameters": [
              {
                  "name": "scale",
                  "itemSize": 1,
                  "defaultTrackValue": {
                      "itemSize": 1,
                      "data": [
                          1
                      ],
                      "positions": [
                          0
                      ]
                  }
              },
              {
                  "name": "color",
                  "itemSize": 4,
                  "defaultTrackValue": {
                      "itemSize": 4,
                      "data": [
                          1,
                          1,
                          1,
                          1
                      ],
                      "positions": [
                          0
                      ]
                  }
              }
          ],
          "preWarm": false,
          "readDepth": true,
          "softDepth": true,
          "blendingMode": 0,
          "layers": [
              {
                  "imageURL": "data/textures/particle/travnik/glowing_sphere2/glowing_sphere_64.png",
                  "particleLife": {
                      "min": 1.8,
                      "max": 2.3
                  },
                  "particleSize": {
                      "min": 0.1,
                      "max": 0.13
                  },
                  "particleRotation": {
                      "min": 0,
                      "max": 0
                  },
                  "particleRotationSpeed": {
                      "min": 0,
                      "max": 0
                  },
                  "emissionShape": 0,
                  "emissionFrom": 1,
                  "emissionRate": 4,
                  "emissionImmediate": 6,
                  "parameterTracks": [
                      {
                          "name": "color",
                          "track": {
                              "itemSize": 4,
                              "data": [
                                  0.5019607843137255,
                                  0.027450980392156862,
                                  0.9725490196078431,
                                  0,
                                  0.011764705882352941,
                                  0.00392156862745098,
                                  0.01568627450980392,
                                  0.86,
                                  0,
                                  0,
                                  0,
                                  0.855,
                                  0.00784313725490196,
                                  0,
                                  0.011764705882352941,
                                  0
                              ],
                              "positions": [
                                  0,
                                  0.3227064093347343,
                                  0.6840148698884758,
                                  1
                              ]
                          }
                      },
                      {
                          "name": "scale",
                          "track": {
                              "itemSize": 1,
                              "data": [
                                  1.0000437197029544,
                                  0.9704982141227776,
                                  0.6468200664181549
                              ],
                              "positions": [
                                  0,
                                  0.7305882352941176,
                                  1
                              ]
                          }
                      }
                  ],
                  "position": {
                      "x": 0,
                      "y": -0.1,
                      "z": 0
                  },
                  "scale": {
                      "x": 0.2,
                      "y": 1.3,
                      "z": 0.2
                  },
                  "particleVelocityDirection": {
                      "direction": {
                          "x": 0,
                          "y": -1,
                          "z": 0
                      },
                      "angle": 3
                  },
                  "particleSpeed": {
                      "min": 0.4,
                      "max": 0.5
                  }
              },
              {
                  "imageURL": "data/textures/particle/UETools/x64/Smoke_14.png",
                  "particleLife": {
                      "min": 5,
                      "max": 7
                  },
                  "particleSize": {
                      "min": 1,
                      "max": 1
                  },
                  "particleRotation": {
                      "min": 0,
                      "max": 3
                  },
                  "particleRotationSpeed": {
                      "min": -1,
                      "max": 1
                  },
                  "emissionShape": 0,
                  "emissionFrom": 1,
                  "emissionRate": 3,
                  "emissionImmediate": 10,
                  "parameterTracks": [
                      {
                          "name": "color",
                          "track": {
                              "itemSize": 4,
                              "data": [
                                  0.3411764705882353,
                                  0.06666666666666667,
                                  0.5019607843137255,
                                  0,
                                  0.07450980392156863,
                                  0.047058823529411764,
                                  0.1411764705882353,
                                  0.36,
                                  0.0784313725490196,
                                  0.043137254901960784,
                                  0.1411764705882353,
                                  0.36,
                                  0.3411764705882353,
                                  0.06666666666666667,
                                  0.5019607843137255,
                                  0
                              ],
                              "positions": [
                                  0,
                                  0.16568047337278108,
                                  0.7429906542056074,
                                  1
                              ]
                          }
                      }
                  ],
                  "position": {
                      "x": 0,
                      "y": 0,
                      "z": 0
                  },
                  "scale": {
                      "x": 0.5,
                      "y": 1.3,
                      "z": 0.5
                  },
                  "particleVelocityDirection": {
                      "direction": {
                          "x": 0,
                          "y": -1,
                          "z": 0
                      },
                      "angle": 1.5
                  },
                  "particleSpeed": {
                      "min": 0.1,
                      "max": 0.1
                  }
              },
              {
                  "imageURL": "data/textures/particle/UETools/x64/Smoke_14.png",
                  "particleLife": {
                      "min": 1.73,
                      "max": 2.3
                  },
                  "particleSize": {
                      "min": 0.5,
                      "max": 0.6
                  },
                  "particleRotation": {
                      "min": 0,
                      "max": 0
                  },
                  "particleRotationSpeed": {
                      "min": 0,
                      "max": 0
                  },
                  "emissionShape": 0,
                  "emissionFrom": 1,
                  "emissionRate": 10,
                  "emissionImmediate": 10,
                  "parameterTracks": [
                      {
                          "name": "color",
                          "track": {
                              "itemSize": 4,
                              "data": [
                                  0.13725490196078433,
                                  0.01568627450980392,
                                  0.3843137254901961,
                                  0.055,
                                  0.1450980392156863,
                                  0.047058823529411764,
                                  0.13725490196078433,
                                  0.545,
                                  0.14901960784313725,
                                  0.047058823529411764,
                                  0.13333333333333333,
                                  0.545,
                                  0.11764705882352941,
                                  0.01568627450980392,
                                  0.3215686274509804,
                                  0.025
                              ],
                              "positions": [
                                  0,
                                  0.3037383177570093,
                                  0.7897196261682242,
                                  1
                              ]
                          }
                      },
                      {
                          "name": "scale",
                          "track": {
                              "itemSize": 1,
                              "data": [
                                  -0.0015607125333274574,
                                  0.7447095478567836,
                                  1.0446732717763947,
                                  0.966668970222752,
                                  0.6018696793236353,
                                  -0.026625742222216364
                              ],
                              "positions": [
                                  0,
                                  0.1764705882352941,
                                  0.44705882352941173,
                                  0.7529411764705882,
                                  0.9117647058823529,
                                  1
                              ]
                          }
                      }
                  ],
                  "position": {
                      "x": 0,
                      "y": -0.1,
                      "z": 0
                  },
                  "scale": {
                      "x": 0.7,
                      "y": 1.3,
                      "z": 0.7
                  },
                  "particleVelocityDirection": {
                      "direction": {
                          "x": 0,
                          "y": 1,
                          "z": 0
                      },
                      "angle": 0
                  },
                  "particleSpeed": {
                      "min": 0,
                      "max": 0
                  }
              }
          ]
      }));
  