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. You can't just do this in an arbitrary function. You have to do this during a render event.
  2. Or use the logger that Forge gives you during the event lifecycle....
  3. The error is not in the JSON or the PNG or the registration: See:
  4. Two, actually: isFullCube and BlockRenderLayer.
  5. Lhykos: that says whether or not this block renders sides, not adjacent blocks. This is what's missing: @Override public boolean isOpaqueCube(IBlockState state) { return false; } Also, make sure you annotate all override methods with @Override
  6. Because I'm an abrasive jerk and I don't actually know everything, despite appearances on this forum. I've never touched paintings and don't feel like doing the research for you.
  7. Hell if I know. Probably not.
  8. Casting isn't hard. You can only cast an object to something that it already is.
  9. Actually they don't. Entities that aren't living don't even have an HP field. When they take any damage at all, even if that damage is 0, they die.
  10. It is new with 1.11, yes. It has been recommended since at least 1.10, though I'm not sure when.
  11. Look at the code for the spread players command.
  12. Well, you're looking for a field named inventoryHandsDropChances, so search the fields.csv file for "inventoryHandsDropChances"
  13. And you would be wrong. You can use an IModel implementation to get the Item's model and bake it into your block. There's a few forum threads on this already.
  14. I don't think so. You could, however, spawn an invisible armor stand and that would work.
  15. On the page I linked: download the fields/methods csv files. Open it in Excel or other spreadsheet program. Search for the thing you want the SRG name for. Copy the SRG name. There's also an IRC interface, but I don't use it.
  16. A few things: Don't ever use reflection inside a tick or update event. That is, the "go find this by string name" because it's expensive as hell. Get the field once, store it in a class field for later. Two, look at the ReflectionHelper class. It'll make this easier. Three, that will only work in dev, you'll need to use MCP Bot to get the SRG name so that it works when compiled, too.
  17. Crash is useless without your Item class.
  18. Also, don't use the ModelMesher. Use ModelLoader.setCustomModelResourceLocation.
  19. You're trying to register item rendering stuff during the Init event. You can't do this, it is too late. You must register textures during preInit.
  20. offset the overlay from the block position by a tiny amount. 0.001 is sufficient.
  21. That's because each chunk is baked down to a single 3D object and rendered. The z-fighting doesn't occur because the overlay and the cobblestone are in the same mesh and it gets simplified to remove unneeded faces. But when you render across a chunk boundary, both faces exist in the same space and OpenGL has to render both of them, but can't z-sort them.

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.