diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index e49c09ec8..0ef93b400 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -2401,6 +2401,49 @@ end; ]], }, -- HOOK_EXECUTE_COMMAND + HOOK_EXPLODED = + { + CalledWhen = "An explosion has happened", + DefaultFnName = "OnExploded", -- also used as pagename + Desc = [[ + This hook is called after an explosion has been processed in a world.
++ See also {{OnHookExploding|HOOK_EXPLODING}} for a similar hook called before the explosion.
++ The explosion carries with it the type of its source - whether it's a creeper exploding, or TNT, + etc. It also carries the identification of the actual source. The exact type of the identification + depends on the source kind: +
Source | SourceData Type | Notes |
---|---|---|
esPrimedTNT | {{cTNTEntity}} | An exploding primed TNT entity |
esCreeper | {{cCreeper}} | An exploding creeper or charged creeper |
esBed | {{Vector3i}} | A bed exploding in the Nether or in the End. The bed coords are given. |
esEnderCrystal | {{Vector3i}} | An ender crystal exploding upon hit. The block coords are given. |
esGhastFireball | {{cGhastFireballEntity}} | A ghast fireball hitting ground or an {{cEntity|entity}}. |
esWitherSkullBlack | TBD | A black wither skull hitting ground or an {{cEntity|entity}}. |
esWitherSkullBlue | TBD | A blue wither skull hitting ground or an {{cEntity|entity}}. |
esWitherBirth | TBD | A wither boss being created |
esOther | TBD | Any other previously unspecified type. |
esPlugin | object | An explosion created by a plugin. The plugin may specify any kind of data. |