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.

Mazetar

Forge Modder
  • Joined

  • Last visited

Everything posted by Mazetar

  1. I meant what happens if you move the line for drawing the text field to below the line drawing the background?
  2. Closest thing I can think of would be equal exchange2
  3. Nice! Well done mate! As for you're last question I have no idea but since none else has answered you I'm just gonna try a thought I have: Since I can't see a variable for depth on the field when you call for them/it to be drawn I'd guess there's some other way to decide what's drawn on top. So I'd assume that the order inn which the draw calls are placed would be important? Maybe first called, first drawn and thereby it's drawn behind everything further below?
  4. this would be the definition of advance stuff, you would need to be good with Java and be into OpenGL mate Unless you satisfy both of the req. above I would recommend you go do easier things first
  5. Great I know just the guy for you, Pahimar: Watch the videos inn order but skip all the episode 3 videos. They are outdated and troublesome, episode 4 corrects all that and sets up a neat and tidy work enviroment Episode 5 gives you a nice setup to start from and episode 6 is around the corner The way textures are handled by minecraft got changed drastically by the 1.5 patch and the tutorial for the generic mod is not updated to reflect that change, that's why it tells you to use such methods. Now we use registerIcon but look into the link from Darknesschaos above for info about the textures
  6. If you got access to the world object somehow (Hint: your TileEntity has one) then you can call the below method upon it during whatever method you are invoking, like the update method. couldnt make it work.... besides can you show me how id make it so that it checks for a block in xPos 1-20 for example? Sure, but you won't like my answer. You may not like it nor believe me, but anyone would give you the same answer: You need to go back and learn some more java basics I recommend looking into these, they are nice and interesting: http://see.stanford.edu/see/lecturelist.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111 All material available for free, basically the whole course including assignments and handouts/lecture notes
  7. I would assume because it can't find them? It needs to be inn the correct locations inn your zip folder. If I recall it was: Zip Folder Structure: -src -mods |__ModName |___textures |____blocks |____MyBlock.png items |____MyItem.png
  8. Well if there are errors inn the file you need to see what error it is. IF it's missing dependencies you may need to download other files or if it's outdated you may need an updated version etc. Check the error messages and see if you can figure it out Again it would be best to get support from the creator(s) of the API/Code you are using
  9. If you follow his instructions closely during video 4 you will have a neat and nice environment where you can add API's and work on multiple projects with ease. If you failed the first time, just try again and do what he does while he is doing it. You may want to watch a few minutes then pause and do as he did and then resume until you got it all exactly as he tells you to
  10. First off I think you will be better of asking inn the NEI thread on the minecraft forums they probably know more about NEI's code than we do. If you have the NEI source code, then create a new project import the src to the src folder of the project and list both the minecraft src and the NEI src as a dependency for your mod's build configuration. That would work I'd assume
  11. Well if you can answer this, you should already have the answer in front of you: How can you get a block at any given position?
  12. Well you enter text, press enter and the program know's you are done typing text? There's some action preformed so it knows you are done typing and that this is the final text you wanted inn the field? Haven't used dynamic text fields but there should be some method of knowing when you are done editing them I assume? Else you could have a button to press once you are done typing. Then make that method tell the packet handler to send a packet. I guess this one is still up to date: http://www.minecraftforge.net/wiki/Packet_Handling There you can see how they send int's and such via packets, so using that you should be able to send a packet containing the ints x,y,z and the string from the text box as well as any other data you want.
  13. when button is pressed: - Send button press packet to the Server - Server get's the packet, checks the type and figures it's a packet relating to your GUI - You check the button ID, and then if button ID == SetValueButtonID - Get TE based on the xyz you sent with the packet and the player's world. - Check TE to be of correct type and not null - instanceof - and then te.SetValue(ValueYouSentViaPacketHere)
  14. There are a few ways of doing this, some involving reflection or being a core mod and utilizing the asm library. Depending on your skill with java this can take a while to get into. On the other hand, depending on why you want to use this there may be easier and better ways to a achive your goal so what do ya need it for?
  15. Yeah I see, If I get time and it's still relevant after work I'll try to look into it. Inn the mean time have you checked out: http://wuppy29.blogspot.nl/2012/10/forge-modding-142.html He has some tutorials on the subject, you could see how he's dealing with the problem?
  16. I have no idea since I haven't ever done this, even tough I planned to for a long time, my afk life gets inn the way But I understand logic, so post the code (pastebin w/ java syntax highlights, please) And I (as well as others) can read it and try to aid you inn pointing out what is what.. I just hope not half your variables has funny names
  17. Well assuming your code knows where it will place the player (which is have to know ofcourse) you should be able to tell it to set it where it's setting him now +1 inn the x direction (or z direction depending on the orientation of the portal)?
  18. Updated forge again removed the crash report error and now shows the real error. I guess I need to check what my Container and TE is doing doing with the inventory, even though I'm pretty sure I use 45 to instantiate it and it's length everywhere else hmm..
  19. I told you that you needed to learn java, beacuse: 1. a TileEntity DOES NOT draw things on the screen. 2. you didn't understand return statements. 3. the Gui does not only render things you can interact with.. 4. You don't have a GUI Handler as said earlier and you where given directions to go to the forgewiki to learn more about GUI's! I said above that you needed to learn java and I believed that you understood that, well I guess you didn't I'm sorry if this seems rude and unhelpful but if you're not willing to learn Java and programming principles you got nothing to do inn here! As this board description states you are EXPECTED to know the basics of java and you don't! There are several people here who could have replied to your questions above but chose not too, because the answer would be "learn some java" and people tend to rage at us when we tell them to go learn java which is the ONLY way to actually learn programming! So I'm sorry you don't like the fact that I want you to learn Java, I'm not sorry that I do however as the alternative is you spending two weeks doing things that would have taken you 10 minutes when you know the basics! If you don't want to learn programming, don't want to learn modding then that's fine by all means, but then why are you here at all then? TL;DR: You don't even grasp the basic concepts of Java and I told you above to learn it so here's a even less vague answer: LEARN PROGRAMMING FUNDAMENTALS! LEARN TO CRAWL BEFORE YOU RUN!!!
  20. Well then you have forgotten the basics mate Here: http://see.stanford.edu/see/lecturelist.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111 I find this to be one of the best sources for basic programming education. There you get all the lecture notes, handouts and assignments a real student of the class would get and you get everything for free!
  21. That's not the only thing it does mate. You need to study some more programming basics before you continue with your modding Else you will never get anywhere because the things you are having trouble with right now are at the core basics of programming. You're time is much better spent learning Java, since if you learn the java basics now you will be able to create mods a lot faster when you understand what you are doing and aren't causing crashes every line you write If you want I can give you a nice list of places to seek java knowledge, among'st them both short videos on every topic and a free university lecture on Java basics (this one you really should spend time on, it's awesome!) So do you want to learn some java mate?
  22. I'm sorry but before you that I need you to explain to me, one thing: What do you think the java keyword 'return' means?
  23. if (tileEntity == null || player.isSneaking()) { return false; } No that's not what "return false" means. When it says return it means, it will stop reading that method and return some value back to the caller. This means that since you NEVER will have a tileEntity it will allways be NULL and therefore it will always read the "return false" line. Therefore it will not crash when trying to open the GUI because it never tries to open your GUI since this line is NEVER read: player.openGui(PortalBallMain.instance, 0, world, x, y, z); Do you now understand why I nag about that little line?
  24. Well my question was if you understood what the code was doing.. And you're first response was "Well, thats me trying to open it." When the code is not showing player.openGUI but the code before that, and your statement did not tell me what the code actually is doing. So do you know what these lines are doing? They explain why your program isn't crashing without a GuiHandler.

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.