diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-06-02 11:45:32 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-06-02 11:45:32 +0200 |
commit | fa78379f5a8a1eede69f36b225d684723b0bf3ae (patch) | |
tree | f2f49f9449f6020582557b4fd75a3b9fdaf7c144 /MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua | |
parent | Merge pull request #844 from mc-server/ProjectileHitBlock (diff) | |
download | cuberite-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.lua | 5 |
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 |