The Meaning of Life, the Universe, and Everything.
Join Date:
8/9/2013
Posts:
211
Minecraft:
HappyKiller1O1
Xbox:
HappyKiller101
Member Details
So, I am working with 1.6.4 and have encountered a problem. My achievement screen is white, now I have tried everything to fix it but nothing seems to work. I also tried making a new class extending AchievementPage but still to no avail. I can send you my code via message perferablly not on here cause it has some custom things I don't want others to look at XD
Anyway, if someone on here has encoutered this problem with 1.6.4 forge or if Phobo knows how to fix it, please reply to this. I really need the help.
Thanks!
-Joey
P.S. If you would like to make achievements for 1.7.2 go to http://www.youtube.com/user/ScratchForFun He has a tutorial on how to make custom achievements for 1.7.2
So, I am working with 1.6.4 and have encountered a problem. My achievement screen is white, now I have tried everything to fix it but nothing seems to work. I also tried making a new class extending AchievementPage but still to no avail. I can send you my code via message perferablly not on here cause it has some custom things I don't want others to look at XD
Anyway, if someone on here has encoutered this problem with 1.6.4 forge or if Phobo knows how to fix it, please reply to this. I really need the help.
Thanks!
-Joey
P.S. If you would like to make achievements for 1.7.2 go to http://www.youtube.c...r/ScratchForFun He has a tutorial on how to make custom achievements for 1.7.2
Sometimes when you add more achievements it will work.
Rollback Post to RevisionRollBack
I am a guy in a dinosuit wearing a scarf, so don't take me too serious!
Im having some trouble triggering achievements for a lot of things, and I think a lot of other people are also, but you could just make some variable, zombieCount or something += 1 for every zombie killed and when zombieCount == 10 then trigger your achievement, I could help you out more with the code if you like, PM me
Hey Phobophobe, I followed your tutorial and managed to add achievements to my mod (in 1.8),the only thing I needed to change was the first string when you create the achievement variable. It can't be empty, must be a unique ID, so I combined my mod ID with the achievement name.
What I can't do is add a custom icon, From what I can see, I would have to create a fake item with a custom icon just to use in the achievements. Looks like too much trouble for a simple task, is there another way?
Rollback Post to RevisionRollBack
Custom paintings! My latest project, still in BETA.
A small mod to improve your game, but keeping the vanilla flavour. For Minecraft 1.8.
Also check out my Redstone Jukebox mod, now updated to Minecraft 1.7.10!
Hey Phobophobe, I followed your tutorial and managed to add achievements to my mod (in 1.8),the only thing I needed to change was the first string when you create the achievement variable. It can't be empty, must be a unique ID, so I combined my mod ID with the achievement name.
What I can't do is add a custom icon, From what I can see, I would have to create a fake item with a custom icon just to use in the achievements. Looks like too much trouble for a simple task, is there another way?
Sorry I haven't really been keeping these up to date but as far as I know thats the only way :/ You could create an item that isn't in creative or doesn't have a crafting recipe, that way it would only be use for the icon.
Great Tutorial by the way, sorry for being so late on this. Been busy with my mod. I have followed this tut to the letter but, cant get my second Achievement to trigger. I was wondering if you had any ideas?
First, let me say that, I have a custom furnace that is dual input and, outputs 2 x my custom ingots. So, I used your multiple items check to trigger the 2nd Achievement. No joy yet.
Here's where I initialize and register the Achievements in the Main Mod File:
//Achievements
public static Achievement achievementWolframMiner;
public static Achievement achievementAlloyer;
//Registers in load()
achievementWolframMiner = new Achievement("achievement.mineWolfram", "mineWolfram", 0, 0, new ItemStack(BlockDecMM.blockOres), (Achievement)null).initIndependentStat().registerStat();
achievementAlloyer = new Achievement("achievement.smeltAlloy", "smeltAlloy", 2, 0, ItemsMM.carbideTungstenIngot, achievementWolframMiner).registerStat();
AchievementPage.registerAchievementPage(new AchievementPage("MadHatModding", new Achievement[]{achievementWolframMiner, achievementAlloyer}));
Here is my EventHandler
public class MMEventHandler
{
public int tungstenKilned = 0;
public int steelKilned = 0;
@SubscribeEvent
public void smelting(ItemSmeltedEvent event)
{
if (event.smelting.getItem() == ItemsMM.tungstenIngot)
{
event.player.addStat(Main.achievementWolframMiner, 1);
}
}
@SubscribeEvent
public void pickup(ItemPickupEvent event)
{
if (event.pickedUp.getEntityItem().getItem() == ItemsMM.carbideTungstenIngot)
{
tungstenKilned = tungstenKilned + 1;
this.triggerAchievementAlloyer(event);
}
if (event.pickedUp.getEntityItem().getItem() == ItemsMM.carbideSteelIngot)
{
steelKilned = steelKilned + 1;
this.triggerAchievementAlloyer(event);
}
}
private void triggerAchievementAlloyer(ItemPickupEvent event)
{
if (tungstenKilned >= 2)
{
if (steelKilned >= 2)
{
event.player.addStat(Main.achievementAlloyer, 1);
}
}
}
The first achievement fires off with out a flaw, the second achievement I'm having issues with. Thanks for any help you, or anyone else, can give me.
Anyway, if someone on here has encoutered this problem with 1.6.4 forge or if Phobo knows how to fix it, please reply to this. I really need the help.
Thanks!
-Joey
P.S. If you would like to make achievements for 1.7.2 go to http://www.youtube.com/user/ScratchForFun He has a tutorial on how to make custom achievements for 1.7.2
Sometimes when you add more achievements it will work.
What I can't do is add a custom icon, From what I can see, I would have to create a fake item with a custom icon just to use in the achievements. Looks like too much trouble for a simple task, is there another way?
Custom paintings! My latest project, still in BETA.
A small mod to improve your game, but keeping the vanilla flavour. For Minecraft 1.8.
Also check out my Redstone Jukebox mod, now updated to Minecraft 1.7.10!
Sorry I haven't really been keeping these up to date but as far as I know thats the only way :/ You could create an item that isn't in creative or doesn't have a crafting recipe, that way it would only be use for the icon.
Hello Phobophobe,
Great Tutorial by the way, sorry for being so late on this. Been busy with my mod. I have followed this tut to the letter but, cant get my second Achievement to trigger. I was wondering if you had any ideas?
First, let me say that, I have a custom furnace that is dual input and, outputs 2 x my custom ingots. So, I used your multiple items check to trigger the 2nd Achievement. No joy yet.
Here's where I initialize and register the Achievements in the Main Mod File:
Here is my EventHandler
The first achievement fires off with out a flaw, the second achievement I'm having issues with. Thanks for any help you, or anyone else, can give me.
Try:
and how i can get a achievement when i craft a block? that dont work with getItem
>> https://minecraft.curseforge.com/members/XxRexRaptorxX/projects