Jump to content

Error "invalid value: -1" in intellij


IRDarkMERC

Recommended Posts

Hi

I want to start modding in intellij but I have a problem with final build when I want to test examplemod

let me explain u what I did and what happened step by step

 

1- I downloaded mdk 1.18.2(tested with both versions 40.0.51 and 40.0.52)

2- I extracted them and then open them as a project in intellij and it started to build and the build was successful(see the first build log)

3- then I typed 

.\gradlew genIntellijRuns

in local terminal
and it started to generate and it was successful too(see the genIntellijRuns log)

4- I opened configuration window and set on runClient with the setting u see in screenshot and clicked apply then ok

5- I clicked on little green triangle to run the project

6- it gave me that damn error 

invalid value: -1

I'm using jdk 17.0.2 and tested both mdk 40.0.51 and 40.0.52 
I set java_home variables too(when I type "javac -version" in cmd, it works)
I tried refresh dependencies too

 

 


Attachments :

configuration window screenshot
unknown.png

 

first build log(.txt file) : https://ufile.io/iav3w1lz

Starting Gradle Daemon...
Gradle Daemon started in 1 s 511 ms
Download https://maven.minecraftforge.net/org/apache/logging/log4j/log4j-core/maven-metadata.xml
> Configure project :
Java: 17.0.2, JVM: 17.0.2+8-LTS-86 (Oracle Corporation), Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.
[20:32:20] [main/INFO]: Writing debug log file accesstransform.log
[20:32:20] [main/INFO]: Access Transformer processor running version 8.0.7+8.0.7+master.43473d43
[20:32:20] [main/INFO]: Command line arguments [--inJar, C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.2-40.0.51\forge-1.18.2-40.0.51-injected.jar, --outJar, C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.2-40.0.51_mapped_official_1.18.2\forge-1.18.2-40.0.51_mapped_official_1.18.2.jar, --logFile, accesstransform.log, --atFile, C:\Users\DarkMERC\Desktop\Test Mod\build\_atJar_4\parent_at.cfg]
[20:32:20] [main/INFO]: Reading from C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.2-40.0.51\forge-1.18.2-40.0.51-injected.jar
[20:32:20] [main/INFO]: Writing to C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.2-40.0.51_mapped_official_1.18.2\forge-1.18.2-40.0.51_mapped_official_1.18.2.jar
[20:32:20] [main/INFO]: Transformer file C:\Users\DarkMERC\Desktop\Test Mod\build\_atJar_4\parent_at.cfg
[20:32:20] [main/WARN]: Found existing output jar C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.2-40.0.51_mapped_official_1.18.2\forge-1.18.2-40.0.51_mapped_official_1.18.2.jar, overwriting
[20:32:25] [main/INFO]: JAR transformation complete C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.2-40.0.51_mapped_official_1.18.2\forge-1.18.2-40.0.51_mapped_official_1.18.2.jar

> Task :prepareKotlinBuildScriptModel UP-TO-DATE
Setting up MCP environment
Initializing steps
Executing steps
 > Running 'downloadManifest'
 > Running 'downloadJson'
 > Running 'downloadClient'
 > Running 'downloadServer'
 > Running 'extractServer'
 > Running 'downloadClientMappings'
 > Running 'mergeMappings'
 > Running 'stripClient'
 > Running 'stripServer'
 > Running 'merge'
 > Running 'listLibraries'
 > Running 'rename'
 > Running 'AccessTransformer'
[20:32:40] [main/INFO]: Access Transformer processor running version 8.0.7+8.0.7+master.43473d43
[20:32:40] [main/INFO]: Command line arguments [--inJar, C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\mcp\1.18.2-20220404.173914\joined\rename\output.jar, --outJar, C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\mcp\1.18.2-20220404.173914\joined\AccessTransformer\output.jar, --atFile, C:\Users\DarkMERC\AppData\Local\Temp\FG_ats_16387739556575626434.cfg]
[20:32:40] [main/INFO]: Reading from C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\mcp\1.18.2-20220404.173914\joined\rename\output.jar
[20:32:40] [main/INFO]: Writing to C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\mcp\1.18.2-20220404.173914\joined\AccessTransformer\output.jar
[20:32:40] [main/INFO]: Transformer file C:\Users\DarkMERC\AppData\Local\Temp\FG_ats_16387739556575626434.cfg
[20:32:40] [main/WARN]: Found existing output jar C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\mcp\1.18.2-20220404.173914\joined\AccessTransformer\output.jar, overwriting
[20:32:44] [main/INFO]: JAR transformation complete C:\Users\DarkMERC\.gradle\caches\forge_gradle\minecraft_user_repo\mcp\1.18.2-20220404.173914\joined\AccessTransformer\output.jar
 > Running 'SideStripper'
 > Running 'decompile'
 > Running 'inject'
 > Running 'patch'
