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. Its funny how you don't override writeToNBT or readFromNBT and still expect your data to get saved.
  2. Your package name should include your mod name and your name. e.g. I use package com.draco18s.artifacts for one of my mods (modID is "artifacts"). Although I technically shouldn't use "com.draco18s" unless I actually own "draco18s.com"
  3. The last attack shouldn't reset the hurt time, just FYI
  4. And what code is calling this code?
  5. Technically speaking, you don't have to get that complex. Its only if you want to be able to have 3x3 crafting bench recipes. If your goal is to turn a "N-stack of Foo" into a "Y-stack of Bar" you can get away with a lot less. Container Slot GuiContainer IGuiHandler CraftingManager (this is just a class that stores the hashmap of ingredients -> results, allows you to add recipes and get recipe results).
  6. Note: For isLadder to work, two things must be true about your block: 1) Your block must be less than a full cube in the X-Z directions (player must be able to be inside the the standard block volume) 2) Your block must be solid
  7. I think he's trying to use Reflection and needs the SRG name. http://export.mcpbot.bspk.rs/
  8. Post the crash log.
  9. No, the question I'm asking is: Why do you have a HashMap at all?
  10. Do not use event.getSide() Use proxies.
  11. I think that method got removed in 1.9, but if you look at the bow you should be able to find the replacement code (its just a loop over the inventory looking for the right item).
  12. Did you set your item to override hasContainerItem and getContainerItem?
  13. hasContainerItem and getContainerItem
  14. this.damageVsEntity(100) ?
  15. ...You don't? You need to implement the method.
  16. Its right there in the error: "lambda expression sare not supported in -source 1.6" You aren't compiling for Java 8, you're compiling for Java 6.
  17. What part are you having trouble with? What have you tried?
  18. Look at the event class and figure it out.
  19. You're still trying to get an EntityPlayer from nowhere.
  20. Well, an ArmorTickEvent isn't likely to include a damage source is it? Also, you can't just add parameters to an event function and expect them to get filled in magically. Not to mention that your onArmorTick method has LivingAttackEvent as its event object.
  21. Straight decompiling is insufficient. You need to deobfuscate. What you are seeing is SRG names and the development environment operates on MCP names.
  22. ...What are you doing there? No really, I'm confused. Why are you doing that?
  23. if(event.souce == Damage.wither && event.entity is EntityPlayer && player.getEquipment == MyAntiWitherChest) { event.setCanceled(true); }
  24. *Facepalm* What if you do this in your preInit: myStoneItem = new ItemClass(Blocks.stone); myWoodItem = new ItemClass(Blocks.planks); What do you expect to happen?

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.