diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-29 16:08:39 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-29 16:08:39 +0100 |
commit | 379d403443e5ecf3e66cf151391f5a8c4bd4d5c6 (patch) | |
tree | 6ab21fdefd166b191b1b831307aeca37419de7fd /MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua | |
parent | Added HOOK_PROJECTILE_HIT_BLOCK. (diff) | |
download | cuberite-379d403443e5ecf3e66cf151391f5a8c4bd4d5c6.tar cuberite-379d403443e5ecf3e66cf151391f5a8c4bd4d5c6.tar.gz cuberite-379d403443e5ecf3e66cf151391f5a8c4bd4d5c6.tar.bz2 cuberite-379d403443e5ecf3e66cf151391f5a8c4bd4d5c6.tar.lz cuberite-379d403443e5ecf3e66cf151391f5a8c4bd4d5c6.tar.xz cuberite-379d403443e5ecf3e66cf151391f5a8c4bd4d5c6.tar.zst cuberite-379d403443e5ecf3e66cf151391f5a8c4bd4d5c6.zip |
Diffstat (limited to 'MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua')
-rw-r--r-- | MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua b/MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua new file mode 100644 index 000000000..1588d420c --- /dev/null +++ b/MCServer/Plugins/APIDump/Hooks/OnProjectileHitBlock.lua @@ -0,0 +1,24 @@ +return +{ + HOOK_PROJECTILE_HIT_BLOCK = + { + CalledWhen = "A projectile hits a solid block.", + DefaultFnName = "OnProjectileHitBlock", -- also used as pagename + Desc = [[ + This hook is called when a {{cProjectileEntity|projectile}} hits a solid block.. + ]], + Params = + { + { Name = "ProjectileEntity", Type = "{{cProjectileEntity}}", Notes = "The projectile that hit an entity." }, + }, + Returns = [[ + If the function returns false or no value, the next plugin's callback is called. If the function + returns true, no other callback is called for this event and the projectile flies through block.. + ]], + }, -- HOOK_PROJECTILE_HIT_BLOCK +} + + + + + |