MCP environment setup is complete

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 3m 5s

 

genIntellijRuns log(.txt file) https://ufile.io/bh2olab6

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.   

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\DarkMERC\Desktop\Test Mod> .\gradlew genIntellijRuns
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.4/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build 

> Configure project :
Java: 17.0.2, JVM: 17.0.2+8-LTS-86 (Oracle Corporation), Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this li
cense. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the
 `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you ma
y not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this do
cument or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_e
ula.
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\world\entity\Entity
Type.java:332: warning: [removal] doSpecialSpawn(Mob,Level,float,float,float,BaseSpawner,MobSpawnType) in ForgeEventFactory has been deprecated and marked for removal
         if (t instanceof net.minecraft.world.entity.Mob && net.minecraftforge.event.ForgeEventFactory.doSpecialSpawn((net.minecraft.world.entity.Mob) t, p_20601_, p_20605_.getX(), p_2
0605_.getY(), p_20605_.getZ(), null, p_20606_)) return null;
                                                                                                      ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\world\level\LevelRe
ader.java:179: warning: [dep-ann] deprecated item is not annotated with @Deprecated
   default boolean isAreaLoaded(BlockPos center, int range) {
                   ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\extensi
ons\IForgeBlockState.java:643: warning: [removal] onToolUse(BlockState,Level,BlockPos,Player,ItemStack,ToolAction) in ForgeEventFactory has been deprecated and marked for removal      
        BlockState eventState = net.minecraftforge.event.ForgeEventFactory.onToolUse(self(), level, pos, player, stack, toolAction);
                                                                          ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\extensi
ons\IForgeBlockState.java:644: warning: [removal] getToolModifiedState(BlockState,Level,BlockPos,Player,ItemStack,ToolAction) in IForgeBlock has been deprecated and marked for removal 
        return eventState != self() ? eventState : self().getBlock().getToolModifiedState(self(), level, pos, player, stack, toolAction);
                                                                    ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\extensi
ons\IForgeFriendlyByteBuf.java:82: warning: [removal] <V>getRegistry(Class<? super V>) in RegistryManager has been deprecated and marked for removal
        IForgeRegistry<T> retrievedRegistry = RegistryManager.ACTIVE.getRegistry(regType);
                                                                    ^                     
  where V is a type-variable:                                                             
    V extends IForgeRegistryEntry<V> declared in method <V>getRegistry(Class<? super V>)
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\world\level\levelge
n\placement\NoiseBasedCountPlacement.java:34: warning: [removal] BIOME_INFO_NOISE in Biome has been deprecated and marked for removal
      double d0 = Biome.BIOME_INFO_NOISE.getValue((double)p_191741_.getX() / this.noiseFactor, (double)p_191741_.getZ() / this.noiseFactor, false);
                       ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\world\level\levelge
n\placement\NoiseThresholdCountPlacement.java:34: warning: [removal] BIOME_INFO_NOISE in Biome has been deprecated and marked for removal
      double d0 = Biome.BIOME_INFO_NOISE.getValue((double)p_191766_.getX() / 200.0D, (double)p_191766_.getZ() / 200.0D, false);
                       ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\world\level\levelge
n\structure\pieces\StructurePiecesBuilder.java:47: warning: [dep-ann] deprecated item is not annotated with @Deprecated
   public void moveInsideHeights(Random p_192793_, int p_192794_, int p_192795_) {
               ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\world\level\biome\B
iomeSpecialEffects.java:219: warning: [removal] BIOME_INFO_NOISE in Biome has been deprecated and marked for removal
            double d0 = Biome.BIOME_INFO_NOISE.getValue(p_48097_ * 0.0225D, p_48098_ * 0.0225D, false);
                             ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\world\entity\vehicl
e\AbstractMinecart.java:893: warning: [removal] getCartItem() in IForgeAbstractMinecart has been deprecated and marked for removal
      if (item == null) return getCartItem();
                               ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\Util.java:718: warn
ing: [removal] AccessController in java.security has been deprecated and marked for removal
            Process process = AccessController.doPrivileged((PrivilegedExceptionAction<Process>)(() -> {
                              ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\util\thread\NamedTh
readFactory.java:15: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
      SecurityManager securitymanager = System.getSecurityManager();
      ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\util\thread\NamedTh
readFactory.java:15: warning: [removal] getSecurityManager() in System has been deprecated and marked for removal
      SecurityManager securitymanager = System.getSecurityManager();
                                              ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraft\world\item\HoeItem.
java:39: warning: [removal] onHoeUse(UseOnContext) in ForgeEventFactory has been deprecated and marked for removal
      int hook = net.minecraftforge.event.ForgeEventFactory.onHoeUse(p_41341_);
                                                           ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\ForgeHo
oksClient.java:391: warning: [removal] FogDensity in EntityViewRenderEvent has been deprecated and marked for removal
        EntityViewRenderEvent.FogDensity event = new EntityViewRenderEvent.FogDensity(type, camera, partialTick, density);
                             ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\ForgeHo
oksClient.java:391: warning: [removal] FogDensity in EntityViewRenderEvent has been deprecated and marked for removal
        EntityViewRenderEvent.FogDensity event = new EntityViewRenderEvent.FogDensity(type, camera, partialTick, density);
                                                                          ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\ForgeHo
oksClient.java:402: warning: [removal] RenderFogEvent(FogMode,Camera,float,float) in RenderFogEvent has been deprecated and marked for removal
        MinecraftForge.EVENT_BUS.post(new EntityViewRenderEvent.RenderFogEvent(type, camera, partialTick, distance));
                                      ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\model\b
3d\B3DLoader.java:72: warning: [removal] B3DModel in net.minecraftforge.client.model.b3d has been deprecated and marked for removal
    private final Map<ResourceLocation, B3DModel> cache = new HashMap<>();
                                        ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\model\b
3d\B3DLoader.java:94: warning: [removal] B3DModel in net.minecraftforge.client.model.b3d has been deprecated and marked for removal
                B3DModel.Parser parser = new B3DModel.Parser(resource.getInputStream());
                ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\model\b
3d\B3DLoader.java:94: warning: [removal] B3DModel in net.minecraftforge.client.model.b3d has been deprecated and marked for removal
                B3DModel.Parser parser = new B3DModel.Parser(resource.getInputStream());
                                             ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\model\b
3d\B3DLoader.java:95: warning: [removal] B3DModel in net.minecraftforge.client.model.b3d has been deprecated and marked for removal
                B3DModel model = parser.parse();
                ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\model\b
3d\B3DLoader.java:108: warning: [removal] B3DModel in net.minecraftforge.client.model.b3d has been deprecated and marked for removal
        B3DModel model = cache.get(file);
        ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\model\b
3d\B3DLoader.java:358: warning: [removal] B3DModel in net.minecraftforge.client.model.b3d has been deprecated and marked for removal
        private final B3DModel model;
                      ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\model\b
3d\B3DLoader.java:366: warning: [removal] B3DModel in net.minecraftforge.client.model.b3d has been deprecated and marked for removal
        public ModelWrapper(ResourceLocation modelLocation, B3DModel model, ImmutableSet<String> meshes, boolean smooth, boolean gui3d, boolean isSideLit, int defaultKey)
                                                            ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\model\b
3d\B3DLoader.java:371: warning: [removal] B3DModel in net.minecraftforge.client.model.b3d has been deprecated and marked for removal
        public ModelWrapper(ResourceLocation modelLocation, B3DModel model, ImmutableSet<String> meshes, boolean smooth, boolean gui3d, boolean isSideLit, int defaultKey, ImmutableMap<
String, String> textures)
                                                            ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\client\model\b
3d\B3DLoader.java:670: warning: [removal] B3DModel in net.minecraftforge.client.model.b3d has been deprecated and marked for removal
                    else if(textures.get(0) == B3DModel.Texture.White) sprite = ForgeModelBakery.White.instance();
                                               ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\registries\Def
erredRegister.java:209: warning: [removal] <T,U>of(ResourceLocation,Class<T>,String) in RegistryObject has been deprecated and marked for removal
            ret = RegistryObject.of(key, (Class) this.superType, this.modid);
                                ^
  where T,U are type-variables:
    T extends IForgeRegistryEntry<T> declared in method <T,U>of(ResourceLocation,Class<T>,String)
    U extends T declared in method <T,U>of(ResourceLocation,Class<T>,String)
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\registries\Def
erredRegister.java:481: warning: [removal] <V>getRegistry(Class<? super V>) in RegistryManager has been deprecated and marked for removal
            return RegistryManager.ACTIVE.getRegistry((Class) this.superType);
                                         ^
  where V is a type-variable:
    V extends IForgeRegistryEntry<V> declared in method <V>getRegistry(Class<? super V>)
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\registries\Reg
istryObject.java:217: warning: [removal] <V>getRegistry(Class<? super V>) in RegistryManager has been deprecated and marked for removal
        this(name, RegistryManager.ACTIVE.<V>getRegistry(registryType.get()));
                                         ^
  where V is a type-variable:
    V extends IForgeRegistryEntry<V> declared in method <V>getRegistry(Class<? super V>)
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\registries\Reg
istryObject.java:254: warning: [removal] <V>getRegistry(Class<? super V>) in RegistryManager has been deprecated and marked for removal
                    this.registry = RegistryManager.ACTIVE.getRegistry(baseType);
                                                          ^
  where V is a type-variable:
    V extends IForgeRegistryEntry<V> declared in method <V>getRegistry(Class<? super V>)
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\registries\Reg
istryObject.java:265: warning: [removal] <V>getRegistry(Class<? super V>) in RegistryManager has been deprecated and marked for removal
        IForgeRegistry<V> registry = RegistryManager.ACTIVE.getRegistry(baseType);
                                                           ^
  where V is a type-variable:
    V extends IForgeRegistryEntry<V> declared in method <V>getRegistry(Class<? super V>)
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\craftin
g\conditions\AndCondition.java:47: warning: [removal] test() in ICondition has been deprecated and marked for removal
    public boolean test()
                   ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\craftin
g\conditions\FalseCondition.java:25: warning: [removal] test() in ICondition has been deprecated and marked for removal
    public boolean test()
                   ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\craftin
g\conditions\ItemExistsCondition.java:41: warning: [removal] test() in ICondition has been deprecated and marked for removal
    public boolean test()
                   ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\craftin
g\conditions\ModLoadedCondition.java:31: warning: [removal] test() in ICondition has been deprecated and marked for removal
    public boolean test()
                   ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\craftin
g\conditions\NotCondition.java:30: warning: [removal] test() in ICondition has been deprecated and marked for removal
    public boolean test()
                   ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\craftin
g\conditions\OrCondition.java:47: warning: [removal] test() in ICondition has been deprecated and marked for removal
    public boolean test()
                   ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\craftin
g\conditions\TagEmptyCondition.java:49: warning: [removal] test() in ICondition has been deprecated and marked for removal
    public boolean test()
                   ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\common\craftin
g\conditions\TrueCondition.java:26: warning: [removal] test() in ICondition has been deprecated and marked for removal
    public boolean test()
                   ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\event\ForgeEve
ntFactory.java:353: warning: [removal] UseHoeEvent in net.minecraftforge.event.entity.player has been deprecated and marked for removal
        UseHoeEvent event = new UseHoeEvent(context);
        ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\event\ForgeEve
ntFactory.java:353: warning: [removal] UseHoeEvent in net.minecraftforge.event.entity.player has been deprecated and marked for removal
        UseHoeEvent event = new UseHoeEvent(context);
                                ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\event\ForgeEve
ntFactory.java:369: warning: [removal] BlockToolInteractEvent in BlockEvent has been deprecated and marked for removal
                : new BlockToolInteractEvent(originalState, context, toolAction);
                      ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\event\ForgeEve
ntFactory.java:381: warning: [removal] BlockToolInteractEvent in BlockEvent has been deprecated and marked for removal
        BlockToolInteractEvent event = new BlockToolInteractEvent(level, pos, originalState, player, stack, toolAction);
        ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\event\ForgeEve
ntFactory.java:381: warning: [removal] BlockToolInteractEvent in BlockEvent has been deprecated and marked for removal
        BlockToolInteractEvent event = new BlockToolInteractEvent(level, pos, originalState, player, stack, toolAction);
                                           ^
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\registries\Gam
eData.java:250: warning: [removal] <V>getRegistry(Class<? super V>) in RegistryManager has been deprecated and marked for removal
        final IForgeRegistry<K> registry = RegistryManager.ACTIVE.getRegistry(value.getRegistryType());
                                                                 ^
  where V is a type-variable:
    V extends IForgeRegistryEntry<V> declared in method <V>getRegistry(Class<? super V>)
C:\Users\DarkMERC\Desktop\Test Mod\build\tmp\expandedArchives\forge-1.18.2-40.0.51_mapped_official_1.18.2-sources.jar_9fdbc63909ee4368485000325ccd5fa5\net\minecraftforge\registries\Obj
ectHolderRef.java:107: warning: [removal] <V>getRegistry(Class<? super V>) in RegistryManager has been deprecated and marked for removal
                registry = (ForgeRegistry<?>)RegistryManager.ACTIVE.getRegistry((Class<IForgeRegistryEntry>)type);
                                                                   ^
  where V is a type-variable:
    V extends IForgeRegistryEntry<V> declared in method <V>getRegistry(Class<? super V>)
Note: Some input files use or override a deprecated API.  
Note: Recompile with -Xlint:deprecation for details.      
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
46 warnings

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 1m 47s
8 actionable tasks: 8 executed
PS C:\Users\DarkMERC\Desktop\Test Mod>      

 

plz help me I want to start modding but I have this problem at the start of the work :( 

 

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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

    • i was playing forge modded singleplayer server then i added optifine to mods but it crashed with optifine is there anything to do without deleting optifine  crash report: https://paste.ee/p/Z13LO
    • package com.projectmushroom.lavapotions.item; import java.util.List;   import com.projectmushroom.lavapotions.LavaPotions;   import net.minecraft.core.BlockPos; import net.minecraft.sounds.SoundEvents; import net.minecraft.sounds.SoundSource; import net.minecraft.stats.Stats; import net.minecraft.tags.FluidTags; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResultHolder; import net.minecraft.world.entity.AreaEffectCloud; import net.minecraft.world.entity.boss.enderdragon.EnderDragon; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.ItemUtils; import net.minecraft.world.item.Items; import net.minecraft.world.item.alchemy.PotionUtils; import net.minecraft.world.item.alchemy.Potions; import net.minecraft.world.level.ClipContext; import net.minecraft.world.level.Level; import net.minecraft.world.level.gameevent.GameEvent; import net.minecraft.world.phys.BlockHitResult; import net.minecraft.world.phys.HitResult;   public class ReinforcedBottle extends Item { public ReinforcedBottle(Item.Properties p_40648_) { super(p_40648_); }   public InteractionResultHolder<ItemStack> use(Level p_40656_, Player p_40657_, InteractionHand p_40658_) { List<AreaEffectCloud> list = p_40656_.getEntitiesOfClass(AreaEffectCloud.class, p_40657_.getBoundingBox().inflate(2.0D), (p_40650_) -> { return p_40650_ != null && p_40650_.isAlive() && p_40650_.getOwner() instanceof EnderDragon; }); ItemStack itemstack = p_40657_.getItemInHand(p_40658_); if (!list.isEmpty()) { AreaEffectCloud areaeffectcloud = list.get(0); areaeffectcloud.setRadius(areaeffectcloud.getRadius() - 0.5F); p_40656_.playSound((Player)null, p_40657_.getX(), p_40657_.getY(), p_40657_.getZ(), SoundEvents.BOTTLE_FILL_DRAGONBREATH, SoundSource.NEUTRAL, 1.0F, 1.0F); p_40656_.gameEvent(p_40657_, GameEvent.FLUID_PICKUP, p_40657_.blockPosition()); return InteractionResultHolder.sidedSuccess(this.turnBottleIntoItem(itemstack, p_40657_, new ItemStack(Items.DRAGON_BREATH)), p_40656_.isClientSide()); } else { HitResult hitresult = getPlayerPOVHitResult(p_40656_, p_40657_, ClipContext.Fluid.SOURCE_ONLY); if (hitresult.getType() == HitResult.Type.MISS) { return InteractionResultHolder.pass(itemstack); } else { if (hitresult.getType() == HitResult.Type.BLOCK) { BlockPos blockpos = ((BlockHitResult)hitresult).getBlockPos(); if (!p_40656_.mayInteract(p_40657_, blockpos)) { return InteractionResultHolder.pass(itemstack); }   if (p_40656_.getFluidState(blockpos).is(FluidTags.LAVA)) { p_40656_.playSound(p_40657_, p_40657_.getX(), p_40657_.getY(), p_40657_.getZ(), SoundEvents.BOTTLE_FILL, SoundSource.NEUTRAL, 1.0F, 1.0F); p_40656_.gameEvent(p_40657_, GameEvent.FLUID_PICKUP, blockpos); return InteractionResultHolder.sidedSuccess(this.turnBottleIntoItem(itemstack, p_40657_,(new ItemStack(LavaPotions.REINFORCED_BOTTLE), .LAVA)), p_40656_.isClientSide()); } } return InteractionResultHolder.pass(itemstack); } } }   protected ItemStack turnBottleIntoItem(ItemStack p_40652_, Player p_40653_, ItemStack p_40654_) { p_40653_.awardStat(Stats.ITEM_USED.get(this)); return ItemUtils.createFilledResult(p_40652_, p_40653_, p_40654_); } }   This is what I have so far, it's pretty much just the waterbottle code but I'm just trying to figure out how to get it to pick up lava rather than water
    • I never started my own server manually but I follow every single step i saw in a youtube video.
  • Topics

×
×
  • Create New...

Important Information

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