error: package ModNameModItems does not exist

Started by Sone1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
error: package ModNameModItems does not exist

Task :compileJava FAILED
E:\Projects\Java\RadiantPicks\src\main\java\net\mcreator\radiantpicks\init\RadiantPicksModTabs.java:25: error: package RadiantPicksModItems does not exist () -> CreativeModeTab.builder().title(Component.translatable("item_group.radiant_picks.kirki")).icon(() -> new ItemStack(RadiantPicksModItems.CHIERIEPASHIAKIRKA.get())).displayItems((parameters, tabData) -> {
^
E:\Projects\Java\RadiantPicks\src\main\java\net\mcreator\radiantpicks\init\RadiantPicksModTabs.java:26: error: package RadiantPicksModItems does not exist tabData.accept(RadiantPicksModItems.SVIET_KIRKA.get());
^
E:\Projects\Java\RadiantPicks\src\main\java\net\mcreator\radiantpicks\init\RadiantPicksModTabs.java:27: error: package RadiantPicksModItems does not exist tabData.accept(RadiantPicksModItems.BUKMIEKIERSKAIAKIRKA.get());
^

...

 

100 errors
only showing the first 100 errors, of 145 total; use -Xmaxerrs if you would like to see more
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 1s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 14 seconds

 

This error i see in mcreator and this code i found in file RadiantPicksModTabs:

package net.mcreator.radiantpicks.init;

import net.minecraftforge.registries.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
..
..
import net.minecraft.network.chat.Component;
import net.minecraft.core.registries.Registries;

import net.mcreator.radiantpicks.RadiantPicksMod;

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class RadiantPicksModTabs {
    public static final DeferredRegister<CreativeModeTab> REGISTRY = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, RadiantPicksMod.MODID);
    public static final RegistryObject<CreativeModeTab> KIRKI = REGISTRY.register("kirki",
          () -> CreativeModeTab.builder().title(Component.translatable("item_group.radiant_picks.kirki")).icon(() -> new ItemStack(RadiantPicksModItems.CHIERIEPASHIAKIRKA.get())).displayItems((parameters, tabData) -> {
             tabData.accept(RadiantPicksModItems.SVIET_KIRKA.get());
.......

          }).withSearchBar().build());
    public static final RegistryObject<CreativeModeTab> MIECHI = REGISTRY.register("miechi",
          () -> CreativeModeTab.builder().title(Component.translatable("item_group.radiant_picks.miechi")).icon(() -> new ItemStack(RadiantPicksModItems.MIECH_GOGHONY.get())).displayItems((parameters, tabData) -> {
             tabData.accept(RadiantPicksModItems.MIECH_GOGHONY.get());
....
 
 

 already cleared the cache, deleted all the contents of the radiant picks folder and then updated gradle. It didn't help me.
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't have any plugins…
Tue, 10/29/2024 - 07:24
  • I don't have any plugins loaded