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. Make the GUI set a String variable in your tile entity to the text input. If the text change send a packet containing the text to the server. The server then reads the packet, and updates the TileEntity's String on the server side to the same value. Then it should do something to mark the TE as updated so all players closeby it get's the update. Inside the TileEntity class implement the read and write to/from nbt methods. and save/load the string variable from NTB. For more info on GUI and syncing check out the Interface Courses by vswe on http://courses.vswe.sw NBT: There's some on the wiki. Heres one for items but it should give you the general Idea of how you store and read a variable from NBT www.minecraftforge.net/wiki/Item_nbt
  2. Look into World, there you will find the path finding methods. Have fun
  3. Test it and check yourself?
  4. To make it better, and minecraft's code needs A LOT of work in that regard. Without changing over to the attribute system, the modding API would not be possible. These changes are towards a bigger goal, and to be honest the Attribute system isn't that bad once you are used to it. One at a time these changes may seem weird and just made to make a modders job tedious for no good reason, but if you look at it from a different standpoint the code is slowly being made into something which is easily expandable and therefore opens up a lot of possibilities for us as modders
  5. There's plenty of documentation for the Minecraft code, as well as proper names for everything and a lot of other things. All of this is provided by Mojang for the programmers working on the Minecraft project Because the "wip" state is not noticeable for the end users. The users will never see or know of how the code looks between 1.5 and 1.6 all they know are new features. Therefore I see no problem in doing things this way
  6. There are serveral lecture number 1, each course starts at lecture one. The first course however is the one at the top of the list, you can find a direct link to it here: http://courses.vswe.se/?course=1 and the 2nd one: http://courses.vswe.se/?course=2 GL and Have fun learning the craft
  7. No with logic I meant, I fail to see any logical reason as to why it would have a significant impact on performance
  8. "Also, I'm getting an error on the buttonList.add line: "Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized"" is a warning not an error
  9. try looking into the two thhings mentioned by the two first replies. google the gltranslate and read up on it!
  10. Schematic to Java converter makes a class file full of stuff like thos: world.setblock(x+1,y,z, 1) world.setblock(x+2,y,z, 1) etc. but I can't imagine the computation of the addition would be the difference between an noticeable amount of lag for 6000 blocks?
  11. Did you start with the first one? IF you start at the one about models, then you will have an impossibly hard time understanding anything
  12. I really don't see the logic here
  13. I'm sure you can find a workaround for that if you want to
  14. How do you generate other stuff in the overworld? Do you know for example how to generate ore's? By using the same principles you could place flowers. Or you could create a decorator for it but meh
  15. Keep in mind that the system is not only new, it's also a work in progress. This is one of many steps needed towards the API they are working on.
  16. That's weird it would seem the lib package is req. and missing I'd simply post in his thread and ask about that
  17. yes. I also find copy-pasting code quite against the whole point of using Java and any OOP language for that matter. If you want to copy paste code all day, you might as well be doing procedural programming lolz Also for new modders, you learn way better by writing what needs to be added and UNDERSTANDING the code. Than to copy-paste random meaningless (Obfuscated) code
  18. @Gotolink: For such massive structures, would using ExtendedBlockStorage to set he blockID's and meta's be better in order to prevent lags while it is being generated?
  19. See http://www.minecraftforge.net/forum/index.php/topic,12010.0.html To get the correct method to use
  20. Vswe has a two great courses about graphical user inerfaces Includs syncing, buttons, tabs and slider and much more
  21. Check for a similar method instead then, i know there is one!
  22. manually import it, by finding the Configuration class (CTRL+SHIFT+T helps!) and copy it's package name. Then write import package.Line.Here.Configuration; along with the other import statements.
  23. As i said before, nothing happens. That's not debugging, here's how you would debug it and TRUST me you would really want to KNOW this stuff else your life will be very hard instead of simple: http://www.vogella.com/articles/EclipseDebugging/article.html
  24. in case it's relevant to any of you two: KeyHandler: http://www.minecraftforum.net/topic/1798625-162sobiohazardouss-forge-keybinding-tutorial/ Packets! Read them both to get a understanding of packets Packet Handling 1: http://www.minecraftforge.net/wiki/Packet_Handling Packet Handling 2: http://www.minecraftforge.net/wiki/Advanced_Packet_Handling

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.