summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-06-02 11:45:32 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-06-02 11:45:32 +0200
commitfa78379f5a8a1eede69f36b225d684723b0bf3ae (patch)
treef2f49f9449f6020582557b4fd75a3b9fdaf7c144 /MCServer/Plugins/APIDump
parentMerge pull request #844 from mc-server/ProjectileHitBlock (diff)
downloadcuberite-fa78379f5a8a1eede69f36b225d684723b0bf3ae.tar
cuberite-fa78379f5a8a1eede69f36b225d684723b0bf3ae.tar.gz
cuberite-fa78379f5a8a1eede69f36b225d684723b0bf3ae.tar.bz2
cuberite-fa78379f5a8a1eede69f36b225d684723b0bf3ae.tar.lz
cuberite-fa78379f5a8a1eede69f36b225d684723b0bf3ae.tar.xz
cuberite-fa78379f5a8a1eede69f36b225d684723b0bf3ae.tar.zst
cuberite-fa78379f5a8a1eede69f36b225d684723b0bf3ae.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua b/MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua
index 1588d420c..67d670d0a 100644
--- a/MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua
+++ b/MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua
@@ -10,6 +10,11 @@ return
Params =
{
{ Name = "ProjectileEntity", Type = "{{cProjectileEntity}}", Notes = "The projectile that hit an entity." },
+ { Name = "BlockX", Type = "number", Notes = "The X-coord where the projectile hit." },
+ { Name = "BlockY", Type = "number", Notes = "The Y-coord where the projectile hit." },
+ { Name = "BlockZ", Type = "number", Notes = "The Z-coord where the projectile hit." },
+ { Name = "BlockFace", Type = "number", Notes = "The side of the block where the projectile hit." },
+ { Name = "BlockHitPos", Type = "Vector3d", Notes = "The exact position where the projectile hit."
},
Returns = [[
If the function returns false or no value, the next plugin's callback is called. If the function