I am making a mod for called Collectibles Mod. I want to make an achievement for when a certain collection is completed. I know how to make achievements, however i cant exactly figure out how i would group a whole bunch of items together to make a single achievement. I dont really know if that's actually possible. Any help would be appreciated
You can add new Stats for the player and have an event handler for EntityItemPickupEvent that increments them whenever an item of the right type is picked up. If you don't want to use the existing Stats stuff, you can also store the extra data in IExtendedEntityProperties.
If you don't want to allow players to simply toss and collect the same item over and over, store a boolean flag in the ItemStack NBT indicating whether it has already been picked up or not.
I am making a mod for called Collectibles Mod. I want to make an achievement for when a certain collection is completed. I know how to make achievements, however i cant exactly figure out how i would group a whole bunch of items together to make a single achievement. I dont really know if that's actually possible. Any help would be appreciated
My Mod: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/2586042-collectibles-mod-v-alpha-0-0-1
You can add new Stats for the player and have an event handler for EntityItemPickupEvent that increments them whenever an item of the right type is picked up. If you don't want to use the existing Stats stuff, you can also store the extra data in IExtendedEntityProperties.
If you don't want to allow players to simply toss and collect the same item over and over, store a boolean flag in the ItemStack NBT indicating whether it has already been picked up or not.
How would i add a stat? Ive been trying everything i know of to add something to track the collection of these items
[EDIT]: i have the stat added but i dont know how to get it to count. Any help?
My Mod: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/2586042-collectibles-mod-v-alpha-0-0-1