Everything posted by Mew
-
Custom sound not working
The sound may be too long. And also, if the Item is in your hotbar, and it is supposed to PLAY the sound when it is in your hotbar, does it not make sense that the thread may have trouble "dying"?
-
[Unsolved]how to do somthing every so often(excute a function)
Make a Event handler that uses the LivingUpdateEvent. In that, check if the worlds time is a multiple of however long a minecraft day is. (or you could just figure out what variable holds the day ). Then you do: if (worldDay == 7) { // DO something } that sort of thing
-
[solved]How to put a randomly generated number into a lore?
I know it isn't. I just wrote that with the comment saying, WHATEVER IT IS. meaning I have no idea what the method is, but I know it's there...
-
Trying to make a dimension where it always snows.
What are the problems?
-
[solved]How to put a randomly generated number into a lore?
Something like: // package here // imports here public class ItemRandomIDItem extends Item { // typical Item stuff here public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4 { NBTTagCompound stackCompound = ItemStack.getItemStackNBTTagCompount(); // whatever it is to get it int idToDisplay = stackCompound.getInteger("theRandomID"); par3List.add("ID: " + idToDisplay); } // other Item stuff }
-
Trying to make a dimension where it always snows.
Try something like .setMinMaxTemperature(int minTemp, int maxTemp); (Could be the opposite). If you set it low enough it will freeze everything. And why not just copy paste the BiomeGenOcean to your new one? It gives a lot better control
-
Trying to make a dimension where it always snows.
The only way really is to change the biome's temperature to something really cold. That makes it snow and such. Or you could just go over the whole biome and replace water with ice.. But that is taxing
-
NEI API, adding a name to a new keybinding
Have fun!
-
NEI API, adding a name to a new keybinding
Well hydroflame here seems to be a semi master of GUI's, he helped me with a draggable GUI Well then no wonder he said the GUI method would be easier Haha, that is true.. But I myself am getting better at GUI's. They are really quite easy.
-
NEI API, adding a name to a new keybinding
kindof like the difference between bukkit and forge, its so much easier in bukkit because you have to take care of 1 side, commands only but forge is way better because we can create menu, make things intutive etc Haha, agreed whole heartedly mate! Well hydroflame here seems to be a semi master of GUI's, he helped me with a draggable GUI
-
NEI API, adding a name to a new keybinding
Ill agree with Hydroflame on this. But to expand on his idea, have a config file that can switch between the two methods. It means more work, but then it adds diversity, and with diversity comes heaps of users (if it is the right diversity). So you would have say a boolean in the config that is true if the player wants the menu with ALL items, and false if they want the keybinding. I would definitely use the menu, but hey, you have to have diversity
-
[1.6.2]Boss Music?
So you don't know how to load the sound to the sound-pool and such? If you don't, I can help you there. With playing the sound on spawn... How is the boss mob spawned? If it is spawned via an item or such, you can play the music via the constructor of the boss mob. Yeah just play the sound via the mob's (entity's) constructor. Then you can do the LivingDeathEvent (I think its called that) and stop the song from playing... To be more clear, the only way I can think of STOPPING the music when the boss dies is to, on the construction of the boss, create a new thread that plays the music. Then, using the LivingDeathEvent afore mentioned, stop the thread, thus stopping the music. If you need help just ask
-
Please help
Umm, maybe try going to the Forge IRC? And the problem is in the ID for the block. Change it to 501 and all should be sweet If you want, just keep posting in this topic and I will check it everytime I see it has been posted in And If I can't help Ill bring in some of the big guns THanks, you're really helping me. I changed some code and I get this (I dont think me changing a part of the code was the cause) Dang crash reports http://pastebin.com/j5iJgAAc Also, if you're on steam can I add you? Sorry I am not on steam Also, it seems you are using the wrong event handler class. Try something like reinstalling your setup. Something weird that I can't see is going wrong. It seems like some Java Reflection is taking place, but I don't know what the hell its doing
-
Tips and tricks for limiting entity spawns
Hmm... This is an interesting dilema.
-
Please help
Umm, maybe try going to the Forge IRC? And the problem is in the ID for the block. Change it to 501 and all should be sweet If you want, just keep posting in this topic and I will check it everytime I see it has been posted in And If I can't help Ill bring in some of the big guns
-
Please help
Which tutorials are you following??? Try this: public final static Block newguyOre = new Block(5001, Material.rock);
-
[Solved specifically]Detecting click position?
I am sorry I did not explain well enough. You never said that you had a mirrored model. Therefore, it still gives you the side you clicked on. And double checking your drawing, it is well and truly wrong...
-
Adding player inventory tabs.
I would suggest looking into vanilla creative inventory code. That would allow you to see how the tabs are added and such.
-
[Solved specifically]Detecting click position?
I don't want another rage fight to happen (had one on FB last night, no ones business ). By looking at your drawing, it seems to be that you are right. BUT!!!!! You did not specify wether you wanted a front or back of the same thing, thus not fully explaining your question. For what WAS asked, you where given the answer. For what you didn't ask, you obviously weren't given an answer. Therefore the lessons we can ALL take away from this is: Ask the ENTIRE question you want answered, don't jump to conclusions, and for me, don't jump into random business (except for that fact that hydroflame is technically my boss in a way is my coworker...).
-
Rendering a Block with a techne model
Jeez, whats with the sarcasm? I work with hydroflame, he is quite the nice guy once you get to know him Just because someone is stating their opinion on something, doesn't mean you have to yell at them. Get to know people before you comment about them. And he has a point when he says that he shares his code, he helps me all the time
-
[Solved] Activate Custom Portal with Vanilla Flint and Steel
I will agree with onNeighbourBlockChange. That would be the most effective. Try using onBlockAdded onNeighbourBlockChange. Do a check to see if the portal frame is built (will have to look in the two directions possible) then check if there is a fire block on top of any of the two base portal frame blocks etc. I apologize for the strike throughs contradicting, I am horribly tired
-
Soo Im New.
*Applauds* I am glad you have some sense! A lot of people come with no experience
-
Soo Im New.
Start by learning Java. Think of how much Java knowledge you will need, times it by twenty-thousand, then learn that amount of Java. Best way to start modding
-
How to add videos to minecraft?
I have found this (once again haven't read ALL of it): http://lwjgl.org/forum/index.php/topic,2516.0/wap2.html http://www.java-gaming.org/topics/vlcj-in-opengl-lwjgl/24846/view.html These may also help you in all sorts of ways:
-
How to add videos to minecraft?
This is less a Minecraft forge question and more a Java question. Try some of these links (note that I haven't read them so they may not actually help): http://stackoverflow.com/questions/4910438/how-can-i-play-mp4-video-file-in-a-jframe http://stackoverflow.com/questions/5457269/show-video-to-jpanel http://www.coderanch.com/t/346860/GUI/java/Play-Video-JFrame
IPS spam blocked by CleanTalk.