• Recently Browsing

    No registered users viewing this page.

  • Posts

    • I have an entirely blank mod that I have built using gradle and am now trying to test in Minecraft (by copying the gradle-built jar into the mods folder of my Minecraft installation). However, on startup I get the following warning: I'm certain this is a stupid error, but it's not clear to me what I need to update in the build.gradle file. This is what mine looks like currently: buildscript { repositories { jcenter() maven { url = "http://files.minecraftforge.net/maven" } flatDir { dirs 'libs' } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. version = "1.0" group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "rosemary" sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = '1.8' } minecraft { version = "1.12.2-14.23.5.2768" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not always work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20171003" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } The minecraft version definitely needs to be updated (I'm running 1.15.2, and Forge version 1.15.2-forge-31.1.0), but I'm not sure where to find this snapshot thing. I assume I can't just replace the 1.12.2 with 1.15.2. Thanks!
    • The game crashed whilst exception in server tick loop Error: net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Topography (topography)   i am on the latest version for skyfactory 4   it only crasheses when i play a certain world.
    • Please don't use MCreator. If you must mod, please learn Java and do it properly.
    • Derp! Thank you  I'm very new to the minecraft modding scene...
    • I just found another problem about registering client commands (opens a guiscreen). I've tested it in three different situations: 1- single player and it works fine. 2- multiplayers, the world is opened to lan. In this situation all players are able to see and execute the command but only the player that is sharing the world opens gui (even if it's the other players executed the command). 3- multiplayers, the world is hosted by a separated server (I ran runServer), and the players joined are unable to see and execute the command.   how I register the command: private void onServerStarting(final FMLServerStartingEvent event) { ModCommands.registerAll(event.getCommandDispatcher(), event.getServer().isDedicatedServer()); } mod commands public static void registerAll(CommandDispatcher<CommandSource> dispatcher, boolean isDedicatedServer) { LiteralArgumentBuilder<CommandSource> command = Commands .literal("test") if (!isDedicatedServer) { command.then(OpenGUICommand.register(dispatcher)); } dispatcher.register(command); } command itself public static ArgumentBuilder<CommandSource, LiteralArgumentBuilder<CommandSource>> register(CommandDispatcher<CommandSource> dispatcher) { return Commands.literal("opengui").executes((context) -> { Minecraft.getInstance().displayGuiScreen(new TestScreen()); return 0; }); } Hope these hints help
  • Topics

  • Who's Online (See full list)