Jump to content

ARavinMadMonkey

Members
  • Posts

    5
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

ARavinMadMonkey's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Im putting them in the class that relates to the block blockBookshelves = new Bookshelves().setBlockName("Bookshelf"); So they're going in Bookshelves.class. (I have added some more methods that I tried in the previous post, I didn't see that you replied.
  2. Okay, so I have 6 different types of bookcase, each with their own texture and metadata, but whenever I pick block on any of them, I always get the one with a metadata of 0. I have tried these two methods: public ItemStack onPickBlock(Block block, int i, int meta) { if(meta == 0) { return new ItemStack(AdvAes.blockBookshelves, 0, 3); } else return new ItemStack(AdvAes.blockBookshelves, 0, 5); } public ItemStack getPickBlock(Block block, int i, int meta) { if(meta == 0) { return new ItemStack(AdvAes.blockBookshelves, 0, 3); } else return new ItemStack(AdvAes.blockBookshelves, 0, 5); } I intentionally messed up the metadata numbers just for testing. However with both of these , where I should not be given the metadata of 0 at all, I still get the bookshelf with 0. EDIT: I have also now tried public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) { Item item = getItem(world, x, y , z); Block block = Block.getBlockFromItem(item); return new ItemStack(item, 1, block.getDamageValue(world, x, y, z)); } public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) { Item item = getItem(world, x, y , z); if(item == null) { return null; } Block block = item instanceof ItemBlock && !isFlowerPot() ? Block.getBlockFromItem(item) : this; return new ItemStack(item, 1, block.getDamageValue(world, x, y, z)); }
  3. I dont quite know what you mean, I tried looking for a ForgeHooks.onPickBlock but I cant seem to find anything.
  4. Hey all, I'm having some trouble trying to get my metadata block to respond to the pick block function. After doing some searching I came across the method getBlockPicked? I cannot for the life of me get it to work though. I've also tried looking at vanilla code but I cant see anything. Could someone help me out?
  5. I am reciving this error when launching Minecraft with just Forge. 2013-03-29 08:18:41 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading 2013-03-29 08:18:41 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_13, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 2013-03-29 08:18:41 [FINE] [ForgeModLoader] Java classpath at launch is /F:/Users/Chris/Games/MagicLauncher_1.0.0.exe 2013-03-29 08:18:41 [FINE] [ForgeModLoader] Java library path at launch is bin/natives 2013-03-29 08:18:41 [FINE] [ForgeModLoader] Enabling runtime deobfuscation 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] All core mods are successfully located 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Discovering coremods 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Found a candidate coremod CodeChickenCore 0.7.0.0.jar 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Loading coremod CodeChickenCore 0.7.0.0.jar 2013-03-29 08:18:41 [WARNING] [ForgeModLoader] The coremod codechicken.core.asm.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Loaded coremod CodeChickenCore 0.7.0.0.jar 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Found a candidate coremod NotEnoughItems 1.4.4.0.jar 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Loading coremod NotEnoughItems 1.4.4.0.jar 2013-03-29 08:18:41 [WARNING] [ForgeModLoader] The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Loaded coremod NotEnoughItems 1.4.4.0.jar 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Found library file argo-small-3.2.jar present and correct in lib dir 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Found library file guava-14.0-rc3.jar present and correct in lib dir 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Found library file asm-all-4.1.jar present and correct in lib dir 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Found library file bcprov-jdk15on-148.jar present and correct in lib dir 2013-03-29 08:18:41 [FINEST] [ForgeModLoader] Found library file deobfuscation_data_1.5.1.zip present and correct in lib dir 2013-03-29 08:18:42 [FINEST] [ForgeModLoader] Found library file scala-library.jar present and correct in lib dir 2013-03-29 08:18:45 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException 2013-03-29 08:18:45 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-29 08:18:45 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at magic.launcher.Launcher.main(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: cpw/mods/fml/common/asm/ASMTransformer 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:192) 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:104) 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:38) 2013-03-29 08:18:45 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.main(Minecraft.java:2228) 2013-03-29 08:18:45 [iNFO] [sTDERR] ... 5 more 2013-03-29 08:18:45 [iNFO] [sTDERR] Caused by: java.lang.NoClassDefFoundError: cpw/mods/fml/common/asm/ASMTransformer 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.lang.ClassLoader.defineClass1(Native Method) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.lang.ClassLoader.defineClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.security.SecureClassLoader.defineClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.net.URLClassLoader.defineClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.net.URLClassLoader.access$100(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.net.URLClassLoader$1.run(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.net.URLClassLoader$1.run(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.security.AccessController.doPrivileged(Native Method) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.net.URLClassLoader.findClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:134) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.registerTransformer(RelaunchClassLoader.java:96) 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:271) 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:172) 2013-03-29 08:18:45 [iNFO] [sTDERR] ... 8 more 2013-03-29 08:18:45 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: cpw.mods.fml.common.asm.ASMTransformer 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] ... 23 more 2013-03-29 08:18:45 [iNFO] [sTDERR] Caused by: java.lang.NoClassDefFoundError: net/minecraftforge/event/Event 2013-03-29 08:18:45 [iNFO] [sTDERR] at net.minecraftforge.transformers.EventTransformer.buildEvents(EventTransformer.java:59) 2013-03-29 08:18:45 [iNFO] [sTDERR] at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:35) 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:292) 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:199) 2013-03-29 08:18:45 [iNFO] [sTDERR] ... 25 more 2013-03-29 08:18:45 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: net.minecraftforge.event.Event 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-03-29 08:18:45 [iNFO] [sTDERR] ... 29 more 2013-03-29 08:18:45 [iNFO] [sTDERR] Caused by: java.lang.AbstractMethodError 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:292) 2013-03-29 08:18:45 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:199) 2013-03-29 08:18:45 [iNFO] [sTDERR] ... 31 more
×
×
  • Create New...

Important Information

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