[1.20.1] Right-Clicking an Iron Golem with nothing gives Charisma XP
FoxMcloud5655 opened this issue ยท 5 comments
Describe the bug
When right-clicking an Iron Golem with nothing in your main hand, it still gives Charisma XP as if you repaired it.
Expected behavior
No XP should be awarded for this event.
To Reproduce
Steps to reproduce the behavior:
- Walk up to an Iron Golem
- Ensure you have nothing in your hands.
- Right-click the Iron Golem.
- Observe as you get +72 Charisma XP out of thin air.
Versions:
- Minecraft: 1.20.1
- Forge Version: 47.1.3
- PMMO: 1.20.1-1.2.8
I see... If this is intended behavior, I'll probably want to remove Charisma altogether as this is very exploitable to make villager prices very cheap early on.
I'm 100% sure there's a way to get the event and only award XP when certain criteria are met, but doing that in a config file isn't easy or practical, so I understand.
Maybe I'll find or make an addon that does what I need it to do.
An addon would be the only way to apply context as a prerequisite to an event award. Pmmo has a feature specifically for add-ons to do this in it's API Event Triggers
Noted, and a quick glance through existing add-ons doesn't do what I need them to do.
Thanks for the direction; I'll probably make my own personal add-on for the modpack.
Sounds good. If you need any help with the API or find any limitations, let me know. I can always expand the API.