The game uses Tick/Notifications to Alert the game that You got the wood, So it's obvious what you need to do. Go into the achievments code and get you'reself a Notification from it to trigger the effect.
I cant seem to find the tick notifications I can only find addStat and I cant see a method of comparing stats to a set value.
just add a potion effect in the same place you trigger the achievement if I remember how achievements work you mite want to setup something to store if the achievement has already been complete since you wouldn't want to keep getting a potion effect even after the achievement is complete
That's all good for my own achievements but I would have to edit base classes to do that to vanilla achievements.
How would I go about doing this:
when the player gets an achievement (lets say getting wood) something happens (lets say the get speed II for 30 seconds) but if they trigger the achievement again nothing happens.
I know how to do the effect but what I don't know is how to detect vanilla achievements getting triggered and how to stop the effect happening every time the achievement criteria is completed.
I love this mod and i made a mod review hope you like it :3
Thanks for the video I'll put it in the main post but just to clarify you get the enchantments when crafting. Items take from the creative menu do not get the enchantments. If you could annotate this information on the video to clear that up that would be great I'll also add it to the main post because I didn't explain it very well.
Sorry it took me so long to reply for some reason I was not notified of a reply to my topic.
When you say the enchantments don't work are you shift clicking them out of the crafting table or picking them up and moving them?
If you are shift-clicking you are not meant to get an enchantment only when you pick it up and move it into your inventory. If you are clicking and moving the items into your inventory could you please tell me and I will look into it.
EDIT
You don't get enchantments from the creative menu the item must be crafted.
1. Download the mod you want and Forge ModLoader.
2. Follow instructions for installing forge.
3. Drop the zip file for my mod in the mods folder.
4. Make sure you select the Forge profile in the Minecraft launcher.
... clicking the in the bottom right of the first post ...
... or donating.
Thank you to everyone on the Mod Development section on the forum for helping me with all my questions and errors and thank you to everyone that donates.
Note:
Due to the copyright notation of Mojang AB, the copyright holders of minecraft, any modification is the intellectual property of the authors of the modification, as
long as you don´t mark original modified or non modified minecraft files as your own.
See also: https://minecraft.net/terms
Terms:
"Decompilation" means the translation of binary forms of the software into source forms of the software with or without the help of programs (including, but not limited to, decompilers).
1. The use of the software in binary forms without any modification is permitted.
1.1 Copying the software in binary forms without any modification for private purposes is permitted. Do not publish without a written permission of the copyright holders.
2. Redistribution of the software in source or binary forms, with or without modification, is only permitted with a written permission by the copyright holders.
3. Modification of the software in source or binary forms is only permitted with a written permission by the copyright holders.
4. Reading the source code of the software is only permitted with a written permission by the copyright holders or a special permission.
4.1 A special permission is automatically achieved, when the usage of the source code of the software is only for private, non commercial, reference purposes. (Including, but not limited to, learning, inspiration)
4.2 Copying the source code of the software is only permitted with a written permission by the copyright holders.
5. Decompilation of the binary files of the software is only permitted with a written permission by the copyright holders or a special permission.
5.1 A special permission is automatically achieved, when the usage of the decompiled source code is only for private, non commercial, reference purposes. (Including, but not limited to, learning, inspiration)
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Obsidian - Hardness: 50 - Blast Resistance: 2000Compressed Obsidian - Hardness: 200 - Blast Resistance: 8000Obsidian Pressure Plate - Blast-proof if on a blast-proof material. Only activated by players.Obsidian Door - Blast-proof door.Embedded Emerald - Used in crafting recipes.
Recipes & Images
(when crafting some items you can get free enchantments)
Videos
If you have made a video of my mod post it a link and I will put it here.
Known BugsNONEFound a bug let me know so I can add it to the list and work on fixing it.PlannedConfig FileBlast proof blocks (wood, stone, glass, etc.)Add achievementsI would love to hear your ideas and opinions so please send them my way.Back to topDownloadDownload Counter: 13 [25/11/2013 10:33]Overkill v0.1 [1.6.2] (Download)About the ModOverkill doubles the outcome of most crafting and smelting recipes. The recipes that are not doubled are so there are no infinite loops. (if you find an infinite loop please tell me so I can remove it)e.g. 9 diamonds = 2 diamond blocks1 diamond block = 18 diamondsrepeat = infinite diamondsImages
(The last two show how infinite loops are removed)
Videos
[Coming Soon]If you have made a video of my mod post it a link and I will put it here.
Known BugsNONEFound a bug let me know so I can add it to the list and work on fixing it.PlannedDouble Mob DropsDouble ExpI would love to hear your ideas and opinions so please send them my way.Back to topComing soon More Recipes
[More Recipes banner]Information about this mod will be added as I work on it and when it is released the spoiler will be removed.
Coming soon Food Plus
[Food Plus banner]Information about this mod will be added as I work on it and when it is released the spoiler will be removed.
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
if(subtext == 1)
{
par3List.add("\2474Click for enchantment,");
par3List.add("\2474Shift click for no enchantment");
}
}
so how would I set it to be blank on being place in the players inventory?
I have an item that when you craft it if you click it and move it into your inventory it gets enchanted but if you shift click it out if the crafting table it does not get the enchantment. I want to put some lore on the item so people know how this works but how would I go about removing the lore once it has been crafted?
All my cod is fine everything runs and works fine but when I go to recompile I get an error saying
unmapable character for encoding UTF-8
LanguageRegistry.addName(pickaxeCorrupt, "?kCorrupt Pickaxe");
and it shows the error as being the "?" but in my code it is "§" not "?". I have used "§k" so that the name of the item scrolls through random characters. Is there a way to fix this or to do it so there is no error?
0
I've been looking and when you trigger an achievement it adds a stat to your player but I cant find a way to check if a player has a stat or not.
0
I cant seem to find the tick notifications I can only find addStat and I cant see a method of comparing stats to a set value.
That's all good for my own achievements but I would have to edit base classes to do that to vanilla achievements.
0
when the player gets an achievement (lets say getting wood) something happens (lets say the get speed II for 30 seconds) but if they trigger the achievement again nothing happens.
I know how to do the effect but what I don't know is how to detect vanilla achievements getting triggered and how to stop the effect happening every time the achievement criteria is completed.
All help is appreciated and thanks in advance.
0
Thanks for the video I'll put it in the main post but just to clarify you get the enchantments when crafting. Items take from the creative menu do not get the enchantments. If you could annotate this information on the video to clear that up that would be great I'll also add it to the main post because I didn't explain it very well.
0
Images coming soon (tomorrow hopefully)
0
Sorry it took me so long to reply for some reason I was not notified of a reply to my topic.
When you say the enchantments don't work are you shift clicking them out of the crafting table or picking them up and moving them?
If you are shift-clicking you are not meant to get an enchantment only when you pick it up and move it into your inventory. If you are clicking and moving the items into your inventory could you please tell me and I will look into it.
EDIT
You don't get enchantments from the creative menu the item must be crafted.
0
Windows & Mac Client & Server:
1. Download the mod you want and Forge ModLoader.
2. Follow instructions for installing forge.
3. Drop the zip file for my mod in the mods folder.
4. Make sure you select the Forge profile in the Minecraft launcher.
video coming soon
Show your support by using my banner, ...
Banner Code:
... clicking the in the bottom right of the first post ...
... or donating.
Thank you to everyone on the Mod Development section on the forum for helping me with all my questions and errors and thank you to everyone that donates.
Donors List
KougaMyazawa (Youtube) $2.00
Copyright© Notice
Mattyp153 Mods (Obsidian Plus, Food Plus, More Recipes) ( "the software" )
Copyright© 2013, Mathew "mattyp153" Poole ( "the copyright holders" )
All rights reserved.
Contact:
E-Mail: [email protected]
Minecraftforum.net: mattyp153
Minecraft.net: mattyp153
Note:
Due to the copyright notation of Mojang AB, the copyright holders of minecraft, any modification is the intellectual property of the authors of the modification, as
long as you don´t mark original modified or non modified minecraft files as your own.
See also: https://minecraft.net/terms
Terms:
"Decompilation" means the translation of binary forms of the software into source forms of the software with or without the help of programs (including, but not limited to, decompilers).
1. The use of the software in binary forms without any modification is permitted.
1.1 Copying the software in binary forms without any modification for private purposes is permitted. Do not publish without a written permission of the copyright holders.
2. Redistribution of the software in source or binary forms, with or without modification, is only permitted with a written permission by the copyright holders.
3. Modification of the software in source or binary forms is only permitted with a written permission by the copyright holders.
4. Reading the source code of the software is only permitted with a written permission by the copyright holders or a special permission.
4.1 A special permission is automatically achieved, when the usage of the source code of the software is only for private, non commercial, reference purposes. (Including, but not limited to, learning, inspiration)
4.2 Copying the source code of the software is only permitted with a written permission by the copyright holders.
5. Decompilation of the binary files of the software is only permitted with a written permission by the copyright holders or a special permission.
5.1 A special permission is automatically achieved, when the usage of the decompiled source code is only for private, non commercial, reference purposes. (Including, but not limited to, learning, inspiration)
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Back to top
0
NOTES:All my mods require Forge ModLoader.All mods work in multi-player.Any ideas on how to improve my mods or things I could add to my mod are welcome.Up to Date [1.6.2] Out of Date Coming Soon Jump To:Mods: OBSIDIAN PLUS OVERKILLMORE RECIPESFOOD PLUSOther:HOW TO INSTALLSUPPORT METHANK YOUCopyright© Notice DownloadDownload Counter: 15 [25/11/2013 10:33]Obsidian Plus v0.1 [1.6.2] (Download)About the ModObsidian Plus adds new tools, armor, weapons and more based around obsidian.Note: you only get the free enchants when crafting you do not get the enchants if you take the items from the creative menu.ToolsArmorOther Blocks & Items
0
0
so how would I set it to be blank on being place in the players inventory?
0
0
0
unmapable character for encoding UTF-8
LanguageRegistry.addName(pickaxeCorrupt, "?kCorrupt Pickaxe");
and it shows the error as being the "?" but in my code it is "§" not "?". I have used "§k" so that the name of the item scrolls through random characters. Is there a way to fix this or to do it so there is no error?
0
0