Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Exit Code: 0 When Launching

Recommended Posts

I had downloaded 1.16.3 Forge and had WorldEdit and Optifine installed and everything was working perfectly but in the last couple days, I've started getting Exit Code: 0 when launching. I tried removing all the mods I had installed, updating Forge and the other mods, and even uninstalling and reinstalling MC with no luck. When I launch the Optifine profile, it works, but it's when I try forge that it crashes. I also tried launching in compatibility mode using the legacy launcher. I've attached the debug text if that helps. Thanks!


[16Jan2021 22:34:51.295] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Dollar89, --version, 1.16.4-forge-35.1.4, --gameDir, C:\Users\ethan\AppData\Roaming\.minecraft, --assetsDir, C:\Users\ethan\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, e1f483bd5ae145979da15572a3fcfc8d, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 35.1.4, --fml.mcVersion, 1.16.4, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20201102.104115]
[16Jan2021 22:34:51.300] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.6+85+master.325de55 starting: java version 1.8.0_51 by Oracle Corporation
[16Jan2021 22:34:51.306] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver]
[16Jan2021 22:34:51.310] [main/WARN] [cpw.mods.modlauncher.SecureJarHandler/]: LEGACY JDK DETECTED, SECURED JAR HANDLING DISABLED
[16Jan2021 22:34:51.315] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : []
[16Jan2021 22:34:51.348] [main/DEBUG] [cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [mixin,eventbus,object_holder_definalize,runtime_enum_extender,accesstransformer,capability_inject_definalize,runtimedistcleaner]
[16Jan2021 22:34:51.355] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Discovering transformation services
[16Jan2021 22:34:51.364] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found additional transformation services from discovery services: [C:\Users\ethan\AppData\Roaming\.minecraft\mods\OptiFine_1.16.3_HD_U_G3.jar]
[16Jan2021 22:34:51.388] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [mixin,OptiFine,fml]
[16Jan2021 22:34:51.388] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading
[16Jan2021 22:34:51.388] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loading service mixin
[16Jan2021 22:34:51.389] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loaded service mixin
[16Jan2021 22:34:51.389] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loading service OptiFine
[16Jan2021 22:34:51.389] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFineTransformationService.onLoad
[16Jan2021 22:34:51.390] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFine ZIP file: C:\Users\ethan\AppData\Roaming\.minecraft\mods\OptiFine_1.16.3_HD_U_G3.jar
[16Jan2021 22:34:51.397] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loaded service OptiFine
[16Jan2021 22:34:51.397] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loading service fml
[16Jan2021 22:34:51.397] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/]: Injecting tracing printstreams for STDOUT/STDERR.
[16Jan2021 22:34:51.399] [main/DEBUG] [net.minecraftforge.fml.loading.LauncherVersion/CORE]: Found FMLLauncher version 35.1
[16Jan2021 22:34:51.399] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML 35.1 loading
[16Jan2021 22:34:51.400] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found ModLauncher version : 8.0.6+85+master.325de55
[16Jan2021 22:34:51.400] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Initializing modjar URL handler
[16Jan2021 22:34:51.400] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found AccessTransformer version : 2.2.0+57+master.16c1bdb
[16Jan2021 22:34:51.400] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found EventBus version : 3.0.5+64+master.ec454d4
[16Jan2021 22:34:51.401] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Found Runtime Dist Cleaner
[16Jan2021 22:34:51.402] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found CoreMod version : 3.0.0+9+master.3817658
[16Jan2021 22:34:51.403] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Found ForgeSPI package implementation version 3.2.0+13+master.8ddb2cc
[16Jan2021 22:34:51.403] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Found ForgeSPI package specification 3
[16Jan2021 22:34:51.474] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[16Jan2021 22:34:51.474] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loaded service fml
[16Jan2021 22:34:51.477] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Configuring option handling for services
[16Jan2021 22:34:51.484] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Transformation services initializing
[16Jan2021 22:34:51.485] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service mixin
[16Jan2021 22:34:51.486] [main/DEBUG] [mixin/]: Mixin bootstrap service org.spongepowered.asm.service.mojang.MixinServiceLaunchWrapperBootstrap is not available: LaunchWrapper is not available
[16Jan2021 22:34:51.490] [main/DEBUG] [mixin/]: MixinService [ModLauncher] was successfully booted in sun.misc.Launcher$AppClassLoader@4554617c
[16Jan2021 22:34:51.503] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/ethan/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.2/mixin-0.8.2.jar Service=ModLauncher Env=CLIENT
[16Jan2021 22:34:51.504] [main/DEBUG] [mixin/]: Initialising Mixin Platform Manager
[16Jan2021 22:34:51.504] [main/DEBUG] [mixin/]: Adding mixin platform agents for container ModLauncher Root Container(4f56a0a2)
[16Jan2021 22:34:51.505] [main/DEBUG] [mixin/]: Instancing new MixinPlatformAgentMinecraftForge for ModLauncher Root Container(4f56a0a2)
[16Jan2021 22:34:51.505] [main/DEBUG] [mixin/]: MixinPlatformAgentMinecraftForge rejected container ModLauncher Root Container(4f56a0a2)
[16Jan2021 22:34:51.505] [main/DEBUG] [mixin/]: Instancing new MixinPlatformAgentDefault for ModLauncher Root Container(4f56a0a2)
[16Jan2021 22:34:51.505] [main/DEBUG] [mixin/]: MixinPlatformAgentDefault accepted container ModLauncher Root Container(4f56a0a2)
[16Jan2021 22:34:51.507] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service mixin
[16Jan2021 22:34:51.507] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service OptiFine
[16Jan2021 22:34:51.507] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFineTransformationService.initialize
[16Jan2021 22:34:51.508] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service OptiFine
[16Jan2021 22:34:51.508] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service fml
[16Jan2021 22:34:51.508] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Setting up basic FML game directories
[16Jan2021 22:34:51.509] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing GAMEDIR directory : C:\Users\ethan\AppData\Roaming\.minecraft
[16Jan2021 22:34:51.509] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path GAMEDIR is C:\Users\ethan\AppData\Roaming\.minecraft
[16Jan2021 22:34:51.509] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing MODSDIR directory : C:\Users\ethan\AppData\Roaming\.minecraft\mods
[16Jan2021 22:34:51.509] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path MODSDIR is C:\Users\ethan\AppData\Roaming\.minecraft\mods
[16Jan2021 22:34:51.510] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing CONFIGDIR directory : C:\Users\ethan\AppData\Roaming\.minecraft\config
[16Jan2021 22:34:51.510] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path CONFIGDIR is C:\Users\ethan\AppData\Roaming\.minecraft\config
[16Jan2021 22:34:51.510] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path FMLCONFIG is C:\Users\ethan\AppData\Roaming\.minecraft\config\fml.toml
[16Jan2021 22:34:51.510] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Loading configuration
[16Jan2021 22:34:51.532] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.RuntimeException: Failed to load FML config from C:\Users\ethan\AppData\Roaming\.minecraft\config\fml.toml
[16Jan2021 22:34:51.532] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.fml.loading.FMLConfig.loadFrom(FMLConfig.java:64)
[16Jan2021 22:34:51.532] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.fml.loading.FMLConfig.load(FMLConfig.java:77)
[16Jan2021 22:34:51.532] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.fml.loading.FMLServiceProvider.initialize(FMLServiceProvider.java:81)
[16Jan2021 22:34:51.532] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.TransformationServiceDecorator.onInitialize(TransformationServiceDecorator.java:68)
[16Jan2021 22:34:51.533] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.TransformationServicesHandler.lambda$initialiseTransformationServices$7(TransformationServicesHandler.java:107)
[16Jan2021 22:34:51.533] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.TransformationServicesHandler$$Lambda$93/1552999801.accept(Unknown Source)
[16Jan2021 22:34:51.533] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.util.HashMap$Values.forEach(HashMap.java:972)
[16Jan2021 22:34:51.533] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.TransformationServicesHandler.initialiseTransformationServices(TransformationServicesHandler.java:107)
[16Jan2021 22:34:51.533] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:59)
[16Jan2021 22:34:51.534] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.Launcher.run(Launcher.java:76)
[16Jan2021 22:34:51.534] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)
[16Jan2021 22:34:51.534] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: com.electronwill.nightconfig.core.io.ParsingException: Not enough data available
[16Jan2021 22:34:51.534] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.io.ParsingException.notEnoughData(ParsingException.java:22)
[16Jan2021 22:34:51.535] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.io.ReaderInput.directReadChar(ReaderInput.java:36)
[16Jan2021 22:34:51.535] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.io.AbstractInput.readChar(AbstractInput.java:49)
[16Jan2021 22:34:51.535] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.io.AbstractInput.readCharsUntil(AbstractInput.java:123)
[16Jan2021 22:34:51.535] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:166)
[16Jan2021 22:34:51.535] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145)
[16Jan2021 22:34:51.535] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55)
[16Jan2021 22:34:51.535] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44)
[16Jan2021 22:34:51.536] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37)
[16Jan2021 22:34:51.536] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113)
[16Jan2021 22:34:51.536] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219)
[16Jan2021 22:34:51.536] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202)
[16Jan2021 22:34:51.536] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73)
[16Jan2021 22:34:51.536] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.file.AutoreloadFileConfig.load(AutoreloadFileConfig.java:41)
[16Jan2021 22:34:51.536] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85)
[16Jan2021 22:34:51.537] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at net.minecraftforge.fml.loading.FMLConfig.loadFrom(FMLConfig.java:60)
[16Jan2021 22:34:51.537] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     ... 10 more


