Skip 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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Well. What Type is renderManager ?
  2. This does not set the inventory stack to null, it sets your local variable to null. ItemStack myStack = inventory.getStackInSlot(i); //whatever myStack = null;
  3. It might not crash but the log will contain a message that it could not find a texture.
  4. Well, I know that startDrawingQuads(); changed to startDrawing(7); (IIRC. Also, the 7 is the integer value of.... GL11.GL_QUADS if I got that right). Now, look inside the WorldRenderer class and see if you can find the name for the other method yourself.
  5. [FML/]: Exception loading model um:item/unstable_ore with loader instance, skipping com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 5 column 6 Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 5 column 6 Your JSON is malformed.
  6. Use multiple passes and several textures. That's how my artifacts mod does it. https://github.com/Draco18s/Artifacts/tree/master/main/java/com/draco18s/artifacts/
  7. Do you ever call setTextureName() ? Did you include the error log worth your post?
  8. Look at name tags
  9. Weight on enchantments is how common it is. If there were only 3 enchants and they had weights: A: 1 B: 2 C: 4 Then the odds of getting B would be 28%, double that of A (14%) and half that of C (57%) For an available ID, there is not a function for that as far as I am aware. Mine are config-valued.
  10. https://howtoprogramwithjava.com/java-cast/
  11. Dimension ID 7, huh. Did you recently add any mods to an existing world? The usual culprit is TwilightForest, which uses a config-value for its dim ID, but if its added to a save that already had Mystcraft and Mystcraft already registered dimID 7 (which would be the sixth age, IIRC) then it'll conflict. Also, XCW doesn't read his Minecraft Forum thread any more, you'd have been better off posting at http://xcompwiz.com/forum/index.php
  12. The problem is that he doesn't know how to use world.getBlockTileEntity() and cast it to his own object, then call a method on it.
  13. https://docs.oracle.com/javase/7/docs/api/java/lang/ref/WeakReference.html It's a generic.
  14. Correction: You debugged that area of the program and found no oddities. You have not debugged the calls to WorldGenFeature .generate()
  15. Sync should never be two way, it should only be server -> client
  16. See that "//ONLY PLACE BLOCK ONTOP OF WATER/IN AIR" chunk? Make it look for your own block too, and if it finds it, update the integer in the TE.
  17. https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/entity/TileEntityDisplayPedestal.java#L205-L243
  18. Well, your read/write methods are saving sides and the energy, but not anything else. I also wouldn't trust "sides" to be sufficiently unique to avoid collision with something else. As for your log method, try using System.out.println() instead, I am not sure what the LogHelper class is and how it works, but a line printed directly to the console should show up.
  19. And this is why I haven't updated any of my mods. <3
  20. Just to jump in real quick. While not required, there are totally legitimate reasons to do untyped code blocks. I was working on something just the other week where I wanted to tab stuff in just to reduce the mental gymnastics necessary to understand what it was doing, and the IDE kept untabbing it, so I said "fuck it, code block." Incidentally, code blocks also add another level of local scope. int v = 1; { int v = 2; System.out.println("v is " + v); //prints 2 }
  21. Yeah, do that. Without it your post is useless and we can't help you. You may as well have waited to post until you got home.
  22. Turns out I misremembered something. doExplosionB(bool) is what actually destroys the blocks, there's no flag for it, it just does it.

Important Information

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

Account

Navigation

Search

Search

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.