So let me just start out by saying possibly the most-used sentence in any forum on any website: I'm not sure if this is the right place to post this, but...
I'd also like to state that I'm a rookie coder with minimal modding experience (but mediocre coding knowledge). I'm using Forge to create my mod and I am currently modding version 1.5.2 of Minecraft.
I am in development of a simple mod that adds a few new tiers of tools and armour and a bunch of materials to match. I feel the need to tell people what goes where or, at the very least, give them a subtle hint as to what goes where...for example, I have made a material that is used in strengthening tools during the crafting process (the resulting product having more durability, better enchantability, a nice item graphic, etc) and I think one problem would be, people wouldn't know that it's used for that (suddenly thinking it's useless when they find out it can't be used in creating its own set of tools and armour). Of course, I can easily mention it or give a full-detailed explanation wherever I post the mod, but not everyone will read it, and on top of that, not everyone bookmarks a page just to refresh their memory later on...or if they do, they don't always think their mind will need refreshing.
So, I would like to know two things.
The first would be, is it possible to pull off a short item description through tooltips, and the second would be, how would I code an item to have the tooltip?
I wouldn't think this kind of question wouldn't need any source code to be answered, and I don't think there's much more info I can give to help someone answer, but if you need to know anything else, just ask.
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4)
list.add("Tooltip stuff goes here");
Where would someone need to put this if all items are created and registered within the same file and is it possible to use the same add information method to add information to several items and just "pass the tooltip stuff" through the method so that it can be reused? I'm trying to make a money mod and I wanted to use this to add a little description to the items telling the player how much the item is worth, I was also wondering if there was a way to add a dynamic tooltip so that if the player stacks the item it would then tell the player the total worth of the stack? And finally which list do you import?
Rollback Post to RevisionRollBack
just a simple redstoner i cant do some advanced things like fully blown cookie clicker or a moving car but i can do some other things like a cobble generator where no piston is activated unless it needs to be activated
click them to make them grow and then they wont die, do you want them to die? no, then click them.