Jump to content

chasingfire_hpps

Members
  • Posts

    99
  • Joined

  • Last visited

Posts posted by chasingfire_hpps

  1. I understand why you say modding is not the best way to learn java. I do look at java tutorials however some are not the easiest to learn from and I admit I should have looked at more. But, I enjoy modding and I have learned from it.

  2. I am getting an error here:

    par2World.spawnEntityInWorld(new entityplasmabolt(par2World, par3EntityPlayer));

    The constructor entityplasmabolt(World, EntityPlayer) is undefined

    Code:https://github.com/chasingfirehpps/Future-weapons-mod

    Any help is appreciated!

  3. I've been trying to render my entity throwable(again), now in 1.7.2 now Minecraft is crashing any thoughts? Thanks for any help.

    code:

    https://github.com/chasingfirehpps/Future-weapons-mod

    crash report:

     

     

    ---- Minecraft Crash Report ----

    // There are four lights!

     

    Time: 5/21/14 6:04 PM

    Description: There was a severe problem during mod loading that has caused the game to fail

     

    cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: FutureWeaponsMain.ClientProxy

    at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76)

    at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)

    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

    at com.google.common.eventbus.EventBus.post(EventBus.java:267)

    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209)

    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)

    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

    at com.google.common.eventbus.EventBus.post(EventBus.java:267)

    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)

    at cpw.mods.fml.common.Loader.loadMods(Loader.java:489)

    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:202)

    at net.minecraft.client.Minecraft.startGame(Minecraft.java:520)

    at net.minecraft.client.Minecraft.run(Minecraft.java:890)

    at net.minecraft.client.main.Main.main(Main.java:112)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    Caused by: java.lang.ClassNotFoundException: FutureWeaponsMain.ClientProxy

    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

    at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:270)

    at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59)

    ... 33 more

    Caused by: java.lang.NullPointerException

    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180)

    ... 39 more

     

     

    A detailed walkthrough of the error, its code path and all known details is as follows:

    ---------------------------------------------------------------------------------------

     

    -- System Details --

    Details:

    Minecraft Version: 1.7.2

    Operating System: Windows 8 (amd64) version 6.2

    Java Version: 1.7.0_45, Oracle Corporation

    Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

    Memory: 899861352 bytes (858 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

    FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 4 mods loaded, 4 mods active

    mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

    FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed

    Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed

    futureweapons{1.0} [futureweapons] (bin) Unloaded->Errored

     

     

  4. still isn't working. I made the modID futureweapons

     

    changed code:

     

     

    package FutureWeapons;

     

     

    import Items.ItemPlasmaRifle;

    import net.minecraft.item.Item;

    import cpw.mods.fml.common.Mod;

    import cpw.mods.fml.common.Mod.EventHandler;

    import cpw.mods.fml.common.event.FMLPreInitializationEvent;

     

     

    /**

    * This @Mod annotation tells forge that we are creating a new mod. Without this, forge wont

    * find your mod. This takes 2 values, a modid, which is a "name" for your mod. This cant be the

    * same for ANY mod. So find a name which is new. Version is the current mod version.

    */

    @Mod(modid = Reference.MODID, version = Reference.VERSION)

    public class FutureWeaponsMain

    {

     

     

      public static Item Plasma_Rifle;

    @EventHandler

    public void preInit(FMLPreInitializationEvent event)

    {

            //Block handlers, handles all blocks

     

     

     

            //Item handlers, handles all items

    Plasma_Rifle = new ItemPlasmaRifle();

     

    RegisterHelper.registerItem(Plasma_Rifle);

    Plasma_Rifle = new ItemPlasmaRifle().setUnlocalizedName("ItemPlasmaRifle").setTextureName(Reference.MODID + ":plasmarifle");

     

     

     

            //Register handler, adds all the recipes

     

    }

    }

     

     

  5. That didn't work

    code:

     

     

    package FutureWeapons;

     

     

    import Items.ItemPlasmaRifle;

    import net.minecraft.item.Item;

    import cpw.mods.fml.common.Mod;

    import cpw.mods.fml.common.Mod.EventHandler;

    import cpw.mods.fml.common.event.FMLPreInitializationEvent;

     

     

    /**

    * This @Mod annotation tells forge that we are creating a new mod. Without this, forge wont

    * find your mod. This takes 2 values, a modid, which is a "name" for your mod. This cant be the

    * same for ANY mod. So find a name which is new. Version is the current mod version.

    */

    @Mod(modid = Reference.MODID, version = Reference.VERSION)

    public class FutureWeaponsMain

    {

     

     

      public static Item Plasma_Rifle;

    @EventHandler

    public void preInit(FMLPreInitializationEvent event)

    {

            //Block handlers, handles all blocks

     

     

     

            //Item handlers, handles all items

    Plasma_Rifle = new ItemPlasmaRifle();

     

    RegisterHelper.registerItem(Plasma_Rifle);

    Plasma_Rifle = new ItemPlasmaRifle().setUnlocalizedName("ItemPlasmaRifle").setTextureName("Future Weapons:plasmarifle");

     

     

     

            //Register handler, adds all the recipes

     

    }

    }

     

     

    folder setup:

    C:\Users\ijhpp_000\Desktop\forge 1.7.2\src\main\resources\assets\Future Weapons\textures\items

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.