Jump to content

powns

Members
  • Posts

    32
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

powns's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. That indeed worked.... I am willing to jump off a cliff rn lol thanks for your help
  2. I am basically willing to bind a resourcelocation to the renderEngine using a file stored in my assets folder. Whenever i try to bind it using this.mc.renderEngine.bindTexture(new ResourceLocation("pownscoordshud", "textures/gui/idek.png")); it keeps throwing the following error: [21:05:53] [Client thread/WARN]: Failed to load texture: pownscoordshud:textures/textures/gui/idek.png java.io.FileNotFoundException: pownscoordshud:textures/textures/gui/idek.png My modid is: pownscoordshud. I have checked it mutliple times and i do not have any spelling errors within the ResourceLocation adress. Can someone please explain me what I am doing wrong here?
  3. Whenever I try to obtain info from the scoreboard in f.e. Skywars it only seems to return the first 14 characters of the full string....Does anyone know how to fix this?Src of the method i use to parse the strings: The method: public static Collection<String> getAllSBInfo(Scoreboard sb){ return sb.getObjectiveNames(); } How I call it in my test command: for(String s : this.mod.getAllSBInfo(Minecraft.getMinecraft().theWorld.getScoreboard())){ sender.addChatMessage((IChatComponent) new ChatComponentText(EnumChatFormatting.getTextWithoutFormattingCodes(s))); }
  4. People still don't seem to realise the fuckton of people making mods in 1.7 and 1.8 since they are the best version out there... lol
  5. I made a mod which contains a tweakerclass which actually gets loaded and does what it has to do (modify some minor values from a vanilla class using ASM). For some odd reason however, it does not load the main mod class, it looks like its completely ignored..? Would anyone know why this happens?
  6. Whenever i run my mod within the test environment from eclipse everything works fine, but as soon as i try to build the mod and install it in my modsfolders this happens: java.lang.NoClassDefFoundError: net/minecraft/command/ICommand at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:344) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:440) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) 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:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) 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:119) at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.ClassNotFoundException: net.minecraft.command.ICommand at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 35 more Could someone tell me whats wrong?
  7. As i said before, if mojang did not completely ignore the pvp community and keep the combat mechanics the same i would have never ever used minecraft versions from 2014. But in that case I understand and respect it that you guys are not willing to support me into doing this. Regardless of that, I want to thank you for all your help.
  8. But modifying the vanilla EntityLivingBase class would be possible with ASM right? What if i just modify the vanilla method that updates potions so that i can get it to un every tick regardless of the boolean's state?
  9. I do know what overriding means. I do not know how to get that to work in forge modding as i am still rather new to this. The way i would want this to work is by setting the private boolean potionsNeedUpdate to true as soon as i change the color of a certain potion type. That way, correct me if im wrong, it should update all the potions to have its new liquidColor. My idea was to override the updatePotionMetadata() method from the LivingEntityBase class so that i can call that method whenever i need it. It makes sense for me, but it is probably a rather amateuristic way of seeing this.
  10. Yeah, in 1.8.9 it is handled by a DataWatcher, but unfortunately I have no idea how to override the method you mentioned above. Could you maybe explain that to me a bit more?
  11. would it be possible to recode that event in forge 1.7.10 and 1.8.9?
  12. well it looks like it has to do with the method on the screenshot i added to this reply would you know how to keep the private boolean potionsNeedUpdate on true all the time? @diesieben07
  13. I will do that, I might have found a solution and i will post it here if it works so that other people would be able to benefit from it too thanks for your help!
  14. I would do that if 1.9+ would be good for pvp. The mods i make have an audience that either plays on 1.7.10 or 1.8.9. But you said that the color is queried and computed every tick, is there a way that i can see where that happens in the vanilla source code?
  15. I'm on 1.8.9, would that be why?
×
×
  • Create New...

Important Information

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