Event Detection 图标

Event Detection

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/event-detection
资源信息

Minecraft 版本: 1.21.5

平台: datapack

标签: library management

资源介绍

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 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":[
    "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
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Farmer's Delight

价格:0 墨喵币
下载量:0

查看详情
ChatFlex

价格:0 墨喵币
下载量:0

查看详情
More Buckets - Vanilla Bucket Progression

价格:0 墨喵币
下载量:0

查看详情
RealisCraft JE: Realistic Default Textures

价格:0 墨喵币
下载量:0

查看详情