Please help #115
-
Can someone help me learn to actually code my own damn mods because right now i'm just asking chatgpt to make them and most don't work. I'm sorry if this is annoying. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
@ZXMushroom63 please help |
Beta Was this translation helpful? Give feedback.
-
I'll start with a simple one (no hurt cam) and teach you how to get modding:
(function NoHurtCam() {
//during development, ideally you would have the eaglerforge client open and be able to put things into devtools to test them while writing code
//we want to remove the code responsible for the hurt camera animation
const compiledMethodName = ModAPI.util.getMethodFromPackage("net.minecraft.client.renderer.EntityRenderer", "hurtCameraEffect");
//you can patch / overwrite java methods using `ModAPI.hooks.methods`
ModAPI.hooks.methods[compiledMethodName] = ()=>{} //this is the same as ModAPI.hooks.methods.functionname = ()=>{}
})()
//This function in brackets that is being immediately executed is called an IIFE. this means that variable names will not clash with other mods. Documentation link for ModAPI: https://eaglerforge.github.io/EaglerForgeInjector/docs/apidoc/ |
Beta Was this translation helpful? Give feedback.
-
As for AI generating mods, current AI models tend to hallucinate extremely frequently when asked about EaglerForge, and will probably just confuse you if you try to use them to create mods. |
Beta Was this translation helpful? Give feedback.
-
If you want to get coding, after you learn the basics of JavaScript EaglerForge is a great place to improve. I personally learned using Kahn akademy, and if you want to learn the basics, that's where I reccomend. ps. you have to know how to vibe code to vibe code |
Beta Was this translation helpful? Give feedback.
-
tysm |
Beta Was this translation helpful? Give feedback.
-
wait so all ai's suck at coding? (for eaglerforge or smth like that?) |
Beta Was this translation helpful? Give feedback.
As for AI generating mods, current AI models tend to hallucinate extremely frequently when asked about EaglerForge, and will probably just confuse you if you try to use them to create mods.