Hello, iv'e been working on a mod and im making achievements.. I craft the item then it does not say ACHIEVEMENT GET! --- here is some screen shots of what is happening
then its not poping up with achievement get
here is the code i used------ mod_imnottellingu
public static final Achievement FirstOfPotion = new Achievement(5000, "First Of Potion!", 0, 0, TestItem, null).setSpecial().registerAchievement();
public static final Achievement Testin = new Achievement(5001, "Testin And now", 3, 0, Item.axeDiamond, FirstOfPotion).registerAchievement();
public static AchievementPage page1 = new AchievementPage("MagisticCraft Achieve.", FirstOfPotion, Testin);
public class CraftingHandler implements ICraftingHandler
{
@Override
public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix)
{
if (item.itemID == TestItem.shiftedIndex)
{
player.addStat(FirstOfPotion, 1);
}
}
@Override
public void onSmelting(EntityPlayer player, ItemStack item)
{
}
}
then the ------ commonproxy
package gmod622.NOPE.common.core;
import gmod622.NOPE.common.mod_NOPE;
import gmod622.NOPE.common.entity.EntityNova6;
import net.minecraft.src.Block;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraft.src.ModLoader;
import net.minecraft.src.TileEntity;
import net.minecraft.src.World;
import net.minecraftforge.common.AchievementPage;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.network.IGuiHandler;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
public class CommonProxy implements IGuiHandler{ //THIS IS IMPORTANT, CANNOT BE A PROXY/GUI HANDLER WITHOUT THIS!!
public void registerRenderInformation() //Client side texture registering
{
}
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { //For GUI's
return null;
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { //For GUI's
return null;
}
public void CustomBukketsRegistry() {
}
public void addRenderEntity() {
ModLoader.registerEntityID( EntityNova6.class, "Nova6", 832);
}
public void RegisterAchievements() {
AchievementPage.registerAchievementPage(mod_MagisticCraft.page1);
ModLoader.addAchievementDesc(mod_MagisticCraft.FirstOfPotion, "First Ever Potion!", "Craft the frist potion from Magistic Craft!");
}
public void registerTiles(){ //For registering TileEntities
}
public void registerBlocks(){ //For registering Blocks
GameRegistry.registerBlock(mod_MagisticCraft.RedItem);
GameRegistry.registerBlock(mod_MagisticCraft.MagicLadder);
}
public void addNames(){ //For adding Item's ingame names\
LanguageRegistry.addName(mod_MagisticCraft.TestItem, "Nova 6");
LanguageRegistry.addName(mod_MagisticCraft.RedItem, "Red Item");
LanguageRegistry.addName(mod_MagisticCraft.MagicLadder, "Magic Ladder");
}
public void addRecipes(){ //For adding your Item's recipes
GameRegistry.addRecipe(new ItemStack(mod_MagisticCraft.TestItem, 8), new Object [] {"#", "X", Character.valueOf('#'), Block.dirt, Character.valueOf('X'), Item.stick});
}
}
then its not poping up with achievement get
here is the code i used------ mod_imnottellingu
then the ------ commonproxy
Thanks for your time and support! Happy modding
Hm, I think that I might go outside today.
Hm, I think that I might go outside today.