Estimate explosion damage
POST
header
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringFormat
uuidbot_id*stringFormat
uuidapplication/json- 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.
Successful response.
application/json- response
distance*|damageRadius*|exposure*|Fraction of sampled target volume visible from the explosion center.
rawDamage*|damageAfterArmor*|damageAfterResistance*|damageAfterEnchantments*|absorbedDamage*|estimatedHealthDamage*|invulnerable*booleanarmorPoints*integerFormat
int64Range
0 <= value <= 4294967295armorToughness*|resistanceLevel*integerFormat
int64Range
0 <= value <= 4294967295explosionProtection*integerFormat
int64Range
0 <= value <= 4294967295curl -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?
