-
Villager and Trading Modifications
-
Added a trade rejection feature which will reject trades from villagers and wandering traders if reputation is too low
-
Mob Spawning Adjustments
-
Modified low reputation mob spawn handler:
- Now consistently spawns mobs around players with low reputation
- Restricted additional spawning to nighttime only
- Implemented a periodic check for spawning instead of modifying vanilla spawn events
-
Crop Yield System
-
Introduced a new system affecting crop yields for players with low reputation:
- Chance for crops to yield less when harvested
- Possibility of complete crop failure (no drops) based on reputation level
-
Code Optimizations
-
Streamlined event handlers for better performance and clarity
-
Fixed villager trade prices not updating immediately when reputation changes
-
Consolidated reputation data management, removing redundant code
-
Removed unnecessary logging statements throughout the mod
-
Improved code efficiency and maintainability
-
Ensured proper synchronization of reputation between server and client