Workspace setup failed 2024.4 (1.20.1 forge)

Started by AltoidSE on

Topic category: Troubleshooting, bugs, and solutions

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Workspace setup failed 2024.4 (1.20.1 forge)

When I try to make a forge 1.20.1 workspace in the latest mcreator version, I get the following error.

Executing Gradle synchronization tasks
Build info: MCreator 2024.4.52410, forge-1.20.1, 64-bit, 65373 MB, Windows 10, JVM 21.0.4, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2025-01-04-03:06:56
FAILURE: Build failed with an exception.
* What went wrong:
Gradle could not start your build.
> Could not create service of type BuildLifecycleController using ServicesProvider.createBuildLifecycleController().
> Could not create service of type GradleInternal using ServicesProvider.createGradleModel().
> Could not create an instance of type org.gradle.invocation.DefaultGradle.
> Could not configure services using GradleScopeCompileServices.configure().
* 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.
BUILD FAILED in 6s
BUILD FAILED
Task completed in 6 seconds

I have tried clicking rerun, clearing the Gradle cache, resetting all of my settings to default, and deleting all of my non-default plugins.

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The only plugins I have left…
Sun, 01/05/2025 - 06:05

The only plugins I have left are the generators and core that come pre-installed, removing them stops mcreator from even starting.

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, I fixed the problem by…
Sun, 01/05/2025 - 07:20

Ok, I fixed the problem by uninstalling mcreator, manually deleting all remaining files, and reinstalling.

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Now I have a new problem. I…
Sun, 01/05/2025 - 07:28

Now I have a new problem. I wrote a quick test procedure for my mod, and now when I try to load into a world it gets stuck at 100% loading. 

 

Picture of the function:The Function

Here's the generated code:

@Mod.EventBusSubscriber
public class TestProcedure {
	@SubscribeEvent
	public static void onEntitySpawned(EntityJoinLevelEvent event) {
		execute(event, event.getLevel(), event.getEntity());
	}

	public static void execute(LevelAccessor world, Entity entity) {
		execute(null, world, entity);
	}

	private static void execute(@Nullable Event event, LevelAccessor world, Entity entity) {
		if (entity == null)
			return;
		if (entity instanceof LivingEntity && !(entity instanceof Player) && !(entity instanceof ServerPlayer) && !(entity instanceof ArmorStand)
				&& !entity.getType().is(TagKey.create(Registries.ENTITY_TYPE, new ResourceLocation("minecraft:bosses")))) {
			if (Math.random() < 0.95) {
				if (Math.random() < 0.78) {
					if (!entity.level().isClientSide())
						entity.discard();
					if (!world.isClientSide() && world.getServer() != null)
						world.getServer().getPlayerList().broadcastSystemMessage(Component.literal((entity + " Despawned")), false);
				} else if (Math.random() < 0.7) {
					while ((entity instanceof LivingEntity _livEnt ? _livEnt.getHealth() : -1) > 0) {
						entity.hurt(new DamageSource(world.registryAccess().registryOrThrow(Registries.DAMAGE_TYPE).getHolderOrThrow(DamageTypes.PLAYER_ATTACK)), 10);
					}
					if (!world.isClientSide() && world.getServer() != null)
						world.getServer().getPlayerList().broadcastSystemMessage(Component.literal((entity + " Killed")), false);
				} else {
					if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
						_entity.addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SLOWDOWN, 999, 127, false, false));
					if (!world.isClientSide() && world.getServer() != null)
						world.getServer().getPlayerList().broadcastSystemMessage(Component.literal((entity + " Frozen")), false);
				}
			}
		}
	}
}

 

And the logs from when I try to load into a world:

