Event Detection
🟠 Updated over a year agoPreview

🔍 Analysis
- 🏆 #1586 of 2169 datapack mods in this game by downloads
📋 About This Mod
# What is it? Events is a library datapack used to detect events performed by players and run functions from them. # How to use? 1 Install the datapack into the world folder you want to use this library datapack in. (NOTE FOR DEVELOPERS: While you can do this (refer to the lisence) I do ask that you don't include the library in your datapack files, but a link to it in the description would be ok if you do include the files. Modrinth has a dependancy system and I ask that you use that instead. Thankyou!) 2 In your datapack add a namespace named `events` 3 In the events namespace add this folder structure `tags/function` 4 In the newly created function folder add `<EVENT>.json` (Replace the <EVENT> with and event described in the list below) 5 In this file copy and paste or type the following ``` { "replace":false, "values": } ``` 6 In the `values` field in that file put the names of the functions you want to run in double quotes, each one separated by a comma (it should be the same way as writing it in a /function commad). EXAMPLE: ``` { "replace":false, "values": } ``` # List of events currently implemented ***! IMPORTANT ! all functions are run as the player but not at them.*** > - `on_player_join` > Runs whenever a player joins > - `on_player_first join` > Runs the first time a player joins > - `on_player_death` > Runs whenever a player dies > - `on_player_kill` > Runs whenever a player kills another player > - `on_mob_kill` > Runs whenever a player kills a mob > - `on_animals_bred` > Runs whenever a player breeds animals > - `on_player_take_damage` > Runs whenever a player takes damage > - `on_player_block_damage` > Runs whenever a player blocks damage with a shield > - `on_player_deal_damage` > Runs whenever a player deals damage
# What is it? Events is a library datapack used to detect events performed by players and run functions from them.
# How to use?
1 Install the datapack into the world folder you want to use this library datapack in.
(NOTE FOR DEVELOPERS: While you can do this (refer to the lisence) I do ask that you don't include the library in your datapack files, but a link to it in the description would be ok if you do include the files. Modrinth has a dependancy system and I ask that you use that instead. Thankyou!)
2 In your datapack add a namespace named `events`
3 In the events namespace add this folder structure `tags/function`
4 In the newly created function folder add `
] } ``` 6 In the `values` field in that file put the names of the functions you want to run in double quotes, each one separated by a comma (it should be the same way as writing it in a /function commad). EXAMPLE: ``` { "replace":false, "values":[ "example:foo", "example:bar" ] } ``` # List of events currently implemented ! IMPORTANT ! all functions are run as the player but not at them. > - `on_player_join` > Runs whenever a player joins > - `on_player_first join` > Runs the first time a player joins > - `on_player_death` > Runs whenever a player dies > - `on_player_kill` > Runs whenever a player kills another player > - `on_mob_kill` > Runs whenever a player kills a mob > - `on_animals_bred` > Runs whenever a player breeds animals > - `on_player_take_damage` > Runs whenever a player takes damage > - `on_player_block_damage` > Runs whenever a player blocks damage with a shield > - `on_player_deal_damage` > Runs whenever a player deals damage
📊 Mod Details
- Game
- Minecraft Data Packs
- Author
- SmoothTurtle872
- Version
- 1.0.0
- Downloads
- 88
- Endorsements
- 2
- Category
- datapack
- Created
- 5/7/2025
- Updated
- 5/5/2025
- Game Versions
- 1.21.5
- Tags
- library, management
🔧 How to Install Minecraft Data Packs Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Data Packs →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Data Packs commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Data Packs versions does Event Detection support?
The author lists 1.21.5. Other versions may work but are untested by the author.
What is the latest version of Event Detection?
Version 1.0.0, published 2025-05-05 with 88 downloads recorded at the source.
Keep browsing — more Minecraft Data Packs mods await