Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mew

Members
  • Joined

  • Last visited

Everything posted by Mew

  1. Not really Well, not quite the methods that affected the transformer classes, but still. Good call Gotolink
  2. Well, with what you told me I went and found this: int x = Minecraft.getMinecraft().theWorld.getSpawnPoint().posX; int y = Minecraft.getMinecraft().theWorld.getSpawnPoint().posY; int z = Minecraft.getMinecraft().theWorld.getSpawnPoint().posZ;
  3. If you expand a little more on what the problem is, it helps people pin point the actual problem. So could you please expand?
  4. Mod container class is only required if you want to have mod metadata. In which case he doesn't (I know this because I do). Stup class... I made a coremod for 1.6.2 and didn't have that running either. So no its not needed. A coremod is like a paxel. It is a lot of different functions all put together. In this case though, all those methods are like the mould needed for the paxel, but I only want the shovel part of it. I also only have that mould. So I only fill in the shovel section. Simple as that.
  5. Fairly easy. When you generate the chest block, also make a new TileEntity. A TileEntityChest to be exact. Then using one of the methods in the class, add items to your generated chest. Oh, make sure the coords for the TileEntity are the EXACT SAME as the chest block. I think its something like: tileEntityChestVariable.addItemStackToSlot(slotID, new ItemStack(Item.diamond, 1)); I think its something like that at least... Don't take my word for it
  6. So you are wanting it to (say you are looking at the side) go from vertical, to 45˚? example: | to /
  7. Unfortunately no one can give you the answer. When it comes to model rotation you have to play with it until it is how you want it...
  8. I was wondering, how would one go about making a GUI like the achievement page GUI? What I am really wanting is the scrollable/draggable area that is contained in it, and the ability to have points on that page be buttons and such. Any help would be appreciated.
  9. Awww...!! I liked the idea. Maybe I will figure it out and make a small mod out of it
  10. I have no flippin idea I was just saying what I would do, but that would require me to learn how they work. So I would suggest reading through how they are set and such.
  11. Go to pixlr.com/editor and use that. Make a new TRANSPARENT image and copy your image over to that one. Then using the eraser or whatever, delete the white.
  12. ... READ THIS TUTORIAL: http://www.minecraftforge.net/wiki/Icons_and_Textures
  13. Haha, I never would have thought of that... That, is called openGL
  14. This is probably extremely inefficient, but I would cancel the call for the elements, and then copy the code I wanted (say I was moving the XP bar) and paste it in, and then draw it in the new desired location. But like I said, most likely very inefficient...
  15. Mew replied to Rainfur's topic in Modder Support
    then try --password PASSWORD (PASSWORD being your password). I have no idea if that will work, but use common sense
  16. So for example, you are using the axe to break a dirt block. Above the dirt block is a tree. The timber effect should not take place since you are breaking dirt. That is why it checks for logs first, so that "hey, you're breaking a wood block now, let's know out the rest of 'em" will happen. That makes sense now I didn't think of that... Good job mate! Glad someone has common sense
  17. It's to tell it that breaking a block beneath a wood block won't have the "timber" effect. If that weren't there it could work by breaking it otherwise. Thanks for the concern, though. That still doesn't quite work out logically in my mind... Why check the block you are breaking is wood, if you are wanting to check the block under it? That is what caused my confusion in the first place.
  18. Does this text box you have work the same (sorta) as a JTextField? If it does, you can put a listener on it (or if you can, put the same kind of listener on it that gets called everytime you hit "return" or "enter") and execute the code via that listener. Then you do your check and such. And then clear the text field. That should work everytime. Well, it does with a JTextField at any rate
  19. Thanks but when I break it with the pick the first time i break that ore type I get an ingot and the ore, the rest of the then I just get the ore back That makes sense. The problem with the ore is the fact that what a block drops is set inside the block's class. And to my knowledge, there is no way to void that block drop. But I guess you could do a hackish type job by using gamerules... By that I mean set block drops to false and then back to true again once it dropped the item. As to it only working once... I am not sure
  20. That first if statement seems EXTREMELY redundant... But oh well
  21. The problem is is that your button is too "tall". It cannot be more than 20px high or it starts drawing other parts of the gui on it. public class GuiAmmoSatchel extends GuiScreen { public GuiAmmoSatchel() { } @Override public void initGui() { super.initGui(); this.buttonList.add(new GuiButton(0, 96, 96, 96, 20, "Testing 1.2.3.")); // this is the line that I changed } @Override public void drawScreen(int x, int y, float f) { drawDefaultBackground(); super.drawScreen(x, y, f); } } Another way you could do the button is like this: this.buttonList.add(new GuiButton(0, 96, 96, "Testing 1.2.3.")); That automagically makes a width. The height is set to 20 automagically aswell. Hope that helped
  22. Thanks Chibill This is making things easier for me... But I will admit, I was being rude to him... I am sorry for returning the favour. And of course I know it's not static. playerINSTANCE means something like: EntityPlayer [i]playerInstance[/i] = new EntityPlayer(); Except you can't do that. So maybe try Minecraft.getMinecraft().thePlayer.username Don't post here again. I've already reported you a moderator. I hope this isn't the way you solve every problem you come by. Heaps of people have posted here trying to help you and you have not been able to get code that they have spent time to write for you to work. The code is especially tailor made for your request. I suggest this: http://docs.oracle.com/javase/tutorial/ [EDIT] And yes, I have been rude to you. And I have no excuses for that. But you have been extremely rude to me and others in the first place. So I am willing to accept my actions and be reprimanded for them. Report away. Why are you still trying to help him? I gave up after the first sour comment to be honest. If he hasn't understood it by now, he never will- between you and maxpowa you pretty much wrote the entire code for him. I'm not exactly good at Java and I managed to get it all working and even release the first alpha of my standalone economy mod which uses it. I am still trying to help him because that is what he wants. If someone asks for help, you do not turn a blind eye and walk away. Even if they are not quite sure HOW they want the help, it is still right to help them, and help them until the have no need for help. As it is he still needs help. So I will still help him. But as he seems to have just givien up, there is no need to help. Thanks all for your support And thank you for trying to help him
  23. I am sorry for returning the favour. And of course I know it's not static. playerINSTANCE means something like: EntityPlayer [i]playerInstance[/i] = new EntityPlayer(); Except you can't do that. So maybe try Minecraft.getMinecraft().thePlayer.username Don't post here again. I've already reported you a moderator. I hope this isn't the way you solve every problem you come by. Heaps of people have posted here trying to help you and you have not been able to get code that they have spent time to write for you to work. The code is especially tailor made for your request. I suggest this: http://docs.oracle.com/javase/tutorial/ [EDIT] And yes, I have been rude to you. And I have no excuses for that. But you have been extremely rude to me and others in the first place. So I am willing to accept my actions and be reprimanded for them. Report away.
  24. I am sorry for returning the favour. And of course I know it's not static. playerINSTANCE means something like: EntityPlayer [i]playerInstance[/i] = new EntityPlayer(); Except you can't do that. So maybe try Minecraft.getMinecraft().thePlayer.username

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.