-
Gun Mod
this is were i define the damage in the psitolmag class public float getDamage() { return 6.0F; }
-
Gun Mod
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
-
Gun Mod
wow thanks guys gonna try it now
-
Gun Mod
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
-
Gun mod fatal error
i changes the .getname because that is what crashes it
-
Gun mod fatal error
well it is the .getname what is crashing it but if i change it still crashes
-
Gun mod fatal error
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); }
-
Gun mod fatal error
sorry the first time i out ongunfired instead of gun fired
-
Gun mod fatal error
it was .fire gun as i have already said
-
Gun mod fatal error
http://pastebin.com/mFSiUcsx there is the crash
-
Gun mod fatal error
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
-
Gun Mod Help
there you go http://pastebin.com/LDtEpxH4
-
Gun Mod Help
okay so here is everything related to reload key handler http://pastebin.com/TWUjUmrT reload packet http://pastebin.com/qFmXrNyE
-
Gun Mod Crash
fixed thanks guys
-
Gun Mod Crash
okay so it is the .getname
IPS spam blocked by CleanTalk.