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. 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
  2. I think he's trying to use Reflection and needs the SRG name. http://export.mcpbot.bspk.rs/
  3. Post the crash log.
  4. No, the question I'm asking is: Why do you have a HashMap at all?
  5. Do not use event.getSide() Use proxies.
  6. 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).
  7. Did you set your item to override hasContainerItem and getContainerItem?
  8. hasContainerItem and getContainerItem
  9. this.damageVsEntity(100) ?
  10. ...You don't? You need to implement the method.
  11. 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.
  12. What part are you having trouble with? What have you tried?
  13. Look at the event class and figure it out.
  14. You're still trying to get an EntityPlayer from nowhere.
  15. 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.
  16. Straight decompiling is insufficient. You need to deobfuscate. What you are seeing is SRG names and the development environment operates on MCP names.
  17. ...What are you doing there? No really, I'm confused. Why are you doing that?
  18. if(event.souce == Damage.wither && event.entity is EntityPlayer && player.getEquipment == MyAntiWitherChest) { event.setCanceled(true); }
  19. *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?
  20. player.addPotionEffect(new PotionEffect (Potion.getPotionById(16), 220, 0)); ? Seriously, how hard is it to add the parameters you removed back in? Except you'd replace the hardcoded ID with MobEffects as mentioned earlier.
  21. The static keyword is almost certainly not what you want.
  22. Would also have been easy to name your thread with a title relating to your problem, rather than "This is simple."
  23. Good job, you created an identifier. You might want to set it equal to something. http://stackoverflow.com/questions/2614072/java-define-terms-initialization-declaration-and-assignment
  24. Correct. The faces you outlined are not being rendered at all: they are facing away from the camera and are being culled. Their back-faces (facing towards the camera) don't exist unless you explicitly tell them to.

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.