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

  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

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.