Implement translations, datagen, added moonseyetome and other changes
This commit is contained in:
@@ -35,6 +35,10 @@ public class ActivityEvents {
|
||||
if (event.getSource().getEntity() instanceof Player player && !player.level().isClientSide) {
|
||||
player.getCapability(PlayerStatsProvider.PLAYER_STATS).ifPresent(stats -> {
|
||||
stats.addAscendXP((int) (AscendConfig.COMMON.xpPerMobKill.get() * AscendConfig.COMMON.xpMultiplier.get()));
|
||||
LivingEntity mob = event.getEntity();
|
||||
if (mob.getMaxHealth() > 100f || mob.getType().toString().toLowerCase().contains("boss")) {
|
||||
stats.addKnowledge(2);
|
||||
}
|
||||
PlayerStatsProvider.sync(player);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user