Jump to content

Masterzach32

Forge Modder
  • Posts

    7
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • URL
    http://masterzach32.net
  • Personal Text
    New to modding

Masterzach32's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hello! Ive been messing around with some code, and i was trying to create a method where my item would damage an entity from a distance. For some reason the damage is not being delt. My log messages appear in the console so im sure the method is being called. if you see an obvious error please tell me! Any help is appreciated! @Override public boolean onEntitySwing(EntityLivingBase entity, ItemStack stack) { EntityPlayer player = (EntityPlayer) entity; EntityLivingBase target = getMouseOver(1, 10, player); LogHelper.logInfo("Being called"); if (target != null) { float missing_health = ((EntityLivingBase) target).getMaxHealth() - ((EntityLivingBase) target).getHealth(); target.attackEntityFrom(Pineapple.pineapple, (float) (5 + (missing_health * 0.10))); LogHelper.logInfo("Attacking Entity -- Current Health:" + target.getHealth() + " Name:" + target.getClass()); } return false; } public EntityLivingBase getMouseOver(float tick, float distance, EntityPlayer player) { if (mc.theWorld != null) { MovingObjectPosition pos = player.rayTrace(distance, tick); Vec3 vec3 = mc.renderViewEntity.getPosition(tick); Vec3 vec31 = mc.renderViewEntity.getLook(tick); Vec3 vec32 = vec3.addVector(vec31.xCoord * distance, vec31.yCoord * distance, vec31.zCoord * distance); List list = mc.theWorld.getEntitiesWithinAABBExcludingEntity(this.mc.renderViewEntity, this.mc.renderViewEntity.boundingBox.addCoord(vec31.xCoord * distance, vec31.yCoord * distance, vec31.zCoord * distance).expand(1.0, 1.0, 1.0)); for (int i = 0; i < list.size(); ++i) { Entity entity = (Entity) list.get(i); if (entity instanceof EntityLivingBase) { return (EntityLivingBase) entity; } } } return null; }
  2. Fixed it, found out i had to add --userProperties {} to the launch config
  3. you have to call the setFull3D() function on the item
  4. So this is the log after I click the run button in eclipse. [20:59:39] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [20:59:39] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [20:59:39] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [20:59:39] [main/INFO] [FML]: Forge Mod Loader version 7.10.18.1183 for Minecraft 1.7.10 loading [20:59:39] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.6.0_65, running on Mac OS X:x86_64:10.9.4, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home [20:59:39] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [20:59:39] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:59:39] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:59:39] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:59:39] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:59:39] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:59:39] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [20:59:40] [main/ERROR] [FML]: The minecraft jar file:/Users/KozarFamily/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1183/forgeSrc-1.7.10-10.13.0.1183.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [20:59:40] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [20:59:40] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/Users/KozarFamily/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.0.1183/forgeSrc-1.7.10-10.13.0.1183.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [20:59:40] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [20:59:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:59:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:59:40] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [20:59:41] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: joptsimple.MissingRequiredOptionException: Missing required option(s) ['userProperties'] at joptsimple.OptionParser.ensureRequiredOptions(OptionParser.java:447) ~[OptionParser.class:?] at joptsimple.OptionParser.parse(OptionParser.java:437) ~[OptionParser.class:?] at net.minecraft.client.main.Main.main(Main.java:89) ~[Main.class:?] ... 6 more It doesnt get to loading the mods, and for the currups error, it is not affecting the game, I got the error before this started happening. ive tried doing what it says, doesnt work. Any Help?
  5. Im not at home right now, but im pretty sure im using 1.7.2 10.12.1.1065 or 1.7.2 10.12.1.1061.
  6. [06:57:18] [Client thread/ERROR]: ########## GL ERROR ########## [06:57:18] [Client thread/ERROR]: @ Post render [06:57:18] [Client thread/ERROR]: 1286: Invalid framebuffer operation After minecraft starts up sucesfully and the main menu would show, I get a black screen and this message is spammed in the console. any help? this happens with just forge installed also. I can hear the main menu music and hear when i mouse over a button its just that i have a black screen. I cant see what im doing
  7. Hi, i finished updating my mod to 1.7.2, no errors and when i start minecraft i can hear minecraft music but i see a black screen and the console is spammed with this: [17:30:29] [Client thread/ERROR]: ########## GL ERROR ########## [17:30:29] [Client thread/ERROR]: @ Post render [17:30:29] [Client thread/ERROR]: 1286: Invalid framebuffer operation Im using eclipse and Mac OSX 10.9.2, I have java 6 and 7 installed
×
×
  • Create New...

Important Information

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