Skip to content
SoulFire LogoSoulFire

Estimate explosion damage

POST
/v1/instances/{instance_id}/bots/{bot_id}/world/explosion-damage:estimate

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string
Formatuuid
bot_id*string
Formatuuid

Request Body

application/json
  1. body
target*

Network IDs are scoped to a connection epoch and must not be cached alone.

center*

A precise world position. Used for entity locations and pathfinding goals where sub-block precision matters.

power*|

Vanilla explosion power. The damage radius is twice this value.

Response Body

Successful response.

application/json
  1. response
distance*|
damageRadius*|
exposure*|

Fraction of sampled target volume visible from the explosion center.

rawDamage*|
damageAfterArmor*|
damageAfterResistance*|
damageAfterEnchantments*|
absorbedDamage*|
estimatedHealthDamage*|
invulnerable*boolean
armorPoints*integer
Formatint64
Range0 <= value <= 4294967295
armorToughness*|
resistanceLevel*integer
Formatint64
Range0 <= value <= 4294967295
explosionProtection*integer
Formatint64
Range0 <= value <= 4294967295
Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/world/explosion-damage:estimate' \
  -H 'Content-Type: application/json' \
  -d '{
  "target": {},
  "center": {
    "x": 0.1,
    "y": 0.1,
    "z": 0.1
  },
  "power": 0.1
}'
Example Response
{
  "distance": 0.1,
  "damageRadius": 0.1,
  "exposure": 0.1,
  "rawDamage": 0.1,
  "damageAfterArmor": 0.1,
  "damageAfterResistance": 0.1,
  "damageAfterEnchantments": 0.1,
  "absorbedDamage": 0.1,
  "estimatedHealthDamage": 0.1,
  "invulnerable": true,
  "armorPoints": 0,
  "armorToughness": 0.1,
  "resistanceLevel": 0,
  "explosionProtection": 0
}

Was this page helpful?