Created
January 14, 2015 08:01
-
-
Save Lomeli12/2c3ddba5c1aafec3b05c to your computer and use it in GitHub Desktop.
Example of how to make a custom achievement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pageTitle":"Example Title","_comment": "The title that will appear on the button on the achievements GUI. This will also act as the page id (with the spaces replaced with '-')", | |
"langZip" : "exampleLang.zip","_comment" : "The zip file that contains all the localization files, which should be in the same directory as the json file. The '.zip' part is optional", | |
"achievements" : { | |
"_comment" : "Here is where you will register all the achievements. The membername will act as the id for the achievement(try to stick to letters and numbers and not to use '.' or spaces). Remember to register parents first!", | |
"exampleAchievement1": { | |
"conditionType" : "pickupitem","_comment": "The id for the unlock condition you want to use. See https://github.com/Lomeli12/AchieveSON/tree/master/src/main/java/net/lomeli/achieveson/conditions to see all the conditions and their ids", | |
"params" : "minecraft:dirt","_comment": "The parameters for the condition, again see the link above to see what arguments the condition accepts", | |
"itemIcon" : "minecraft:dirt","_comment": "The item you wish to use for achievement icon. Format goes modid:item_name:metadata", | |
"xPos" : 0,"_comment": "Coordinates for the achievement on the achievement gui. 0, 0 is the center and most achievements have a distance of 2 from each other", | |
"yPos" : 0 | |
}, | |
"exampleAchievement2": { | |
"conditionType" : "killentity", | |
"params" : "net.minecraft.entity.passive.EntityChicken", | |
"itemIcon" : "minecraft:feather", | |
"xPos" : 2, | |
"yPos" : 0, | |
"parentAchievement" : "exampleAchievement1", "_comment": "Set the parent achievement for this achievement, which will need to be unlocked in order to unlock this one. Must be one you created within the same JSON file." | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The lang file works just like normal mod lang files. The format for achievment localizations goes: | |
# pageId = pageTitle minus any spaces | |
# achievement.<pageID>.<achievementID>= Achievement Title | |
# achievement.<pageID>.<achievementID>.desc=Description for the achievement. | |
# Then just zip all your lang files up, put them in the achievements folder, and put the file name in your JSON file (with or without extension) | |
achievement.exampletitle.exampleAchievement1=Example Achievement 1 | |
achievement.exampletitle.exampleAchievement1.desc=A simple discription for achievement 1 | |
achievement.exampletitle.exampleAchievement2=Super Unique Name 2000 | |
achievement.exampletitle.exampleAchievement2.desc=Totally radical dude! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Corrections:
pageID = pageTitle with any spaces replaced with '-'s