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.

sequituri

Forge Modder
  • Joined

  • Last visited

Everything posted by sequituri

  1. That's too little information to help you. Please elaborate.
  2. On the client side: Look at PlayerControllerMP#clickBlock(x,y,z,side) By the way; this is called by both: Minecraft#func_147115_a(boolean) [private] and Minecraft#func_147116_af() [private] - the Minecraft method runTick calls these on left click...
  3. Look at ItemRecord.class as Diesieben suggests. It has methods to do what you want when overridden,
  4. Try handling the FMLMissingMappingsEvent event.
  5. I'm pretty sure I said that.
  6. You have mixed up your Gui and Container classes badly. I suggest you study a tutorial or two on Gui's and Container's and which does what and on which side. Then, on the server return up your Container (not the Gui.) Also, look at any other vanilla TE with a gui. transfer stack in slot just can mostly be copied from the crafting table or furnace code with slight modifications for slot numbers.
  7. Logs or it didn't happen.
  8. protected = freely accessible to class and any subclass of declaring class
  9. If you have an IDE, learn to use it.
  10. You know hot to read this error message?
  11. Ummm... nope. Why elsewould you be advised that you forgot to "register" them?
  12. You can use a higher number in your registerWorldGenerator so your structures generate after trees and such. I think that might help, but only if you destroy foliage and trees that are in your way.
  13. Are you giving example code to help others, or are you having an error? What is the actual problem if there is one?
  14. You can do the hard thing and create a BigItemStack class which allows you to stack up to 32767 items, but that will require you to handle all of the data handling and nbt writing, crafting recipe handling, furnace recipes, container code, inventory gui, and other things specifically. It's a lot of code to write for one minor adjustment. However, it can be done.
  15. Have you tried using them and putting a put of logging to see what happens? If not, why not?
  16. In your code above, the struckout text does not match up. Why cast to a class and then assign the cast to a different class? That is just plain wrong! The underlined text also does not match. What method are you calling? Include that code so we can see what the problem is. The method renderBlockYour() does not seem to be called at all. Why did you include it?
  17. You still shouldn't be putting it in the constructor. That was the first thing I said. The OP seems to want to ignore the sage advice about that, since it works so far. The fun will come when he has to play nice with other mods and the emails and complaints he will get!!! Well, live and learn.
  18. As far as opening a GUI, the server side has to tell the client side to open the GUI while the server uses the Container. Packets... use them.
  19. Is this a problem running on Java 8 then? Did you try the older Java?
  20. The video is decent as far as extreme slam-bang coding goes. However, he could have used half the code by utilizing ForgeDirection properly, creating submethods for partial rendering, using EnumSet for his connections, and decent looping techniques. All in all, it's pretty straightforward though.
  21. You're overthinking it. Your mod's constuctor is not the place to register anything or create anything or add recipes for anything. Also, do not use your mod's static initializers for new blocks, or items. Learn about and use the FML events for your Mod preinitialization, initialization, and post-initialization. That is where your block, items, recipes, etc. are set up.
  22. Above is a spelling fail! The words are actually, "override that". Please read it again the proper way.
  23. Anytime you elect to remove an @Override annotation, you break your code. Seriously, is this not posted multiple times on these boards? If you have to remove that, it means you are no longer overriding any superclass method, and your method is likely never to be called or used at all. The superclass method will still be called in every case that you don't specifically call your method on an instance of your object. Overriding methods is basic java. If you do not understand how to override a method, learn java first. The IDE does not teach java and it will only offer to remove syntax errors, it cannot "fix" your code or even figure out what you want to do.

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.