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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. A few things your modid should be all lowercase, and the idea of a CommonProxy doesn't make sense. For more information take a look at Code Style #1. Your mod not loading is probably due to you not changing your Classpath in the run configurations.
  2. You can recreate the abstraction of getField and setField if you wish, but the premise is you need to override detectAndSendChanges and updateProgressBar. Your detect and send changes will iterate through the listeners field and then call sendWindowProperty.
  3. I don't see doesSideBlockRendering method in your GlassSlab class. You need to override this method and return false.
  4. Push you updated code, because what I said worked for me.
  5. Your gonna want to override doesSideBlockRendering to fix the seeing through the world, not sure if shouldSideBeRendered needs to be overriden anymore, but it is less checks run if you do. And then override getLightOpacity and return 0 this will fix a lighting glitch you will have/do have.
  6. You do this because it is what Minecraft uses, directly calling OpenGL could mess with the GLStateManager. Maybe, but does it work with the glass completely?
  7. Either you didn't push your code to github or you didn't do what I said.
  8. Your model doesn't say your modid for the texture.
  9. This doesn't make any sense, when you hosting and playing on the same machine you should have the theoretical best connection.
  10. And this happens when you run it on a completely separate machine as well?
  11. So like Block breaking and placing latency? Then it is probably a problem with your internet.
  12. What kind of lag are we talking about?
  13. That's partially right, now you just need to pass it into the get method on your list that has the Sounds in it.
  14. Create a new Random call nextInt(listLength) and then pass the int returned from that into the get method of List/ArrayList
  15. List#get(Random#nextInt(List#size())) Or in simpler terms I assume you know how to get an Item out of a ArrayList, so you need to generate a psuedo-random number with the Random class that has a maximum of the lists length.
  16. How much code for this do you know, have you created the item, have you overrided the method that fires when the item is right clicked, do you know how to play a sound?
  17. Well if it's telling you to remove the override you don't have the right parameters look in BlockSlab they override it.
  18. Simply return true and that should work. In your GlassSlab class.
  19. You will need to override shouldSideBeRendered
  20. Forge didn't change the BlockGlass code at all. All of the code that we are looking at in the net.minecraft package is decompiled minecraft code that has been edited to be readable by the MCP team.
  21. Try using this instead. GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO); Also switch to using GLStateManager instead of direct OpenGL calls.
  22. Not exactly sure what you are trying to say, but if you look in your minecraft jar file you will see the package is net.minecraft... Forge does patch the Block class, but that doesn't mean it isn't Minecraft code. The only thing forge did was add a few fields and methods and made it implement IForgeRegistry.

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.