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.

thatbritshgamer

Members
  • Joined

  • Last visited

Everything posted by thatbritshgamer

  1. this is were i define the damage in the psitolmag class public float getDamage() { return 6.0F; }
  2. okay so i have narrowed it down to this being wrong if (player.inventory.func_146028_b(gun.getMagazineItem())) { nbt.setInteger("remainingAmmo", magazine.getMaxDamage()); if (!player.capabilities.isCreativeMode) { player.inventory.func_146026_a(gun.getMagazineItem()); } } and i need to know what these are 146028_b 146028_a
  3. wow thanks guys gonna try it now
  4. So basically i made a Gun mod, but through A series of crashes i Lost the work thank god i had a compiled version on my drop box and have managed to decompile it. So now i need help to finish it off so basically the problems when i try to reload i crash and on the screen says lost connection fatal error has occurred and when i shoot the gun takes bullets but does not damage the mob. and here is all my code on github https://github.com/britishcoding/gun-mod/tree/master/gun
  5. i changes the .getname because that is what crashes it
  6. well it is the .getname what is crashing it but if i change it still crashes
  7. okay so now i have removed this method but now the gun consumes ammo but does not fire { if ((!world.isRemote) && (stack != null)) { boolean silencerAttached = hasAttachment(stack, MainRegistry.content().silencer.getName()); String sound = silencerAttached ? getSilencedSound() : getFireSound(); if (sound != null) { world.playSoundAtEntity(player, sound, silencerAttached ? 0.5F : 1.0F, 1.0F); }
  8. sorry the first time i out ongunfired instead of gun fired
  9. it was .fire gun as i have already said
  10. http://pastebin.com/mFSiUcsx there is the crash
  11. ok in my gun shoot packet i crash and i have pinpointed it to onGunFired help me here is my item gun and packet shoot http://pastebin.com/WT5gbjSS http://pastebin.com/0hAEFHSF
  12. there you go http://pastebin.com/LDtEpxH4
  13. okay so here is everything related to reload key handler http://pastebin.com/TWUjUmrT reload packet http://pastebin.com/qFmXrNyE
  14. fixed thanks guys
  15. okay so it is the .getname
  16. when i put this in the code i get errors with c s n help kinda a noob at java
  17. could you help me have no idea why it is a npe
  18. When i hold the gun the game crashes help. crash http://pastebin.com/ZfTpLtat Item Gun http://pastebin.com/tftMKpTj Client Tick Handler http://pastebin.com/pGWEakLr
  19. Hello when minecraft 1.7.10 come out i made a simple gun mod unfortunately through a series of crashes on my pc and loosing all my data i managed to get my mod back but it was compiled so i couldn't update it now i have decompiled it but when ever i press r to reload i get a fatal error any way here is all my modding files. https://www.dropbox.com/s/ld0tdg00o36cl9d/gun.rar?dl=0
  20. my client class is not initializing main class http://pastebin.com/ECCVZznq client class http://pastebin.com/wDujERrs
  21. here is the main class were i register them http://pastebin.com/38GE05An and when i press r the ammo dispersers like its supposed to
  22. basically just updated my mod but the reload of the gun s working but not the gun firing basically here are the classes ItemGun http://pastebin.com/d2EdRtJd packet fire the gun http://pastebin.com/yzytSK4W

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.