{"id":16145832,"url":"https://github.com/elenterius/combat-commons","last_synced_at":"2025-04-06T20:25:57.837Z","repository":{"id":82564571,"uuid":"438641714","full_name":"Elenterius/Combat-Commons","owner":"Elenterius","description":"Combat Commons is a library mod for Forge Minecraft that provides modifiable attack reach and other utilities related to combat. ","archived":false,"fork":false,"pushed_at":"2021-12-21T22:29:07.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"1.18.x","last_synced_at":"2025-02-13T02:29:51.531Z","etag":null,"topics":["minecraft","mod"],"latest_commit_sha":null,"homepage":"","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/Elenterius.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-15T13:34:34.000Z","updated_at":"2021-12-21T22:29:10.000Z","dependencies_parsed_at":"2023-03-06T10:45:37.025Z","dependency_job_id":null,"html_url":"https://github.com/Elenterius/Combat-Commons","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elenterius%2FCombat-Commons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elenterius%2FCombat-Commons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elenterius%2FCombat-Commons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elenterius%2FCombat-Commons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elenterius","download_url":"https://codeload.github.com/Elenterius/Combat-Commons/tar.gz/refs/heads/1.18.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247545314,"owners_count":20956146,"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":["minecraft","mod"],"created_at":"2024-10-10T00:17:51.192Z","updated_at":"2025-04-06T20:25:57.816Z","avatar_url":"https://github.com/Elenterius.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Combat-Commons\n[![](https://jitpack.io/v/Elenterius/Combat-Commons.svg)](https://jitpack.io/#Elenterius/Combat-Commons)\n[![](https://cf.way2muchnoise.eu/versions/For%20Minecraft_557441_all.svg)](https://www.curseforge.com/minecraft/mc-mods/combat-commons)\n\nCombat Commons is a library mod for Forge Minecraft that provides modifiable attack reach and other utilities related combat for other mod developers.\n\n### Maven\n\n```groovy\nrepositories {\n    maven { url \"https://jitpack.io\" }\n}\n\ndependencies {\n    implementation 'com.github.Elenterius:Combat-Commons:Tag'\n}\n```\n\n## Why\n\nAt the moment many mods provide their own solution to exteding the players attack reach, in most cases this causes incompatibilities due to conflicting mixins.\n\n## Current Features\n\n- Attack Reach Attribute\n- Enchantments that apply Attribute Modifiers\n- Enchantments that have an `Entity` sensitive #getExtraDamage method\n\n## Implementation Details\n### Separate Attack Reach Attribute\n\n- independent of `block_reach` (as proposed in the abandoned forge pull request #7808)\n- Pehkui 3 compatibility (2 should also work)\n- properly handles decreased attack reach\n- allow items to determine which Block \u0026 Fluid Mode is used for the pick block and attack RayTrace\n \n##### Creative Attack Reach Changes\n`creative_attack_reach = (attack_reach + 3)`  (default attack reach = 3, creative mode now gives a flat increase)\n\n##### Block Reach Changes\nFixed the forge \"bug\" where players with `zero block reach` are still able to hit the block that is present at their eye position (e.g. when inside tall grass/plants).\n\n##### Server Side Distance Check Changes\nInstead of  calculating the distance between the player and targeted Entity using their positions, we use the distance between the player position and the bounding box of the targeted Entity. This means players with reduced attack reach will still be able to attack Entities with large bounding boxes. (e.g. slime with a size of 10)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenterius%2Fcombat-commons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felenterius%2Fcombat-commons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenterius%2Fcombat-commons/lists"}