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. And sync the data to the client, of course.
  2. There also shouldn't be empty stacks in the drops array.
  3. No, what you need to do is extract the 2 bits of metadata. EnumFacing.getHorizontal(meta&3)
  4. *cough, did you read this, cough*
  5. return this.getDefaultState().withProperty(FACING, EnumFacing.getHorizontal(meta)) This line won't work if meta > 4 (which BARREL and SPIGOT make it be)
  6. 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.
  7. 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.
  8. 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).
  9. 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.
  10. 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.
  11. 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.
  12. FastTESR is still slower than IBakedModel, but it's more performant than a regular TESR
  13. ModelLoader.setCustomModelResourceLocation(item, metadata, modelResourceLocation); Hmm...
  14. For this you should use a FastTESR. There is an animation API in JSON, but it's limited.
  15. Why do you need a TESR (fast or otherwise) to render a block? Use the JSON model system.
  16. 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.
  17. public/private change wasn't necessary, it was that the local-scope declaration overrode the parent scope declaration.
  18. 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.
  19. 1.7.10 is no longer supported here.
  20. 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."
  21. Cool. Could have used that four years ago, oh well.
  22. This is old and wrong. 20 armor will stop 8 of 20 damage (40%). The more damage you're taking in a single hit, the less effective your armor is.
  23. You mean as: effect.hearts=\0x2665 ? Orr...?
  24. The point was to allow the display to be customizable because lang files are resource-pack-capable.
  25. http://minecraft.gamepedia.com/Armor#Armor_Toughness

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.