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 because you're done with it does not mean the topic needs to be locked. Look at the rest of this forum, how many locked topics do you see?
  2. And explain what you mean by "doesn't work."
  3. Nothing about that says it is fired during world generation it says it is fired on the TERRAIN_GEN_BUS.
  4. There's an existent AI task for that too.
  5. Thread: You: [no code] lars: post your code jeffry: you need to do X you: "here's my code!" me: did you read this? (Quoting X.)
  6. And sync the data to the client, of course.
  7. There also shouldn't be empty stacks in the drops array.
  8. No, what you need to do is extract the 2 bits of metadata. EnumFacing.getHorizontal(meta&3)
  9. *cough, did you read this, cough*
  10. return this.getDefaultState().withProperty(FACING, EnumFacing.getHorizontal(meta)) This line won't work if meta > 4 (which BARREL and SPIGOT make it be)
  11. Basically, you'll collide from some directions and not others and general wonkiness. The only, the only, direction it is safe to extend a collision box outside the 1x1x1 cube is +Y and even then only an extra half-block.
  12. If your block has a collision bounds greater than 1x1x1 you're in trouble there too: it won't work either. Getting fences to work properly was a problem Mojang took several versions to get right.
  13. It is a little messy, and facings can be mitigated. You can convert a facing (EnumWest) into x and z offsets. "Forward" gets translated to facing.offsetX() + facing.offsetZ() because a facing will only ever have one of those values as non-zero. For right, you use facing.rotate(UP).offsetX() + facing.rotate(UP).offsetZ() (you can store the rotated facings as their own variables as well).
  14. The functionailiy will continue to exist as Minecraft evolves, but it is possible that the method does get removed and placed somewhere else. It will depend on how Mojang continues to work with the IBlockState format.
  15. Basically not really. The method is marked deprecated which means do not call this method. You should still override it to get the desired behavior.
  16. Well, with a well-defined structure I wouldn't use getAllInBox. I'd go "this is the core, so at x+1 I should find BlockY, at x+2 I should find... And do a big query that way.
  17. FastTESR is still slower than IBakedModel, but it's more performant than a regular TESR
  18. ModelLoader.setCustomModelResourceLocation(item, metadata, modelResourceLocation); Hmm...
  19. For this you should use a FastTESR. There is an animation API in JSON, but it's limited.
  20. Why do you need a TESR (fast or otherwise) to render a block? Use the JSON model system.
  21. Maybe you should ask the mod developer. We here don't even know what mod you're using because you conveniently left that out, must less know anything about it.
  22. public/private change wasn't necessary, it was that the local-scope declaration overrode the parent scope declaration.
  23. repair.isItemEqual(new ItemStack(RepairItem)) can be simplified torepair.getItem() == RepairItem Except that RepairItem is always null because you did this: Item RepairItem = repairitem; That variable is local and discarded as soon as the constructor finishes and theprivate Item RepairItem;declared is left undefined.
  24. 1.7.10 is no longer supported here.
  25. There are a lot of things I don't know. I didn't start programming on Java so I generally take what I do know and make it work, it isn't until later that someone says, "hey, there's an easier way."

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.