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.

benjaminblue42

Members
  • Joined

  • Last visited

Everything posted by benjaminblue42

  1. What else must I do? I went everywhere and that method was passed on his tutorials, Can you please tell me what I must do? I can pass a string there but that won't really help since I am not using my main class for anything
  2. Can someone please help me with my textures? My folders are: src\main\resources\assets\daffiergems\textures\items and src\main\resources\assets\daffiergems\textures\blocks My main class's code is: package net.minecraft.daffiergems; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.daffiergems.blocks.DaffierGemsBlocks; import net.minecraft.daffiergems.gems.DaffierGemsItems; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Main.MODID, version = Main.VERSION) public class Main { public static final String MODID = "DaffierGems"; public static final String VERSION = "1.0"; @Mod.EventHandler public void Preinit(FMLPreInitializationEvent event) { DaffierGemsTabs.loadTabs(); System.out.println("[DaffierGems]Creative Tabs loaded in!"); DaffierGemsItems.loadGems(); System.out.println("[DaffierGems]Gems Loaded in!"); DaffierGemsBlocks.loadBlocks(); System.out.println("[DaffierGems]Blocks Loaded in!"); } @Mod.EventHandler public void init(FMLInitializationEvent event) { System.out.println("[DaffierGems]Mod loaded in sucessfully!"); } } My item's class is: package net.minecraft.daffiergems.gems; import net.minecraft.daffiergems.DaffierGemsTabs; import net.minecraft.daffiergems.Main; import net.minecraft.item.Item; import cpw.mods.fml.common.registry.GameRegistry; public final class DaffierGemsItems { public static Item gemGarnet; public static Item gemAmethyst; public static Item gemAquaMarine; public static Item gemAlexanderite; public static Item gemRuby; public static Item gemPeridot; public static Item gemSaphire; public static Item gemPinkTourmaline; public static Item gemTopaz; public static Item gemZircon; public static void loadGems() { gemGarnet = new ItemGems().setUnlocalizedName("gemGarnet").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems).setTextureName(Main.MODID + ":" + gemGarnet); gemAmethyst = new ItemGems().setUnlocalizedName("gemAmethyst").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems); gemAquaMarine = new ItemGems().setUnlocalizedName("gemAquaMarine").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems); gemAlexanderite = new ItemGems().setUnlocalizedName("gemAlexanderite").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems); gemRuby = new ItemGems().setUnlocalizedName("gemRuby").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems); gemPeridot = new ItemGems().setUnlocalizedName("gemPeridot").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems); gemSaphire = new ItemGems().setUnlocalizedName("gemSaphire").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems); gemPinkTourmaline = new ItemGems().setUnlocalizedName("gemPinkTourmaline").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems); gemTopaz = new ItemGems().setUnlocalizedName("gemTopaz").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems); gemZircon = new ItemGems().setUnlocalizedName("gemZircon").setCreativeTab(DaffierGemsTabs.creativeTabDaffiergemsGems); GameRegistry.registerItem(gemGarnet, gemGarnet.getUnlocalizedName()); GameRegistry.registerItem(gemAmethyst, gemAmethyst.getUnlocalizedName()); GameRegistry.registerItem(gemAquaMarine, gemAquaMarine.getUnlocalizedName()); GameRegistry.registerItem(gemAlexanderite, gemAlexanderite.getUnlocalizedName()); GameRegistry.registerItem(gemRuby, gemRuby.getUnlocalizedName()); GameRegistry.registerItem(gemPeridot, gemPeridot.getUnlocalizedName()); GameRegistry.registerItem(gemSaphire, gemSaphire.getUnlocalizedName()); GameRegistry.registerItem(gemPinkTourmaline, gemPinkTourmaline.getUnlocalizedName()); GameRegistry.registerItem(gemTopaz, gemTopaz.getUnlocalizedName()); GameRegistry.registerItem(gemZircon, gemZircon.getUnlocalizedName()); } } and the joint item class (ItemGems) is: package net.minecraft.daffiergems.gems; import net.minecraft.daffiergems.Main; import net.minecraft.item.Item; public class ItemGems extends Item { public ItemGems() { } } Please help me! I cannot continue my mod without this!
  3. Replace with:@SidedProxy(clientSide= "net.magicalforge.daffierbags.proxy.ClientProxy", serverSide= "net.magicalforge.daffierbags.proxy.CommonProxy") EDIT deleted a space from commonproxy THANKS!!!! :DDD I've been stuck on that for hours!!
  4. package net.magicalforge.daffierbags; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import net.magicalforge.daffierbags.item.DaffierbagItems; import net.magicalforge.daffierbags.packet.PacketPipeline; import net.magicalforge.daffierbags.proxy.CommonProxy; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; @Mod(modid = Main.MODID, version = Main.VERSION) public class Main { public static final String MODID = "Daffierbags"; public static final String VERSION = "1.0"; @Mod.Instance(MODID) public static Main instance; @SidedProxy(clientSide= " net.magicalforge.daffierbags.proxy.ClientProxy", serverSide= " net.magicalforge.daffierbags.proxy.CommonProxy") public static CommonProxy proxy; public static final PacketPipeline packetpipeline = new PacketPipeline(); public static CreativeTabs creativeTabDaffier; @EventHandler public void init(FMLInitializationEvent event){ creativeTabDaffier = new CreativeTabs("daffierbagsTab") { @Override public Item getTabIconItem() {return DaffierbagItems.backpack;} }; DaffierbagItems.loaditems(); proxy.registerproxies(); } @EventHandler public void postLoad(FMLPostInitializationEvent event) { packetpipeline.postInitialized(); } }
  5. Can someone please help me with this? I am working on a backpack mod but when I added a KeyHandler class it gives me the error of: ---- Minecraft Crash Report ---- // My bad. Time: 4/3/15 9:23 AM Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: net.magicalforge.daffierbags.proxy.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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.loadMods(Loader.java:492) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204) at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:164) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) 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.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Caused by: java.lang.ClassNotFoundException: net.magicalforge.daffierbags.proxy.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) 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:274) at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ... 40 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ... 46 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.7.0_75, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 825921136 bytes (787 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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.05 FML v7.10.97.1347 Minecraft Forge 10.13.2.1347 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{7.10.97.1347} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1347-1.7.10.jar) Unloaded->Constructed Forge{10.13.2.1347} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1347-1.7.10.jar) Unloaded->Constructed Daffierbags{1.0} [Daffierbags] (DaffierBags3.0) Unloaded->Errored I have tried everything to try fix it. My KeyHandler and ClientProxy classes is: package net.magicalforge.daffierbags.handler; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.InputEvent; import net.magicalforge.daffierbags.Main; import net.magicalforge.daffierbags.References; import net.magicalforge.daffierbags.packet.OpenGuiPacket; import net.minecraft.client.gui.GuiChat; import org.lwjgl.input.Keyboard; import net.minecraft.client.settings.KeyBinding; /** * Created by benjamin on 2015-04-02. */ public class KeyHandler { public static final int BACKPACK_KEY = 0; private static final String[] keyDesc = {"key.daffierbags.backpack.desc"}; private static final int[] keyValues = {Keyboard.KEY_B}; private final KeyBinding[] keys; public KeyHandler(){ keys = new KeyBinding[keyValues.length]; for (int i = 0; i < keyValues.length; i++){ keys[i] = new KeyBinding(keyDesc[i], keyValues[i], "key.daffierbags.category"); ClientRegistry.registerKeyBinding(keys[i]); } } @SubscribeEvent public void onKeyInput(InputEvent.KeyInputEvent event){ if(!FMLClientHandler.instance().isGUIOpen(GuiChat.class)); int key = Keyboard.getEventKey(); boolean isDown = Keyboard.getEventKeyState(); //Backpack Key if(isDown && key == keyValues[bACKPACK_KEY]){ //send packet to open gui Main.packetpipeline.sendToServer(new OpenGuiPacket(References.GUI_BACKPACK)); } } } and: package net.magicalforge.daffierbags.proxy; import cpw.mods.fml.common.FMLCommonHandler; import net.magicalforge.daffierbags.handler.KeyHandler; public class ClientProxy extends CommonProxy{ public void registerproxies() { FMLCommonHandler.instance().bus().register(new KeyHandler()); } } Someone please help!

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.