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. if(nbt == null) Duh.
  2. What happens if the NBT tag is null there?
  3. ...check the stack's metadata and either return a new item stack or not?
  4. I do too. Looking at the HTML it's a "warn_watch" field, so I take it to mean that the moderators are watching his posts closely.
  5. @Override public ItemStack getContainerItem(ItemStack stack) { //do something }
  6. You're still converting from an EntityLiving to a UUID and back.
  7. So you get the entity (yay! you have the entity!) then get it's unique ID, so you can pass that to getEntityFromUuid , and get the entity. Wha?
  8. Draco18s replied to a post in a topic in Modder Support
    Try looking at how vanilla blocks do it. Mind, it'll be a few calls down the method chain hierarchy, but it should at least be similar to what modders need to do.
  9. Possibility: Your model's vertices aren't quite lined up with each other, so the front face and the side face are ever so slightly offset in one direction from each other (ie. their edges are not congruent) so floating point math makes you see between them sometimes.
  10. You mean about 32,000? Feed The Beast runs up against that limit all the time.
  11. I would make a custom button class for the large keys (1,3,5,7 in your image) that only check the lower portion of their bounds for mouse-inside. You wouldn't be able to click inside the narrow bits between the black keys, but it would prevent the double-press.
  12. You've hit the age old question of "how do I send data from one computer to another?" Packets.
  13. This @SubscribeEvent public void InteractItem( PlayerInteractEvent.RightClickItem event) { if (ConfigHandler.noEating) event.setCanceled(true); } In no way knows if the player's died recently. All it does is say "is the config option to disable eating after death enabled? yes? ok, no eating." public EnumAction getItemUseAction(ItemStack stack) { return EnumAction.EAT; } And this doesn't go there. This is an ItemStack method you've thrown into your event handler because....why?
  14. Check to make sure that the pixel adjacent to that one in your texture is actually 100% transparent.
  15. No, it just treats them as identical. To change x.JSON to x.json you first have to change it to x.notjson so that it thinks that it actually changed.
  16. Yes. That said, these: ItemStack.stackSize and ItemStack.loadItemStackFromNBT() Got tweaked a bit. StackSize is now modified through getter and setter methods and loadItemStackFromNBT was renamed.
  17. Looks like a crash in pure vanilla code. I don't see anything in your code that could do that either. Could be a vanilla or Forge bug.
  18. It does, but that doesn't mean that method that returns a RayTraceResult checks against entities (or vice versa).
  19. While that may be, you're still not going to get help here, as help here is offered for Forge, not Bukkit, not raw MCP, and not coremodding.
  20. Then why are you here? These are the Forge forums, not the MCP forums.
  21. You have to import it.
  22. Maybe you should check for instanceof before casting.

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.