From d4a3c451c43454176af39aad5cede5281615a6ad Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 9 Aug 2013 14:58:43 +0200 Subject: Added OnExploding() and OnExploded() hooks. As requested in FS 413, with extra parameters: World, BlockX, BlockY, BlockZ, Size, CanCauseFire, Source, SourceData OnExploding() can return 3 values: StopHook, CanCauseFire, ExplosionSize --- source/BlockID.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source/BlockID.h') diff --git a/source/BlockID.h b/source/BlockID.h index ad8dab8bd..6f75e4859 100644 --- a/source/BlockID.h +++ b/source/BlockID.h @@ -658,6 +658,24 @@ enum eDamageType dtPlugin = dtAdmin, } ; + + + + +enum eExplosionSource +{ + esOther, + esPrimedTNT, + esCreeper, + esBed, + esEnderCrystal, + esGhastFireball, + esWitherSkullBlack, + esWitherSkullBlue, + esWitherBirth, + esPlugin +} ; + // tolua_end -- cgit v1.2.3