Jump to content

WolfHybrid23

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by WolfHybrid23

  1. How do I tell the gradlew to run the client with the login information of my player?
  2. Oh wait I figured it out! public class DebugItem extends Item { public DebugItem() { super(new Properties()); getCreativeTabs().add(ItemGroup.MISC); } }
  3. How would I go about setting an items creative tab with the new 1.13 update? I tried using setCreativeTab(CreativeTabs.MISC); but that no longer seems to be a function... Please help!
  4. Okay, So I see a few errors with my code and fixed them. Firstly I wasn't using a SubscribeEvent annotation and Secondly, I was trying to register all of these commands as sub-commands to "celriff".
  5. I used the FMLServerStartingEvent to register the commands like this: private void onServerStarting(final FMLServerStartingEvent e) { e.getCommandDispatcher().register(LiteralArgumentBuilder.<CommandSource>literal("celriff").then(GamemodeCreativeShortcutCommand.register()).then(GamemodeSurvivalShortcutCommand.register()).then(GamemodeSpectatorShortcutCommand.register())); } but I am not able to use these commands in a single player world.
  6. I know how to create and use commands but how do I register them for singleplayer worlds?
  7. Okay, So between the last time I got the MDK and now they updated the MDK, Now the game doesn't crash on world load. Keep up the good work The Forge Team! Good luck!
  8. [04:16:49.317] [Server thread/ERROR] [minecraft/SaveFormatOld]: Exception reading .\saves\New World\level.dat java.lang.NullPointerException: null at net.minecraft.world.dimension.DimensionType.toString(DimensionType.java:66) ~[?:?] at net.minecraftforge.common.DimensionManager.lambda$readRegistry$4(DimensionManager.java:324) ~[?:?] at java.util.HashMap.forEach(HashMap.java:1289) ~[?:1.8.0_201] at net.minecraftforge.common.DimensionManager.readRegistry(DimensionManager.java:323) ~[?:?] at net.minecraftforge.common.ForgeMod.readData(ForgeMod.java:199) ~[?:?] at net.minecraftforge.fml.WorldPersistenceHooks.lambda$handleWorldDataLoad$1(WorldPersistenceHooks.java:47) ~[?:?] at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_201] at net.minecraftforge.fml.WorldPersistenceHooks.handleWorldDataLoad(WorldPersistenceHooks.java:47) ~[?:?] at net.minecraft.world.storage.SaveFormatOld.getWorldData(SaveFormatOld.java:102) [?:?] at net.minecraft.world.storage.SaveHandler.loadWorldInfo(SaveHandler.java:97) [?:?] at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:68) [?:?] at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:95) [?:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:549) [?:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201] [04:16:49.327] [Server thread/ERROR] [minecraft/AbstractResourcePack]: Couldn't load pack metadata com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Expected name at line 5 column 6 path $.pack.pack_format at net.minecraft.util.JsonUtils.fromJson(SourceFile:499) ~[?:?] at net.minecraft.util.JsonUtils.func_212744_a(SourceFile:550) ~[?:?] at net.minecraft.util.JsonUtils.func_212743_a(SourceFile:558) ~[?:?] at net.minecraft.resources.AbstractResourcePack.getResourceMetadata(SourceFile:72) [?:?] at net.minecraft.resources.AbstractResourcePack.getMetadata(SourceFile:65) [?:?] at net.minecraft.resources.ResourcePackInfo.func_195793_a(SourceFile:38) [?:?] at net.minecraftforge.fml.packs.ResourcePackLoader$ModPackFinder.addPackInfosToMap(ResourcePackLoader.java:67) [?:?] at net.minecraft.resources.ResourcePackList.reloadPacksFromFinders(SourceFile:32) [?:?] at net.minecraft.server.MinecraftServer.loadDataPacks(MinecraftServer.java:362) [?:?] at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:75) [?:?] at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:95) [?:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:549) [?:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201] Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 5 column 6 path $.pack.pack_format at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559) ~[gson-2.8.0.jar:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:505) ~[gson-2.8.0.jar:?] at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:414) ~[gson-2.8.0.jar:?] at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:738) ~[gson-2.8.0.jar:?] at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:739) ~[gson-2.8.0.jar:?] at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:714) ~[gson-2.8.0.jar:?] at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:910) ~[gson-2.8.0.jar:?] at net.minecraft.util.JsonUtils.fromJson(SourceFile:497) ~[?:?] ... 12 more [04:16:49.328] [Server thread/ERROR] [minecraft/ResourcePackInfo]: Broken/missing pack.mcmeta detected, fudging it into existance. Please check that your launcher has downloaded all assets for the game correctly! [04:16:49.328] [Server thread/DEBUG] [ne.mi.fm.pa.ResourcePackLoader/CORE]: Generating PackInfo named mod:celriff for mod file C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\build\resources\main [04:16:49.328] [Server thread/DEBUG] [ne.mi.fm.pa.ResourcePackLoader/CORE]: Generating PackInfo named mod:forge for mod file C:\Users\WolfH\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.21_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.21_mapped_snapshot_20180921-1.13.jar [04:16:49.329] [Server thread/INFO] [minecraft/MinecraftServer]: Found new data pack vanilla, loading it automatically [04:16:49.330] [Server thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, forge-1.13.2-25.0.21_mapped_snapshot_20180921-1.13.jar, main [04:16:50.210] [Server thread/INFO] [minecraft/RecipeManager]: Loaded 524 recipes [04:16:51.694] [Server thread/INFO] [minecraft/AdvancementList]: Loaded 571 advancements [04:16:52.343] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception java.lang.NullPointerException: null at net.minecraft.world.storage.WorldSavedDataStorage.func_212426_a(SourceFile:31) ~[?:?] at net.minecraft.world.ISaveDataAccess.func_212411_a(SourceFile:20) ~[?:?] at net.minecraft.world.WorldServer.func_212251_i__(WorldServer.java:129) ~[?:?] at net.minecraft.server.MinecraftServer.func_212369_a(MinecraftServer.java:328) ~[?:?] at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:77) ~[?:?] at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:95) ~[?:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:549) [?:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201] [04:16:52.388] [Server thread/ERROR] [minecraft/MinecraftServer]: This crash report has been saved to: C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run\.\crash-reports\crash-2019-02-17_04.16.52-server.txt [04:16:52.388] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server [04:16:52.388] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players [04:16:52.388] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds ---- Minecraft Crash Report ---- // On the bright side, I bought you a teddy bear! Time: 2/17/19 4:16 AM Description: Exception in server tick loop java.lang.NullPointerException: Exception in server tick loop at net.minecraft.world.storage.WorldSavedDataStorage.func_212426_a(SourceFile:31) at net.minecraft.world.ISaveDataAccess.func_212411_a(SourceFile:20) at net.minecraft.world.WorldServer.func_212251_i__(WorldServer.java:129) at net.minecraft.server.MinecraftServer.func_212369_a(MinecraftServer.java:328) at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:77) at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:95) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:549) at java.lang.Thread.run(Thread.java:748) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.13.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_201, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 442004928 bytes (421 MB) / 1374158848 bytes (1310 MB) up to 2831679488 bytes (2700 MB) JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump FML: New FML! Loaded coremods (and transformers): Nothing Profiler Position: N/A (disabled) Player Count: 0 / 8; [] Data Packs: vanilla, mod:forge, mod:celriff Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'forge' #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2019-02-17_04.16.52-server.txt [04:16:52.480] [Client Shutdown Thread/INFO] [minecraft/MinecraftServer]: Stopping server [04:16:52.480] [Client Shutdown Thread/INFO] [minecraft/MinecraftServer]: Saving players [04:16:52.481] [Client Shutdown Thread/INFO] [minecraft/MinecraftServer]: Saving worlds AL lib: (EE) alc_cleanup: 1 device not closed This is the new error I am having
  9. @DavidM I seemed to fix the issue by editing the mod.toml file. Now I am facing an issue where it says I have an illegal subscribe event, probably on my end though.
  10. @DavidM I don't claim to be a professional modder, I am not self taught and I do not learn things easily. I also feel as though you are attacking me right now. I just want to know how to fix my issue, so I ask politely that if you do not have the answer to keep this topic on subject and do not reply unless you have the answer. Thank you.
  11. @DavidM I was only using ItemBase as a tester for a quickstart. And I am using my methods from 1.12.2 coding so please forgive me if I don't use 1.13 methods BECAUSE there is no actual documentation or example mod out for 1.13 yet.
  12. I keep getting the following error: > Task :runClient 2019-02-17 01:39:31,360 main WARN Disabling terminal, you're running in an unsupported environment. [01:39:31.506] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher starting: java version 1.8.0_201 [01:39:31.570] [main/DEBUG] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmluserdevclient,fmluserdevserver,fmlclient,fmlserver,fmldevclient,fmldevserver,minecraft,testharness] [01:39:31.590] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [fml] [01:39:31.590] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Found naming services [] [01:39:31.609] [main/DEBUG] [cp.mo.mo.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [eventbus,object_holder_definalize,runtime_enum_extender,accesstransformer,capability_inject_definalize,runtimedistcleaner] [01:39:31.609] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.forgeVersion, 25.0.21, --fml.mcpVersion, 20190213.203750, --fml.mcpMappings, snapshot_20180921-1.13, --fml.mcVersion, 1.13.2, --fml.forgeGroup, net.minecraftforge, --accessToken, ????????, --version, FMLDev, --assetIndex, 1.13.1, --assetsDir, C:\Users\WolfH\.gradle\caches\forge_gradle\assets, --userProperties, {}] [01:39:31.609] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading [01:39:31.616] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loading service fml [01:39:31.620] [main/DEBUG] [ne.mi.fm.lo.LauncherVersion/CORE]: Found FMLLauncher version 25.0 [01:39:31.620] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML 25.0 loading [01:39:31.620] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found ModLauncher version : 0.9.4+34+78321c4 [01:39:31.620] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Initializing modjar URL handler [01:39:31.620] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found AccessTransformer version : 0.14.4+42+59f903b [01:39:31.620] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found EventBus version : 0.7.1+33+fb2fd5b [01:39:31.620] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found Runtime Dist Cleaner [01:39:31.630] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found CoreMod version : 0.2.0+14+c94c813 [01:39:31.888] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [01:39:31.888] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loaded service fml [01:39:31.896] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Configuring option handling for services [01:39:31.926] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services initializing [01:39:31.926] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service fml [01:39:31.929] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Setting up basic FML game directories [01:39:31.929] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing GAMEDIR directory : C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run [01:39:31.929] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path GAMEDIR is C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run [01:39:31.929] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing MODSDIR directory : C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run\mods [01:39:31.929] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path MODSDIR is C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run\mods [01:39:31.929] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing CONFIGDIR directory : C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run\config [01:39:31.929] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path CONFIGDIR is C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run\config [01:39:31.929] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path FMLCONFIG is C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run\config\fml.toml [01:39:31.929] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Loading configuration [01:39:31.996] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Preparing launch handler [01:39:31.996] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Using fmluserdevclient as launch service [01:39:31.996] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Received command line version data : MC Version: '1.13.2' MCP Version: '20190213.203750' Forge Version: '25.0.21' Forge group: 'net.minecraftforge' [01:39:32.000] [main/DEBUG] [ne.mi.fm.lo.LibraryFinder/CORE]: Found JAR forge at path C:\Users\WolfH\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.21_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.21_mapped_snapshot_20180921-1.13-recomp.jar [01:39:32.000] [main/DEBUG] [ne.mi.fm.lo.LibraryFinder/CORE]: Found JAR mcdata at path C:\Users\WolfH\.gradle\caches\forge_gradle\minecraft_repo\versions\1.13.2\client-data.jar [01:39:32.000] [main/DEBUG] [ne.mi.us.FMLUserdevLaunchProvider/CORE]: Injecting forge as mod 1.13.2-25.0.21_mapped_snapshot_20180921-1.13 from maven path C:\Users\WolfH\.gradle\caches\forge_gradle\minecraft_user_repo [01:39:32.006] [main/DEBUG] [ne.mi.fm.lo.FMLCommonLaunchHandler/CORE]: Got mod coordinates C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\build\resources\main;C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\build\classes\java\main from env [01:39:32.010] [main/DEBUG] [ne.mi.fm.lo.FMLCommonLaunchHandler/CORE]: Found supplied mod coordinates [{defaultmodid=[C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\build\resources\main, C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\build\classes\java\main]}] [01:39:32.019] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Found 1 language providers [01:39:32.019] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Found language provider javafml, version 25.0 [01:39:32.030] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Skipping adding forge jar - javafml is already present [01:39:32.030] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Initiating mod scan [01:39:32.030] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/SCAN]: Scanning for Mod Locators [01:39:32.057] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Found Mod Locators : (mods folder:null),(maven libs:null),(exploded directory:null) [01:39:32.057] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Scanning for mods and other resources to load. We know 3 ways to find mods [01:39:32.060] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Trying locator {ModJarsFolder locator at C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run\mods} [01:39:32.060] [main/DEBUG] [ne.mi.fm.lo.mo.ModsFolderLocator/SCAN]: Scanning mods dir C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\run\mods for mods [01:39:32.068] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Trying locator {Maven Directory locator for mods [C:\Users\WolfH\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.21_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.21_mapped_snapshot_20180921-1.13.jar]} [01:39:32.068] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/SCAN]: Mod file C:\Users\WolfH\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.21_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.21_mapped_snapshot_20180921-1.13.jar has a manifest [01:39:32.100] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Found mod file forge-1.13.2-25.0.21_mapped_snapshot_20180921-1.13.jar of type MOD with locator {Maven Directory locator for mods [C:\Users\WolfH\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.21_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.21_mapped_snapshot_20180921-1.13.jar]} [01:39:32.100] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Trying locator {ExplodedDir locator} [01:39:32.100] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/SCAN]: Mod file C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\build\resources\main is missing a manifest [01:39:32.100] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/SCAN]: Found mod file main of type MOD with locator {ExplodedDir locator} [01:39:32.100] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Parsing mod file candidate C:\Users\WolfH\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.21_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.21_mapped_snapshot_20180921-1.13.jar [01:39:32.150] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Loading mod file C:\Users\WolfH\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.13.2-25.0.21_mapped_snapshot_20180921-1.13\forge-1.13.2-25.0.21_mapped_snapshot_20180921-1.13.jar with language javafml [01:39:32.150] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Parsing mod file candidate C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk\build\resources\main Exception in thread "main" java.lang.RuntimeException: java.net.MalformedURLException: no protocol: at net.minecraftforge.fml.loading.StringUtils.toURL(StringUtils.java:51) at java.util.Optional.map(Optional.java:215) at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.<init>(ModFileInfo.java:61) at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.loadModFile(ModFileParser.java:59) at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.readModList(ModFileParser.java:51) at net.minecraftforge.fml.loading.moddiscovery.ModFile.identifyMods(ModFile.java:125) at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:75) at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:161) at net.minecraftforge.fml.loading.FMLServiceProvider.initialize(FMLServiceProvider.java:86) at cpw.mods.modlauncher.TransformationServiceDecorator.onInitialize(TransformationServiceDecorator.java:43) at cpw.mods.modlauncher.TransformationServicesHandler.lambda$initialiseTransformationServices$5(TransformationServicesHandler.java:75) at java.util.HashMap$Values.forEach(HashMap.java:981) at cpw.mods.modlauncher.TransformationServicesHandler.initialiseTransformationServices(TransformationServicesHandler.java:75) at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:40) at cpw.mods.modlauncher.Launcher.run(Launcher.java:53) at cpw.mods.modlauncher.Launcher.main(Launcher.java:44) at net.minecraftforge.userdev.UserdevLauncher.main(UserdevLauncher.java:77) Caused by: java.net.MalformedURLException: no protocol: at java.net.URL.<init>(URL.java:593) at java.net.URL.<init>(URL.java:490) at java.net.URL.<init>(URL.java:439) at net.minecraftforge.fml.loading.StringUtils.toURL(StringUtils.java:47) ... 16 more > Task :runClient FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':runClient'. > Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 1m 55s 6 actionable tasks: 4 executed, 2 up-to-date C:\Users\WolfH\Downloads\forge-1.13.2-25.0.21-mdk> And I can't figure this out. Here is my mod's source code: https://github.com/WolfHybrid23/Celriff
  13. Oh My Gosh... I am perhaps the biggest idiot to ever mod minecraft. I didn't update my ModItems class to use the SolstoneRock class instead of the ModBlockBase class... Yep it works now...
  14. It seems it's still not damaging me. I am at a loss.
  15. Okay, Thank you so very much for your help. And thanks for being patent with me too!
  16. Like this? if(EnchantmentHelper.getEnchantmentLevel(Enchantments.FIRE_PROTECTION, armor) > 0)return;
  17. It's still not damaging me. @diesieben07 public class SolstoneRockItem extends ItemBlock{ public SolstoneRockItem() { super(ModBlocks.SOLSTONE_ROCK); this.setRegistryName("solstone_rock"); this.setUnlocalizedName("SolstoneRock"); ModItems.ITEMS.add(this); } @Override public void onUpdate(ItemStack s, World w, Entity e, int l, boolean h) { if(e.isImmuneToFire() || e.getIsInvulnerable())return; for(ItemStack armor : e.getArmorInventoryList()) { for(int k = 0; k < armor.getEnchantmentTagList().tagCount(); k++) { if(armor.getEnchantmentTagList().getCompoundTagAt(k).getString("id") == "fire_protection")return; } } e.attackEntityFrom(DamageSource.ON_FIRE,1.0f); } }
  18. Could you give me an example? Here is the code for ItemBlockBase: public class ItemBlockBase extends ItemBlock{ public ItemBlockBase(Block b, String name, String unlocalName) { super(b); this.setRegistryName(name); this.setUnlocalizedName(unlocalName); this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS); ModItems.ITEMS.add(this); } }
  19. How do I override it then? I'm new to forge development sorry. I mainly use C++ and GML...
  20. I just tried onUpdate without any return statements and my code didn't execute, also the reason I used an ItemBlockBase was so I could override onUpdate in the first place. And because the Item I wanted to update was an ItemBlock.
  21. Hello, So I am creating an item that will burn the player if they aren't immune to fire and don't have fire protection armor, However the event doesn't appear to be getting called... Can someone explain what I did wrong? public class SolstoneRockItem extends ItemBlockBase{ public SolstoneRockItem() { super(ModBlocks.SOLSTONE_ROCK, "solstone_rock", "SolstoneRock"); } @Override public void onUpdate(ItemStack s, World w, Entity e, int l, boolean h) { for(ItemStack armor : e.getArmorInventoryList()) { NBTTagList enchList = armor.getEnchantmentTagList(); for(int i = 0; i < enchList.tagCount(); i++) { if(enchList.getCompoundTagAt(i).getInteger("id") == Enchantment.getEnchantmentID(Enchantments.FIRE_PROTECTION))return; } } e.attackEntityFrom(DamageSource.ON_FIRE, 1.0f); } } Thank you! EDIT: It appears that onUpdate isn't being called period. I will try a different approach.
×
×
  • Create New...

Important Information

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