Everything posted by thatbritshgamer
-
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
-
Gun Mod Crash
when i put this in the code i get errors with c s n help kinda a noob at java
-
Gun Mod Crash
could you help me have no idea why it is a npe
-
Gun Mod Crash
thanks
-
Gun Mod Crash
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
-
Gun Mod Help
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
-
Client class not working
my client class is not initializing main class http://pastebin.com/ECCVZznq client class http://pastebin.com/wDujERrs
-
Gun not firing but reloading works
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
-
Gun not firing but reloading works
please help
-
Gun not firing but reloading works
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
-
Gui Container background not drawing
thanks for the help
IPS spam blocked by CleanTalk.