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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Just to clarify things: You are using a rational database (MySQL, etc) hosted independently of any server to store block information (for some purpose that is irrelevant here)?
  2. Fair warning: You're going to need to learn about concurrency.
  3. Reading, dude, seriously, do it sometime.
  4. Congratulations on never being taken seriously ever.
  5. Ok, that's fine. Sometimes you find that it's an object you already have access to (e.g. if it had been of type WorldRenderer that would have been handy). The point is to see where you can get an instance, as you shouldn't need to create one. Where does RenderSnowball get its RenderManager from? Right-click -> References -> Entire Solution
  6. Well. What Type is renderManager ?
  7. This does not set the inventory stack to null, it sets your local variable to null. ItemStack myStack = inventory.getStackInSlot(i); //whatever myStack = null;
  8. It might not crash but the log will contain a message that it could not find a texture.
  9. 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.
  10. [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.
  11. 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/
  12. Do you ever call setTextureName() ? Did you include the error log worth your post?
  13. Look at name tags
  14. 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.
  15. https://howtoprogramwithjava.com/java-cast/
  16. 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
  17. 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.
  18. https://docs.oracle.com/javase/7/docs/api/java/lang/ref/WeakReference.html It's a generic.
  19. Correction: You debugged that area of the program and found no oddities. You have not debugged the calls to WorldGenFeature .generate()
  20. Sync should never be two way, it should only be server -> client
  21. 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.
  22. https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/entity/TileEntityDisplayPedestal.java#L205-L243

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.