A way to make piglins neutral towards player wearing the accessory
Aizistral opened this issue ยท 0 comments
Please describe the new feature or change.
Basically the same thing in ICurio
as makesPiglinsNeutral
method allows to pull off in IForgeItem
.
Please describe why you want this feature.
I saw many people have wanted to make/use accesories that would've rendered piglins neutral, similar to how wearing gold armor does, but while making armor with such trait is as simple as overriding the abovementioned method for item in question, there doesn't seem to be any explicit hooks to do this for anything else, and I spent a significant amount of time looking. For reasons beyound by guessing, piglins don't even have LivingSetAttackTargetEvent
fired for them at the moment.
For anyone interested, this should be possible with the use of Mixin and I wanted to make pull request on the matter myself, but as @TheIllusiveC4 stated on Discord:
I'm not against the idea itself; however, the problem with using mixins in Forge is that mods that use Curios as a library have to explicitly disable the refmap in their program arguments, which adds an additional layer of complexity to dependent project setup.
It was therefore decided to put this feature on hold until either this inconvenience is rectified on the side of Forge, or there are reasons more significant to use Mixin in Curios.