Started adding "biome finder" achievements
This commit is contained in:
parent
3861cc6cb4
commit
f406bf7f46
2 changed files with 21 additions and 10 deletions
|
@ -30,10 +30,12 @@ import net.minecraftforge.event.entity.EntityJoinWorldEvent;
|
|||
import net.minecraftforge.event.entity.living.LivingHurtEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingSpawnEvent.CheckSpawn;
|
||||
import net.minecraftforge.event.entity.player.EntityInteractEvent;
|
||||
import biomesoplenty.api.Biomes;
|
||||
import biomesoplenty.api.Blocks;
|
||||
import biomesoplenty.api.Items;
|
||||
import biomesoplenty.configuration.BOPConfiguration;
|
||||
import biomesoplenty.entities.ai.EntityAITemptArmour;
|
||||
import biomesoplenty.helpers.AchievementHelper;
|
||||
import biomesoplenty.helpers.TeleporterPromised;
|
||||
|
||||
public class EntityEventHandler
|
||||
|
@ -116,6 +118,15 @@ public class EntityEventHandler
|
|||
int z = MathHelper.floor_double(player.posZ);
|
||||
|
||||
int biomeID = world.getBiomeGenForCoords(x, z).biomeID;
|
||||
|
||||
if (biomeID == Biomes.deadlands.get().biomeID)
|
||||
{
|
||||
player.addStat(AchievementHelper.achAsh, 1);
|
||||
}
|
||||
if (biomeID == Biomes.tropics.get().biomeID)
|
||||
{
|
||||
player.addStat(AchievementHelper.achMoss, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,16 +16,16 @@ import cpw.mods.fml.common.registry.LanguageRegistry;
|
|||
public class AchievementHelper
|
||||
{
|
||||
// Achievement declaration
|
||||
private static Achievement achFlower;
|
||||
private static Achievement achRedRock;
|
||||
private static Achievement achThorn;
|
||||
private static Achievement achAsh;
|
||||
private static Achievement achOrigin;
|
||||
private static Achievement achPromised;
|
||||
private static Achievement achMud;
|
||||
private static Achievement achShroom;
|
||||
private static Achievement achBarley;
|
||||
private static Achievement achMoss;
|
||||
public static Achievement achFlower;
|
||||
public static Achievement achRedRock;
|
||||
public static Achievement achThorn;
|
||||
public static Achievement achAsh;
|
||||
public static Achievement achOrigin;
|
||||
public static Achievement achPromised;
|
||||
public static Achievement achMud;
|
||||
public static Achievement achShroom;
|
||||
public static Achievement achBarley;
|
||||
public static Achievement achMoss;
|
||||
public static Achievement achFlowerP;
|
||||
|
||||
public static AchievementPage pageBOP;
|
||||
|
|
Loading…
Reference in a new issue