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. I'd suggest trying to figure out how the "Glowing" effect in 1.9 gets rendered and backporting it.
  2. IIRC there is ItemStack#areStacksEqual which does item stack comparison. But if you want to check against item and item only then, ItemStack#getItem will suffice.
  3. It's in a god damn CSV file, its super easy to open that up in Excel and hit Ctrl-F. The hard part is remembering where that CSV file is located. C:\Users\[username]\.gradle\caches\minecraft\de\oceanlabs\mcp\mcp_snapshot\[snapshot num]\fields.csv
  4. This. Shift-Click with blocks by vanilla bypasses block activation and places the block.
  5. You want to look at canBlockBePlacedAt BlockRedstoneWire uses it.
  6. They're are two options here. Option 1 (easy, fast): render the block twice in both pass 0 and pass 1 (Google "multi pass blocks"). Option 2 (hard, beautiful): make a custom TextureAlasSprite class that overrides the load method. I've made a few posts here with fully functional code, but be aware that crashes/bugs that result from handling the icon loading yourself are very difficult to debug because the problem occurs much father down the line, obscuring the true error. My code also includes a colorize method (works on the HSV spectrum).
  7. I also have code here for making fireballs that are shot off based on lookvec.
  8. He just told you: That's a parent class and a method.
  9. There is another set of fields called acceleration.
  10. By all means, do whatever. Just keep in mind that every entity handles its own movement. That is, gravitational acceleration is handled in multiple places, depending on the entity type.
  11. You mean like the real life effect that occurs do to air resistance and really, actually, exists and effects all objects? https://en.m.wikipedia.org/wiki/Terminal_velocity
  12. I think you didnt get my point. I am doing this for fun. Testing different accelerations. It is true that entities have downward motion but i want to simulate the gravity on earth at minecraft. Shortly i want to see how will the minecraft world change if i change the motion value. You missed my point. The downward acceleration already experienced is identical to that of Earth's. It would make sense if you wanted to fiddle with those values, sure, but making them "Like Earth" involves "Doing Nothing."
  13. Its an event not a method, and completely useless to you. Both as previously stated and because when it does fire, it fires when the item is immediately removed from the player's inventory. That is, 3 blocks away from the water.
  14. ...Entities already have gravitational downward motion..?
  15. Its a quad that always faces the camera. Sometimes it might have a restricted rotational axis (such as only rotating around the y-axis). Its relatively easy math to work out, a little trig, based on the player's lookVec.
  16. More specifically: I love how you add a translation after you finish drawing.
  17. Fancy textures and camera-facing billboards.
  18. I realize this has nothing to do with your question, but what is with people moving all of their FML event code into the common proxy? All I can figure is that you guys all read some tutorial where the author did that "for reasons" that were never explained just because it was their style.
  19. Yes. Why don't you want leaves to render the side, though?
  20. ASM is very powerful and very hard to think in terms of writing. Everyone who does it inserts as extremely few bytes as possible, usually an INVOKE_VIRTUAL call to a static method that you can write in regular Java.
  21. Some of the names MCP has given things are just weird.
  22. Solution 3 is writing new classes and replacing things when the player opens a GUI. You'd have to write a new ChestGUI, new WorkbenchGUI, FurnaceGui, InventoryGUI, and so on. Solution 1 will always show the additional text, doesn't matter who's gui, where it is, anything. Just because of what you're trying to do, I actually would recommend looking into ASMing the item renderer function. It's not only the simplest, but most effective.
  23. Well, you want mode 7 because that's GL11.GL_QUADS which is squares. Your problem is likely that you're trying to draw this square at a location in the world* and it's huge. Also note that a quad is only visible from one side. In this case, the north side. If you're trying to draw to pixel locations on the screen,* then it would be pointed away from the camera. *I'll admit that I'm not entirely sure what getWorldRenderer() does.
  24. < and > are used to denote arrays. You also didn't include the actual configuration line you are using, new Configuration isn't important at all.

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.