[23:26:45] [Render thread/INFO] [ne.mi.re.GameData/REGISTRIES]: Injecting existing registry data into this CLIENT instance 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:block Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:fluid Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:item Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:mob_effect Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:sound_event Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:potion Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:enchantment Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:entity_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:block_entity_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:particle_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:menu Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:painting_variant Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:recipe_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:recipe_serializer Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:attribute Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:stat_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:command_argument_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:villager_profession Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:point_of_interest_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:memory_module_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:sensor_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:schedule Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:activity Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:worldgen/carver Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:worldgen/feature Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:chunk_status Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:worldgen/block_state_provider_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:worldgen/foliage_placer_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:worldgen/tree_decorator_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry minecraft:worldgen/biome Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry forge:entity_data_serializers Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry forge:global_loot_modifier_serializers Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry forge:biome_modifier_serializers Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry forge:fluid_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry forge:structure_modifier_serializers Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry forge:holder_set_type Sync: ACTIVE -> STAGING 
[23:26:45] [Render thread/DEBUG] [ne.mi.re.ForgeRegistry/REGISTRIES]: Registry forge:display_contexts Sync: ACTIVE -> STAGING 
[23:26:46] [Render thread/DEBUG] [ne.mi.re.ObjectHolderRegistry/REGISTRIES]: Applying holder lookups 
[23:26:46] [Render thread/DEBUG] [ne.mi.re.ObjectHolderRegistry/REGISTRIES]: Holder lookups applied 
[23:26:46] [Render thread/DEBUG] [ne.mi.se.ServerLifecycleHooks/CORE]: Generating PackInfo named mod:forge for mod file / 
[23:26:46] [Render thread/DEBUG] [ne.mi.se.ServerLifecycleHooks/CORE]: Generating PackInfo named mod:novas_terror for mod file C:\Users\Keanu\MCreatorWorkspaces\novas_terror\build\resources\main 
[23:26:46] [Render thread/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/server/commands/SummonCommand 
[23:26:46] [Worker-Main-11/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/entity/raid/Raid 
[23:26:46] [Render thread/INFO] [minecraft/RecipeManager]: Loaded 7 recipes 
[23:26:47] [Render thread/INFO] [minecraft/AdvancementList]: Loaded 1271 advancements 
[23:26:47] [Render thread/DEBUG] [ne.mi.co.ForgeHooks/WP]: Gathering id map for writing to world save New World 
[23:26:47] [Render thread/DEBUG] [ne.mi.co.ForgeHooks/WP]: ID Map collection complete New World 
[23:26:47] [Server thread/INFO] [minecraft/IntegratedServer]: Starting integrated minecraft server version 1.20.1 
[23:26:47] [Server thread/INFO] [minecraft/MinecraftServer]: Generating keypair 
[23:26:47] [Server thread/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading configs type SERVER 
[23:26:47] [Server thread/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Built TOML config for .\saves\New World\serverconfig\forge-server.toml 
[23:26:47] [Server thread/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file .\saves\New World\serverconfig\forge-server.toml 
[23:26:47] [Server thread/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Watching TOML config file .\saves\New World\serverconfig\forge-server.toml for changes 
[23:26:47] [Server thread/DEBUG] [ne.mi.co.ForgeConfig/FORGEMOD]: Loaded forge config file forge-server.toml 
[23:26:47] [Thread-3/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file forge-server.toml changed, sending notifies 
[23:26:47] [Thread-3/DEBUG] [ne.mi.co.ForgeConfig/FORGEMOD]: Forge config just got changed on the file system! 
[23:26:47] [Server thread/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/levelgen/PhantomSpawner 
[23:26:47] [Server thread/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/levelgen/PatrolSpawner 
[23:26:47] [Server thread/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/entity/npc/CatSpawner 
[23:26:47] [Server thread/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/entity/ai/village/VillageSiege 
[23:26:48] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for dimension minecraft:overworld 
[23:26:48] [Server thread/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/levelgen/structure/templatesystem/StructureTemplate 
[23:26:49] [Render thread/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0% 
[23:26:49] [Render thread/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0% 
[23:26:49] [Render thread/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0% 
[23:26:49] [Render thread/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0% 
[23:26:50] [Render thread/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 23% 
[23:26:50] [Server thread/INFO] [ne.mi.se.pe.PermissionAPI/]: Successfully initialized permission handler forge:default_handler 
[23:26:50] [Render thread/INFO] [minecraft/LoggerChunkProgressListener]: Time elapsed: 2228 ms 
[23:26:50] [Server thread/DEBUG] [io.ne.bu.AbstractByteBuf/]: -Dio.netty.buffer.checkAccessible: true 
[23:26:50] [Server thread/DEBUG] [io.ne.bu.AbstractByteBuf/]: -Dio.netty.buffer.checkBounds: true 
[23:26:50] [Server thread/DEBUG] [io.ne.ut.ResourceLeakDetectorFactory/]: Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@7fe915b7 
[23:26:50] [Server thread/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/NaturalSpawner 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/1, l='ServerLevel[New World]', x=287.29, y=63.00, z=-151.55, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Turtle['Turtle'/2, l='ServerLevel[New World]', x=297.84, y=61.32, z=-128.31, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/3, l='ServerLevel[New World]', x=299.61, y=64.00, z=-155.37, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/4, l='ServerLevel[New World]', x=293.15, y=64.00, z=-160.50, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/5, l='ServerLevel[New World]', x=300.54, y=64.00, z=-166.38, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Spider['Spider'/6, l='ServerLevel[New World]', x=247.81, y=9.33, z=-163.70, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/8, l='ServerLevel[New World]', x=311.63, y=64.00, z=-151.33, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/9, l='ServerLevel[New World]', x=309.83, y=64.00, z=-152.17] Killed 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/10, l='ServerLevel[New World]', x=315.54, y=64.00, z=-157.38, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/11, l='ServerLevel[New World]', x=316.53, y=64.00, z=-152.50, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/12, l='ServerLevel[New World]', x=314.64, y=64.00, z=-164.39, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/13, l='ServerLevel[New World]', x=312.17, y=64.00, z=-171.50, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/14, l='ServerLevel[New World]', x=307.59, y=64.00, z=-161.40, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/15, l='ServerLevel[New World]', x=309.31, y=64.00, z=-165.69, removed=DISCARDED] Despawned 
[23:26:50] [Server thread/INFO] [minecraft/MinecraftServer]: Sheep['Sheep'/16, l='ServerLevel[New World]', x=316.56, y=64.00, z=-175.40, removed=DISCARDED] Despawned