Link to post
Share on other sites

Please provide C:\Users\ethan\AppData\Roaming\.minecraft\config\fml.toml, then delete it and try again.

(This is an issue we're trying to diagnose and we need samples of the corrupted configs)

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.


As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.


For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.


Logs (Most issues require logs to diagnose):


Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.


What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...


...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension


Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.


Twitch Launcher: If you are using the Twitch Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Twitch's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.






or alternately, 


Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft


Server Not Starting:


If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.


Reporting Illegal/Inappropriate Adfocus Ads:


Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.


Posting your mod as a GitHub Repo:


When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.


  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]


Link to post
Share on other sites
9 minutes ago, DaemonUmbra said:

Please provide C:\Users\ethan\AppData\Roaming\.minecraft\config\fml.toml, then delete it and try again.

(This is an issue we're trying to diagnose and we need samples of the corrupted configs)

When I open the file, there is nothing there. But deleting it seemed to work.

Edited by Dollar98PlusTax
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Whenever i try to run the installer it says This application requires a java runtime environment 1.6.0 im runing windows 10
    • So I thought that I had gotten pretty far on my own but now apparently my code crashes the game. I am new to using the forge API and modding in general and some help on why this crashes the game and how to fix it would be greatly appreciated:   public class SpecialItem extends ShootableItem {      public SpecialItem(Properties properties){ super(properties); }      @Override      public Predicate<ItemStack> getInventoryAmmoPredicate() { return null; }      @Override      public int func_230305_d_() { return 15; }      public int tcount=0;      @SubscribeEvent public void ontick(TickEvent.ClientTickEvent event){            tcount++;      }      @Override      public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn) {      if (!playerIn.getCooldownTracker().hasCooldown(this)) {           playerIn.getCooldownTracker().setCooldown(this, 40);           Vector3d v3 = playerIn.getLook(1);           for (tcount = 0; tcount <= 40;) {                if (tcount%10 == 0 && tcount!= 40) {                     final SmallFireballEntity entitysmallfireball = new SmallFireballEntity(playerIn.getEntityWorld(), playerIn.getPosX(), playerIn.getPosY() + playerIn.getEyeHeight() - 0.4, playerIn.getPosZ(), v3.x + playerIn.getRNG().nextGaussian() * 0.05, v3.y, v3.z);                     entitysmallfireball./* shoot */func_234612_a_(playerIn, playerIn.rotationPitch, playerIn.rotationYaw, 0.0f, 1.5f, 1.0f); worldIn.addEntity(entitysmallfireball); } } tcount = 0;                     return ActionResult.resultSuccess(playerIn.getHeldItem(handIn));            } return ActionResult.resultFail(playerIn.getHeldItem(handIn));      } }
    • I found a way to handle this, using javapoet as you suggested. For those who are interested in how it works, you can take a look at my sample here: https://github.com/DarkShadow44/compatibilitymod/tree/sourcegen Might not work with eclipse yet, but it builds properly.
    • It's fired on the logical client and logical server. Most likely you'll only need to execute the logic on the server.
    • If you're translating individual files, there's not much you can do about it. You could use the updateMappings gradlew task, but that's better for large batches of code. As for JSON item models, that is a much more complicated issue that involves layers and custom transform types. While still possible, the tradeoff isn't really worth it.
  • Topics

  • Who's Online (See full list)

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.