add 'on_breaking', 'on_block_breaking' events

This commit is contained in:
MihailRis
2024-12-21 14:09:17 +03:00
parent c3f22c6854
commit 4363883728
5 changed files with 60 additions and 82 deletions
+3
View File
@@ -77,6 +77,9 @@ namespace scripting {
void on_block_replaced(
Player* player, const Block& block, const glm::ivec3& pos
);
void on_block_breaking(
Player* player, const Block& block, const glm::ivec3& pos
);
void on_block_broken(
Player* player, const Block& block, const glm::ivec3& pos
);