{"id":18756918,"url":"https://github.com/offsetmods538/when-entities-die","last_synced_at":"2025-11-30T12:30:15.604Z","repository":{"id":64460304,"uuid":"503835076","full_name":"OffsetMods538/When-Entities-Die","owner":"OffsetMods538","description":"Adds an advancement criterion for killing a mob using an item. ","archived":false,"fork":false,"pushed_at":"2023-07-17T21:08:48.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T02:33:45.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OffsetMods538.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-06-15T16:04:39.000Z","updated_at":"2023-07-19T08:59:26.000Z","dependencies_parsed_at":"2023-07-22T02:53:17.739Z","dependency_job_id":"f2cdfaf9-0dc2-4843-a400-f0f8f062daff","html_url":"https://github.com/OffsetMods538/When-Entities-Die","commit_stats":null,"previous_names":["offsetmods538/when-entities-die"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffsetMods538%2FWhen-Entities-Die","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffsetMods538%2FWhen-Entities-Die/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffsetMods538%2FWhen-Entities-Die/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OffsetMods538%2FWhen-Entities-Die/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OffsetMods538","download_url":"https://codeload.github.com/OffsetMods538/When-Entities-Die/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239644242,"owners_count":19673608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T17:38:42.012Z","updated_at":"2025-11-30T12:30:15.566Z","avatar_url":"https://github.com/OffsetMods538.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://jitpack.io/v/top.offsetmonkey538/When-Entities-Die.svg)](https://jitpack.io/#top.offsetmonkey538/When-Entities-Die)\n# Description\n## Installation\nJust download the latest version from the [versions page](https://modrinth.com/mod/when-entities-die/versions) and put it in the `mods` folder. Fabric API is not needed to use this mod. **The mod only needs to be installed on the server**\n## Usage\n### Datapacks\nInside a datapack, you make a normal advancement and use the `when-entities-die:killed_using_item` trigger.\n\nExample advancement that triggers when a player kills a skeleton using a diamond sword:\n```json\n{\n  \"display\": {\n    \"icon\": {\n      \"item\": \"minecraft:apple\"\n    },\n    \"title\": {\n      \"text\": \"Test advancement\"\n    },\n    \"description\": {\n      \"text\": \"Test advancement description\"\n    },\n    \"frame\": \"task\",\n    \"show_toast\": true,\n    \"announce_to_chat\": true,\n    \"hidden\": false\n  },\n  \"criteria\": {\n    \"requirement\": {\n      \"trigger\": \"when-entities-die:killed_using_item\",\n      \"conditions\": {\n        \"item\": {\n            \"items\": [\n              \"minecraft:diamond_sword\"\n            ]\n        },\n        \"entity\": {\n          \"type\": \"minecraft:skeleton\"\n        }\n      }\n    }\n  }\n}\n```\n### Mods\nInside a mod, you do exactly the same thing as in a datapack.\n\nYou can also include this mod in your mod.\n#### Example repositories block in build.gradle\n```groovy\nrepositories {\n    maven {\n        name = \"JitPack\"\n        url = \"https://jitpack.io/\"\n        content {\n            includeGroup \"top.offsetmonkey538\"\n        }\n    }\n}\n```\n#### Example dependencies block in build.gradle\n```groovy\ndependencies {\n    modImplementation include(\"top.offsetmonkey538:when-entities-die:v1.0+1.19\")\n}\n```\n*Note: this example will get updated to use the latest version. You can look at all the versions on [jitpack](https://jitpack.io/#top.offsetmonkey538/When-Entities-Die).*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffsetmods538%2Fwhen-entities-die","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foffsetmods538%2Fwhen-entities-die","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffsetmods538%2Fwhen-entities-die/lists"}