minecraft-forge

Program Minecraft Mods without Changing Environment Variables?

a 夏天 提交于 2021-02-11 02:31:31
问题 I am wanting to program Minecraft mods using forge. I am going through the standard installation to begin creating mods, but I have run into an issue. I ran the code "gradlew setupDecompWorkspace eclipse" and it is telling me "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_Home vairable in your environment to match the location of your Java installation." Is it possible to change something else or do something else that will allow me to

Program Minecraft Mods without Changing Environment Variables?

放肆的年华 提交于 2021-02-11 02:27:37
问题 I am wanting to program Minecraft mods using forge. I am going through the standard installation to begin creating mods, but I have run into an issue. I ran the code "gradlew setupDecompWorkspace eclipse" and it is telling me "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_Home vairable in your environment to match the location of your Java installation." Is it possible to change something else or do something else that will allow me to

Program Minecraft Mods without Changing Environment Variables?

别来无恙 提交于 2021-02-11 02:26:34
问题 I am wanting to program Minecraft mods using forge. I am going through the standard installation to begin creating mods, but I have run into an issue. I ran the code "gradlew setupDecompWorkspace eclipse" and it is telling me "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_Home vairable in your environment to match the location of your Java installation." Is it possible to change something else or do something else that will allow me to

How to set Gradle environment variables?

人走茶凉 提交于 2021-02-08 15:18:06
问题 I'm trying to execute a Gradle command-line task -setupDecompWorkspace to set up Minecraft Forge, but the task gets stuck on decompileMC. I've tried the first solution from this issue, but it didn't work. The second solution suggest setting the GRADLE_OPTS environment variable to -Xmx2G . I don't exactly know how to do this. After searching online for a couple of hours I am still found with no answer. Even the official Gradle documentation doesn't help. Do I need to declare the variable in

How to set Gradle environment variables?

为君一笑 提交于 2021-02-08 15:17:08
问题 I'm trying to execute a Gradle command-line task -setupDecompWorkspace to set up Minecraft Forge, but the task gets stuck on decompileMC. I've tried the first solution from this issue, but it didn't work. The second solution suggest setting the GRADLE_OPTS environment variable to -Xmx2G . I don't exactly know how to do this. After searching online for a couple of hours I am still found with no answer. Even the official Gradle documentation doesn't help. Do I need to declare the variable in

How to set Gradle environment variables?

大兔子大兔子 提交于 2021-02-08 15:16:26
问题 I'm trying to execute a Gradle command-line task -setupDecompWorkspace to set up Minecraft Forge, but the task gets stuck on decompileMC. I've tried the first solution from this issue, but it didn't work. The second solution suggest setting the GRADLE_OPTS environment variable to -Xmx2G . I don't exactly know how to do this. After searching online for a couple of hours I am still found with no answer. Even the official Gradle documentation doesn't help. Do I need to declare the variable in

How do I move a file into a compiled .jar file using Java?

放肆的年华 提交于 2021-02-08 12:07:58
问题 I'm making a file import system, and I can't move files into the compiled .jar file the application is in. Here's what I'm trying to do: Path FROM = Paths.get(filePath.getText()); Path TO = Paths.get("C:\\Users\\" + System.getProperty("user.name") + "\\AppData\\Roaming\\.minecraft\\mods\\music_crafter-1.0\\src\\main\\resources\\assets\\music_crafter\\sounds\\block\\music_player"); //jar file Files.move(FROM, TO.resolve(FROM.getFileName()), StandardCopyOption.REPLACE_EXISTING); 回答1: You need

How do I move a file into a compiled .jar file using Java?

一世执手 提交于 2021-02-08 12:06:34
问题 I'm making a file import system, and I can't move files into the compiled .jar file the application is in. Here's what I'm trying to do: Path FROM = Paths.get(filePath.getText()); Path TO = Paths.get("C:\\Users\\" + System.getProperty("user.name") + "\\AppData\\Roaming\\.minecraft\\mods\\music_crafter-1.0\\src\\main\\resources\\assets\\music_crafter\\sounds\\block\\music_player"); //jar file Files.move(FROM, TO.resolve(FROM.getFileName()), StandardCopyOption.REPLACE_EXISTING); 回答1: You need

Can you package multiple forge mods into a single jar?

天大地大妈咪最大 提交于 2021-01-29 08:31:57
问题 When you are using Minecraft forge, it creates an external /mods/ folder that you place your mods in. Is there a way to package all the mods, configuration settings (like splash.propreties) and assets into a single .jar file for ease of distribution? I am making a custom mod pack, and I don't like the fact that you have to install forge, then download the mod pack, then install the mods in order to run my mod pack. Is there a way to package it into a single jar so that you can just add it as

Which java class triggers natural mob spawns?

会有一股神秘感。 提交于 2021-01-29 02:50:53
问题 I'm trying to find in the code which class or classes trigger mob spawns. For example if I wanted to change the Y at which slimes spawn or allow a custom mob like an elephant spawn on the Savannah biome. Intent is to do this for a forge mod, but I assume the answer is standard for minecraft? Thanks! 回答1: For mod-added entities, EntityRegistry.addSpawn(...) is used to register which biomes the entity will spawn in using the existing per-biome spawn rules. For slimes, the class EntitySlime