Add Attribute Swap module
Type of change
- [x] New feature
Description
Added Attribute Swap module under combat category
Related issues
Solves #5031 (and duplicates of it #5076 #5531 #5663 #5689 #5720 #5804 )
How Has This Been Tested?
First zombie killed without attribute swapping and second zombie killed with swapping attributes (aka breach swapping) https://www.youtube.com/watch?v=2WFyUL7tvAI
Checklist:
- [x] My code follows the style guidelines of this project.
- [x] I have added comments to my code in more complex areas.
- [x] I have tested the code in both development and production environments.
I will update module on 1.22 with automatic mode & other item supports
added a smart mode for attribute swapping which checks if target is burning, has armor etc.
https://youtu.be/vyYVFNm8F9Y
forgot to consider sharpness for regular mobs and players & smite for undeads.
Also can't figure out how to attribute swap with spears so i didn't write anything specific to spears for now. If anyone is able to help for it or explain it, i would really like it ^^
@noramibu https://pastebin.com/pU3HWHs9