• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Hello im trying to develop my first mod in eclipse java oxygen on MC 1.12.2 but when i launch the game using eclipse i loads with out the mod (4 mods loaded) 8 will also attach a copy of my console   [14:49:39] [main/INFO] [GradleStart]: Extra: [] [14:49:39] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/aster_myf3n/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [14:49:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [14:49:39] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [14:49:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [14:49:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [14:49:39] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2847 for Minecraft 1.12.2 loading [14:49:39] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_241, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_241 [14:49:39] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory. [14:49:39] [main/ERROR] [FML]: Full: C:\Users\aster_myf3n\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar [14:49:39] [main/ERROR] [FML]: Trimmed: c:/users/aster_myf3n/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/ [14:49:39] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [14:49:39] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs. 2020-04-04 14:49:41,147 main WARN Disabling terminal, you're running in an unsupported environment. [14:49:41] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin [14:49:41] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin [14:49:41] [main/INFO] [FML]: Searching C:\Users\aster_myf3n\Desktop\Minecraft Modding\New Template 1.12.2\run\.\mods for mods [14:49:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [14:49:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [14:49:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [14:49:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [14:49:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [14:49:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [14:49:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [14:49:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [14:49:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [14:49:43] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [14:49:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [14:49:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [14:49:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [14:49:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [14:49:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [14:49:44] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [14:49:44] [Client thread/INFO] [minecraft/Minecraft]: Setting user: Player891 [14:49:48] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer: [14:49:48] [Client thread/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4 [14:49:49] [Client thread/INFO] [FML]: -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_241, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 424599024 bytes (404 MB) / 519045120 bytes (495 MB) up to 3803185152 bytes (3627 MB)     JVM Flags: 0 total;     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML:     Loaded coremods (and transformers):     GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.6.13587 Compatibility Profile Context 20.2.2 26.20.15019.19000' Renderer: 'Radeon RX 570 Series' [14:49:50] [Client thread/INFO] [FML]: MinecraftForge v14.23.5.2847 Initialized [14:49:50] [Client thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. [14:49:50] [Client thread/INFO] [FML]: Invalid recipe found with multiple oredict ingredients in the same ingredient... [14:49:50] [Client thread/INFO] [FML]: Replaced 1227 ore ingredients [14:49:50] [Client thread/INFO] [FML]: Searching C:\Users\aster_myf3n\Desktop\Minecraft Modding\New Template 1.12.2\run\.\mods for mods [14:49:50] [Client thread/ERROR] [FML]: Unable to construct net.minecraftforge.fml.common.Mod container java.lang.reflect.InvocationTargetException: null     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_241]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_241]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_241]     at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_241]     at net.minecraftforge.fml.common.ModContainerFactory.build(ModContainerFactory.java:73) [ModContainerFactory.class:?]     at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:135) [DirectoryDiscoverer.class:?]     at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:104) [DirectoryDiscoverer.class:?]     at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:104) [DirectoryDiscoverer.class:?]     at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:104) [DirectoryDiscoverer.class:?]     at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:62) [DirectoryDiscoverer.class:?]     at net.minecraftforge.fml.common.discovery.ContainerType.findMods(ContainerType.java:47) [ContainerType.class:?]     at net.minecraftforge.fml.common.discovery.ModCandidate.explore(ModCandidate.java:74) [ModCandidate.class:?]     at net.minecraftforge.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:93) [ModDiscoverer.class:?]     at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:427) [Loader.class:?]     at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:568) [Loader.class:?]     at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232) [FMLClientHandler.class:?]     at net.minecraft.client.Minecraft.init(Minecraft.java:514) [Minecraft.class:?]     at net.minecraft.client.Minecraft.run(Minecraft.java:422) [Minecraft.class:?]     at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_241]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241]     at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_241]     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_241]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241]     at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_241]     at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]     at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: java.lang.IllegalArgumentException: The modId MM_MarrsI must be all lowercase.     at net.minecraftforge.fml.common.FMLModContainer.sanityCheckModId(FMLModContainer.java:159) ~[FMLModContainer.class:?]     at net.minecraftforge.fml.common.FMLModContainer.<init>(FMLModContainer.java:130) ~[FMLModContainer.class:?]     ... 31 more [14:49:52] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [14:49:52] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 122266700 nanos [14:49:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge] at CLIENT [14:49:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge] at SERVER [14:49:53] [Client thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge [14:49:53] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [14:49:53] [Client thread/INFO] [FML]: Found 1168 ObjectHolder annotations [14:49:53] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [14:49:53] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [14:49:53] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [14:49:53] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [14:49:53] [Client thread/INFO] [FML]: Applying holder lookups [14:49:53] [Client thread/INFO] [FML]: Holder lookups applied [14:49:53] [Client thread/INFO] [FML]: Applying holder lookups [14:49:53] [Client thread/INFO] [FML]: Holder lookups applied [14:49:53] [Client thread/INFO] [FML]: Applying holder lookups [14:49:53] [Client thread/INFO] [FML]: Holder lookups applied [14:49:53] [Client thread/INFO] [FML]: Applying holder lookups [14:49:53] [Client thread/INFO] [FML]: Holder lookups applied [14:49:53] [Client thread/INFO] [FML]: Injecting itemstacks [14:49:53] [Client thread/INFO] [FML]: Itemstack injection complete [14:49:53] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: AHEAD Target: null [14:50:00] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem... [14:50:00] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL [14:50:00] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org) [14:50:00] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized. [14:50:00] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started [14:50:08] [Client thread/INFO] [FML]: Max texture size: 16384 [14:50:09] [Client thread/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas [14:50:11] [Client thread/INFO] [FML]: Applying holder lookups [14:50:11] [Client thread/INFO] [FML]: Holder lookups applied [14:50:11] [Client thread/INFO] [FML]: Injecting itemstacks [14:50:11] [Client thread/INFO] [FML]: Itemstack injection complete [14:50:11] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [14:50:11] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer: [14:50:11] [Client thread/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded [14:50:12] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id  
    • ITickList is a generic class so what you really want is ITickList<Block>   And thus itemIn becomes Block instead of Object.
    • 1.12 is no longer supported on these forums due to age. Please update to a modern version to receive support here.   More information on supported versions can be found in the LTS link at the top of every page.
    • 1.12 is no longer supported on these forums due to age. Please update to a modern version to receive support here.   More information on supported versions can be found in the LTS link at the top of every page.
    • package drachenbauer32.yellowredstonemod.blocks; import java.util.Random; import net.minecraft.block.BlockState; import net.minecraft.block.RedstoneOreBlock; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.particles.RedstoneParticleData; import net.minecraft.util.ActionResultType; import net.minecraft.util.Direction; import net.minecraft.util.Hand; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockRayTraceResult; import net.minecraft.world.ITickList; import net.minecraft.world.World; import net.minecraft.world.server.ServerWorld; public class YellowRedstoneOreBlock extends RedstoneOreBlock { public YellowRedstoneOreBlock(Properties properties) { super(properties); } public void onBlockClicked(BlockState state, World worldIn, BlockPos pos, PlayerEntity player) { activate(state, worldIn, pos); } @Override public void onEntityWalk(World worldIn, BlockPos pos, Entity entityIn) { activate(worldIn.getBlockState(pos), worldIn, pos); } @Override public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) { activate(state, world, pos); if (world.isRemote) { return ActionResultType.SUCCESS; } else { return ActionResultType.PASS; } } private static void activate(BlockState state, World world, BlockPos pos) { spawnParticles(world, pos); if (!state.get(LIT)) { ITickList tickList = world.getPendingBlockTicks(); tickList.scheduleTick(pos, itemIn, 80); world.setBlockState(pos, state.with(LIT, Boolean.valueOf(true)), 3); } } @Override public void animateTick(BlockState state, World world, BlockPos pos, Random rand) { if(state.get(LIT)) { spawnParticles(world, pos); } } private static void spawnParticles(World world, BlockPos pos) { Random random = world.rand; for(Direction direction : Direction.values()) { BlockPos blockpos = pos.offset(direction); if (!world.getBlockState(blockpos).isOpaqueCube(world, blockpos)) { Direction.Axis direction$axis = direction.getAxis(); double d1 = direction$axis == Direction.Axis.X ? 0.5D + 0.5625D * (double)direction.getXOffset() : (double)random.nextFloat(); double d2 = direction$axis == Direction.Axis.Y ? 0.5D + 0.5625D * (double)direction.getYOffset() : (double)random.nextFloat(); double d3 = direction$axis == Direction.Axis.Z ? 0.5D + 0.5625D * (double)direction.getZOffset() : (double)random.nextFloat(); world.addParticle(new RedstoneParticleData(1.0F, 0.875F, 0.0F, 1.0F), (double)pos.getX() + d1, (double)pos.getY() + d2, (double)pos.getZ() + d3, 0.0D, 0.0D, 0.0D); } } } @Override public void tick(BlockState state, ServerWorld worldIn, BlockPos pos, Random rand) { } }   It´s in the method "activate".
  • Topics

  • Who's Online (See full list)