Jump to content

Minecraft forge 1.20.1 prevent hopper taking item from input slot


Recommended Posts

I made a block entity in forge 1.20.1, I want to prevent hopper from taking input slot item, i tried to override the extractItem method, it prevented hopper from taking input slot item, but the player also unable to take/change the item in input slot unless the slot is empty.

Just now, CoolerProMC said:

FluidSeparatorBlockEntity Class

public class FluidSeparatorBlockEntity extends BlockEntity implements MenuProvider {
    private static final int INPUT_SLOT = 0;

    private final CustomItemHandler itemHandler = new CustomItemHandler(3){
        @Override
        protected void onContentsChanged(int slot) {
            setChanged();
        }

        @Override
        public boolean isItemValid(int slot, @NotNull ItemStack stack) {
            return slot == INPUT_SLOT;
        }

        @Override
        public @NotNull ItemStack extractItem(int slot, int amount, boolean simulate) {
            if (slot == INPUT_SLOT) {
                return ItemStack.EMPTY;
            }
            return super.extractItem(slot, amount, simulate);
        }
    };

    private LazyOptional<IItemHandler> lazyItemHandler = LazyOptional.empty();

    protected final ContainerData data;
    private int progress = 0;
    private int maxProgress = 78;


    public FluidSeparatorBlockEntity(BlockPos pPos, BlockState pBlockState) {
        super(ModBlockEntities.FLUID_SEPARATOR_BE.get(), pPos, pBlockState);
        this.data = new ContainerData() {
            @Override
            public int get(int pIndex) {
                return switch (pIndex) {
                    case 0 -> FluidSeparatorBlockEntity.this.progress;
                    case 1, 2 -> FluidSeparatorBlockEntity.this.maxProgress;
                    default -> 0;
                };
            }

            @Override
            public void set(int pIndex, int pValue) {
                switch (pIndex) {
                    case 0 -> FluidSeparatorBlockEntity.this.progress = pValue;
                    case 1, 2 -> FluidSeparatorBlockEntity.this.maxProgress = pValue;
                }
            }

            @Override
            public int getCount() {
                return 3;
            }
        };
    }

    @Override
    public @NotNull <T> LazyOptional<T> getCapability(@NotNull Capability<T> cap, @Nullable Direction side) {
        if(cap == ForgeCapabilities.ITEM_HANDLER) {
            return lazyItemHandler.cast();
        }

        return super.getCapability(cap, side);
    }

    @Override
    public void onLoad() {
        super.onLoad();
        lazyItemHandler = LazyOptional.of(() -> itemHandler);
    }

    @Override
    public void invalidateCaps() {
        super.invalidateCaps();
        lazyItemHandler.invalidate();
    }

    public void drops() {
        SimpleContainer inventory = new SimpleContainer(itemHandler.getSlots());
        for(int i = 0; i < itemHandler.getSlots(); i++) {
            inventory.setItem(i, itemHandler.getStackInSlot(i));
        }
        Containers.dropContents(this.level, this.worldPosition, inventory);
    }

    @Override
    public Component getDisplayName() {
        return Component.translatable("block.chemmaster.fluid_separator");
    }

    @Nullable
    @Override
    public AbstractContainerMenu createMenu(int pContainerId, Inventory pPlayerInventory, Player pPlayer) {
        return new FluidSeparatorMenu(pContainerId, pPlayerInventory, this, this.data);
    }

    @Override
    protected void saveAdditional(CompoundTag pTag) {
        pTag.put("inventory", itemHandler.serializeNBT());
        pTag.putInt("fluid_separator.progress", progress);

        super.saveAdditional(pTag);
    }

    @Override
    public void load(CompoundTag pTag) {
        super.load(pTag);
        itemHandler.deserializeNBT(pTag.getCompound("inventory"));
        progress = pTag.getInt("fluid_separator.progress");
    }

    public void tick(Level pLevel, BlockPos pPos, BlockState pState) {
        ItemStack inputStack = this.itemHandler.getStackInSlot(INPUT_SLOT);
        if (inputStack.getCount() < 2) {
            resetProgress();
            return;
        }
        if(hasRecipe()) {
            increaseCraftingProgress();
            setChanged(pLevel, pPos, pState);

            if(hasProgressFinished()) {
                craftItem();
                resetProgress();
            }
        } else {
            resetProgress();
        }
    }

    private void resetProgress() {
        progress = 0;
    }

    private void craftItem() {
        Optional<FluidSeparatingRecipe> recipe = getCurrentRecipe();
        if (recipe.isPresent()) {
            List<ItemStack> results = recipe.get().getOutputs();
            ItemStack inputStack = this.itemHandler.getStackInSlot(INPUT_SLOT);
            if (inputStack.getCount() < 2) {
                // If there are not enough items, do not proceed with crafting
                return;
            }

            // Extract the input item from the input slot
            this.itemHandler.internalExtractItem(INPUT_SLOT, 2, false);

            // Loop through each result item and find suitable output slots
            for (ItemStack result : results) {
                int outputSlot = findSuitableOutputSlot(result);
                if (outputSlot != -1) {
                    this.itemHandler.setStackInSlot(outputSlot, new ItemStack(result.getItem(),
                            this.itemHandler.getStackInSlot(outputSlot).getCount() + result.getCount()));
                } else {
                    // Handle the case where no suitable output slot is found
                    // This can be logging an error, throwing an exception, or any other handling logic
                    System.err.println("No suitable output slot found for item: " + result);
                }
            }
        }
    }

    private int findSuitableOutputSlot(ItemStack result) {
        // Implement logic to find a suitable output slot for the given result
        // Return the slot index or -1 if no suitable slot is found
        for (int i = 0; i < this.itemHandler.getSlots(); i++) {
            // Ensure we do not place the output item in the input slot
            if (i == INPUT_SLOT) {
                continue;
            }

            ItemStack stackInSlot = this.itemHandler.getStackInSlot(i);
            if (stackInSlot.isEmpty() || (stackInSlot.getItem() == result.getItem() && stackInSlot.getCount() + result.getCount() <= stackInSlot.getMaxStackSize())) {
                return i;
            }
        }
        return -1;
    }

    private boolean hasRecipe() {
        Optional<FluidSeparatingRecipe> recipe = getCurrentRecipe();

        if (recipe.isEmpty()) {
            return false;
        }

        List<ItemStack> results = recipe.get().getOutputs();

        for (ItemStack result : results) {
            if (!canInsertAmountIntoOutputSlot(result) || !canInsertItemIntoOutputSlot(result.getItem())) {
                return false;
            }
        }

        return true;
    }


    private Optional<FluidSeparatingRecipe> getCurrentRecipe(){
        SimpleContainer inventory = new SimpleContainer(this.itemHandler.getSlots());
        for (int i = 0; i < itemHandler.getSlots(); i++) {
            inventory.setItem(i, this.itemHandler.getStackInSlot(i));
        }

        return this.level.getRecipeManager().getRecipeFor(FluidSeparatingRecipe.Type.INSTANCE, inventory, level);
    }

    private boolean canInsertAmountIntoOutputSlot(ItemStack result) {
        for (int i = 1; i < this.itemHandler.getSlots(); i++) {
            ItemStack stackInSlot = this.itemHandler.getStackInSlot(i);
            if (stackInSlot.isEmpty() || (stackInSlot.getItem() == result.getItem() && stackInSlot.getCount() + result.getCount() <= stackInSlot.getMaxStackSize())) {
                return true;
            }
        }
        return false;
    }

    private boolean canInsertItemIntoOutputSlot(Item item) {
        for (int i = 1; i < this.itemHandler.getSlots(); i++) {
            ItemStack stackInSlot = this.itemHandler.getStackInSlot(i);
            if (stackInSlot.isEmpty() || stackInSlot.getItem() == item) {
                return true;
            }
        }
        return false;
    }


    private boolean hasProgressFinished() {
        return progress >= maxProgress;
    }

    private void increaseCraftingProgress() {
        progress++;
    }
}

 

Edited by CoolerProMC
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

    • Looks like primitivetools and thaumcraft are conflicting
    • ---- Minecraft Crash Report ---- // My bad. Time: 2024-06-26 09:33:59 CEST Description: Exception in server tick loop net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Thaumcraft (thaumcraft) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft     at panda.primitivetools.common.item.PrimitiveHatchet.getContainerItem(PrimitiveHatchet.java:35)     at net.minecraftforge.common.ForgeHooks.getContainerItem(ForgeHooks.java:1026)     at crafttweaker.mc1120.recipes.MCRecipeShaped.getRemainingItems(MCRecipeShaped.java:258)     at crafttweaker.mc1120.recipes.MCRecipeShaped.getRemainingItems(MCRecipeShaped.java:200)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.getAspectsFromIngredients(ThaumcraftCraftingManager.java:550)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTagsFromCraftingRecipes(ThaumcraftCraftingManager.java:514)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTagsFromRecipes(ThaumcraftCraftingManager.java:604)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTags(ThaumcraftCraftingManager.java:425)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.getObjectTags(ThaumcraftCraftingManager.java:179)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.getAspectsFromIngredients(ThaumcraftCraftingManager.java:558)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTagsFromCraftingRecipes(ThaumcraftCraftingManager.java:514)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTagsFromRecipes(ThaumcraftCraftingManager.java:604)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTags(ThaumcraftCraftingManager.java:425)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.getObjectTags(ThaumcraftCraftingManager.java:179)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.getAspectsFromIngredients(ThaumcraftCraftingManager.java:558)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTagsFromCraftingRecipes(ThaumcraftCraftingManager.java:514)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTagsFromRecipes(ThaumcraftCraftingManager.java:604)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTags(ThaumcraftCraftingManager.java:425)     at thaumcraft.common.lib.crafting.ThaumcraftCraftingManager.generateTags(ThaumcraftCraftingManager.java:391)     at thaumcraft.common.lib.InternalMethodHandler.generateTags(InternalMethodHandler.java:91)     at thaumcraft.api.aspects.AspectHelper.generateTags(AspectHelper.java:73)     at thaumcraft.api.aspects.AspectEventProxy.registerComplexObjectTag(AspectEventProxy.java:55)     at thaumcraft.api.ThaumcraftApi.registerComplexObjectTag(ThaumcraftApi.java:327)     at thaumcraft.common.config.ConfigAspects.registerItemAspects(ConfigAspects.java:415)     at thaumcraft.common.config.ConfigAspects.postInit(ConfigAspects.java:41)     at thaumcraft.proxies.CommonProxy.postInit(CommonProxy.java:82)     at thaumcraft.Thaumcraft.postInit(Thaumcraft.java:54)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:637)     at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)     at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)     at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:749)     at net.minecraftforge.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:108)     at net.minecraftforge.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:338)     at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:219)     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)     at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)     at java.lang.ClassLoader.loadClass(ClassLoader.java:418)     at java.lang.ClassLoader.loadClass(ClassLoader.java:351)     ... 62 more Caused by: net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerException: Exception in class transformer net.minecraftforge.fml.common.asm.transformers.SideTransformer@4f8b4bd0 from coremod FMLCorePlugin     at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:260)     at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)     ... 64 more Caused by: java.lang.RuntimeException: Attempted to load class bib for invalid side SERVER     at net.minecraftforge.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:62)     at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:256)     ... 66 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details --   Minecraft Version: 1.12.2   Operating System: Linux (amd64) version 6.1.0-9-amd64   Java Version: 1.8.0_282, Oracle Corporation   Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation   Memory: 464967200 bytes (443 MB) / 2205462528 bytes (2103 MB) up to 5609422848 bytes (5349 MB)   JVM Flags: 3 total; -Xms128M -Xmx5534M -XX:+UseSerialGC   IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0   FML: MCP 9.42 Powered by Forge 14.23.5.2838 114 mods loaded, 114 mods active        States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored                | State | ID                                | Version                      | Source                                              | Signature                                |        |:----- |:--------------------------------- |:---------------------------- |:--------------------------------------------------- |:---------------------------------------- |        | LCHIJ | minecraft                         | 1.12.2                       | minecraft.jar                                       | None                                     |        | LCHIJ | mcp                               | 9.42                         | minecraft.jar                                       | None                                     |        | LCHIJ | FML                               | 8.0.99.99                    | server.jar                                          | e3c3d50c7c986df74c645c0ac54639741c90a557 |        | LCHIJ | forge                             | 14.23.5.2838                 | server.jar                                          | e3c3d50c7c986df74c645c0ac54639741c90a557 |        | LCHIJ | openmodscore                      | 0.12                         | minecraft.jar                                       | None                                     |        | LCHIJ | ClientFixer                       | 1.12.2-1.9                   | minecraft.jar                                       | None                                     |        | LCHIJ | botania_tweaks_core               | -100                         | minecraft.jar                                       | None                                     |        | LCHIJ | crafttweaker                      | 4.1.19                       | CraftTweaker2-1.12-4.1.19 (1).jar                   | None                                     |        | LCHIJ | mtlib                             | 3.0.6                        | MTLib-3.0.6.jar                                     | None                                     |        | LCHIJ | modtweaker                        | 4.0.12                       | modtweaker-4.0.12.jar                               | None                                     |        | LCHIJ | jei                               | 4.15.0.268                   | jei_1.12.2-4.15.0.268.jar                           | None                                     |        | LCHIJ | abyssalcraft                      | 1.9.4-pre-4                  | AbyssalCraft-1.12-1.9.4-pre-4 (1).jar               | None                                     |        | LCHIJ | actuallyadditions                 | 1.12.2-r145                  | ActuallyAdditions_1.12.2_r145 (1).jar               | None                                     |        | LCHIJ | ic2                               | 2.8.182-ex112                | industrialcraft_2_2.8.182_ex112.jar                 | de041f9f6187debbc77034a344134053277aa3b0 |        | LCHIJ | advanced_solar_panels             | 4.3.0                        | AdvancedSolarPanels_1.12.2_4.3.0 (2).jar            | None                                     |        | LCHIJ | infinitylib                       | 1.12.2-1.12.0                | infinitylib-1.12.0.jar                              | None                                     |        | LCHIJ | agricraft                         | 2.12.0-1.12.0-a6             | AgriCraft-2.12.0-1.12.0-a6.jar                      | None                                     |        | LCHIJ | aoa3                              | 3.1                          | aoa3_1.12.2_3.1.jar                                 | None                                     |        | LCHIJ | appliedenergistics2               | rv6-stable-4                 | appliedenergistics2_rv6_stable_4 (2).jar            | dfa4d3ac143316c6f32aa1a1beda1e34d42132e5 |        | LCHIJ | autoreglib                        | 1.3-26                       | AutoRegLib-1.12.2-1.3-26.jar                        | None                                     |        | LCHIJ | codechickenlib                    | 3.2.2.353                    | CodeChickenLib-1.12.2-3.2.2.353-universal.jar       | f1850c39b2516232a2108a7bd84d1cb5df93b261 |        | LCHIJ | avaritia                          | 3.2.0                        | Avaritia_1.12_3.2.0.13_universal (1).jar            | None                                     |        | LCHIJ | avaritiarecipemaker               | 1.0.0                        | avaritiarecipemaker-1.0.0.jar                       | None                                     |        | LCHIJ | baubles                           | 1.5.2                        | Baubles_1.12_1.5.2 (2).jar                          | None                                     |        | LCHIJ | patchouli                         | 1.0-20                       | Patchouli-1.0-20.jar                                | None                                     |        | LCHIJ | bewitchment                       | 0.20.7                       | bewitchment-1.12.2-0.0.20.7.jar                     | None                                     |        | LCHIJ | botania_tweaks                    | 1.8.3                        | botania-tweaks-mod-1_12_2.jar                       | None                                     |        | LCHIE | thaumcraft                        | 6.1.BETA26                   | Thaumcraft_1.12.2_6.1.BETA26 (1).jar                | None                                     |        | LCHI  | botania                           | r1.10-361                    | Botania_1.12_r1.10_361 (1).jar                      | None                                     |        | LCHI  | redstoneflux                      | 2.1.0                        | RedstoneFlux-1.12-2.1.0.6-universal (5).jar         | 8a6abf2cb9e141b866580d369ba6548732eff25f |        | LCHI  | brandonscore                      | 2.4.19                       | BrandonsCore-1.12.2-2.4.19.214-universal.jar        | None                                     |        | LCHI  | buildcraftlib                     | 7.99.24.1                    | buildcraft_all_1.12.2_7.99.24.1.jar                 | None                                     |        | LCHI  | buildcraftcore                    | 7.99.24.1                    | buildcraft_all_1.12.2_7.99.24.1.jar                 | None                                     |        | LCHI  | buildcraftbuilders                | 7.99.24.1                    | buildcraft_all_1.12.2_7.99.24.1.jar                 | None                                     |        | LCHI  | buildcrafttransport               | 7.99.24.1                    | buildcraft_all_1.12.2_7.99.24.1.jar                 | None                                     |        | LCHI  | buildcraftsilicon                 | 7.99.24.1                    | buildcraft_all_1.12.2_7.99.24.1.jar                 | None                                     |        | LCHI  | theoneprobe                       | 1.4.28                       | theoneprobe-1.12-1.4.28.jar                         | None                                     |        | LCHI  | buildcraftcompat                  | 7.99.24.1                    | buildcraft_all_1.12.2_7.99.24.1.jar                 | None                                     |        | LCHI  | buildcraftenergy                  | 7.99.24.1                    | buildcraft_all_1.12.2_7.99.24.1.jar                 | None                                     |        | LCHI  | buildcraftfactory                 | 7.99.24.1                    | buildcraft_all_1.12.2_7.99.24.1.jar                 | None                                     |        | LCHI  | buildcraftrobotics                | 7.99.24.1                    | buildcraft_all_1.12.2_7.99.24.1.jar                 | None                                     |        | LCHI  | chameleon                         | 1.12-4.1.3                   | Chameleon-1.12-4.1.3.jar                            | None                                     |        | LCHI  | roots                             | 1.12.2-3.0.4                 | Roots-1.12.2-3.0.4 (1).jar                          | None                                     |        | LCHI  | chisel                            | MC1.12.2-0.2.1.35            | Chisel-MC1.12.2-0.2.1.35.jar                        | None                                     |        | LCHI  | cofhcore                          | 4.6.3                        | CoFHCore-1.12.2-4.6.3.27-universal (5).jar          | None                                     |        | LCHI  | cofhworld                         | 1.3.1                        | cofhworld-1.12.2-1.3.1.7-universal (3).jar          | 8a6abf2cb9e141b866580d369ba6548732eff25f |        | LCHI  | crafttweakerjei                   | 2.0.3                        | CraftTweaker2-1.12-4.1.19 (1).jar                   | None                                     |        | LCHI  | cucumber                          | 1.1.2                        | Cucumber-1.12.2-1.1.2.jar                           | None                                     |        | LCHI  | thermalfoundation                 | 2.6.3                        | ThermalFoundation-1.12.2-2.6.3.27-universal (2).jar | 8a6abf2cb9e141b866580d369ba6548732eff25f |        | LCHI  | draconicevolution                 | 2.3.23                       | Draconic-Evolution-1.12.2-2.3.23.345-universal.jar  | None                                     |        | LCHI  | ebwizardry                        | 4.2.1                        | ElectroblobsWizardry_4.2.1_MC1.12.2.jar             | None                                     |        | LCHI  | endercompass                      | 1.2.6.1                      | EnderCompass_1.12_1.2.6.1.jar                       | None                                     |        | LCHI  | endercore                         | 1.12.2-0.5.65                | EnderCore-1.12.2-0.5.65.jar                         | None                                     |        | LCHI  | thermalexpansion                  | 5.5.4                        | ThermalExpansion-1.12.2-5.5.4.43-universal (4).jar  | 8a6abf2cb9e141b866580d369ba6548732eff25f |        | LCHI  | enderio                           | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderiointegrationtic             | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderiobase                       | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderioconduits                   | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderioconduitsappliedenergistics | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderioconduitsopencomputers      | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderioconduitsrefinedstorage     | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderiointegrationforestry        | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | mantle                            | 1.12-1.3.3.49                | Mantle-1.12-1.3.3.49.jar                            | None                                     |        | LCHI  | twilightforest                    | 3.9.888                      | twilightforest_1.12.2_3.9.888_universal.jar         | None                                     |        | LCHI  | tconstruct                        | 1.12.2-2.12.0.135            | TConstruct-1.12.2-2.12.0.135.jar                    | None                                     |        | LCHI  | enderiointegrationticlate         | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderiomachines                   | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderiopowertools                 | 5.0.50                       | EnderIO-1.12.2-5.0.50 (2).jar                       | None                                     |        | LCHI  | enderstorage                      | 2.4.2.126                    | EnderStorage_1.12.2_2.4.2.126_universal.jar         | f1850c39b2516232a2108a7bd84d1cb5df93b261 |        | LCHI  | waila                             | 1.8.26                       | Hwyla-1.8.26-B41_1.12.2.jar                         | None                                     |        | LCHI  | extracells                        | 2.6.2                        | extracells-1.12.2-2.6.2a (1).jar                    | None                                     |        | LCHI  | extrautils2                       | 1.0                          | extrautils2_1.12_1.9.8.jar                          | None                                     |        | LCHI  | zerocore                          | 1.12.2-0.1.2.8               | zerocore-1.12.2-0.1.2.8.jar                         | None                                     |        | LCHI  | bigreactors                       | 1.12.2-0.4.5.67              | extremereactors-1.12.2-0.4.5.67.jar                 | None                                     |        | LCHI  | forbidden_arcanus                 | 1.12.2-1.1.4                 | forbidden_arcanus-1.12.2-1.1.4 (1).jar              | None                                     |        | LCHI  | cfm                               | 6.3.0                        | furniture_6.3.0_1.12.2.jar                          | None                                     |        | LCHI  | immersiveengineering              | 0.12-87                      | ImmersiveEngineering_0.12_87.jar                    | 4cb49fcde3b43048c9889e0a3d083225da926334 |        | LCHI  | immersivecables                   | 1.3.2                        | ImmersiveCables_1.12.2_1.3.2.jar                    | None                                     |        | LCHI  | immersivepetroleum                | @VERSION@                    | immersivepetroleum_1.12.2_1.1.5 (1).jar             | None                                     |        | LCHI  | industrialwires                   | 1.6-23                       | IndustrialWires_1.12.2_1.6_23 (1).jar               | 7e11c175d1e24007afec7498a1616bef0000027d |        | LCHI  | lunatriuscore                     | 1.2.0.42                     | LunatriusCore_1.12.2_1.2.0.42_universal (1).jar     | None                                     |        | LCHI  | ingameinfoxml                     | 2.8.2.94                     | InGameInfoXML-1.12.2-2.8.2.94-universal.jar         | None                                     |        | LCHI  | inventorytweaks                   | 1.64-dev+release.123.f374f4b | InventoryTweaks_1.64_dev.jar                        | 55d2cd4f5f0961410bf7b91ef6c6bf00a766dcbe |        | LCHI  | ironbackpacks                     | 1.12.2-3.0.8-12              | IronBackpacks_1.12.2_3.0.8_12.jar                   | None                                     |        | LCHI  | ironchest                         | 1.12.2-7.0.67.844            | ironchest_1.12.2_7.0.67.844.jar                     | None                                     |        | LCHI  | journeymap                        | 1.12.2-5.5.5                 | journeymap-1.12.2-5.5.5.jar                         | None                                     |        | LCHI  | kythsopmoss                       | 0.1                          | kythsopmoss-0_2.jar                                 | None                                     |        | LCHI  | laggoggles                        | FAT-1.12.2-4.8               | laggoggles-fat-1.12.2-4.8.jar                       | None                                     |        | LCHI  | mtrm                              | 1.2.2.30                     | MineTweakerRecipeMaker-1.12.2-1.2.2.30.jar          | None                                     |        | LCHI  | moartinkers                       | 0.6.0                        | moartinkers-0.6.0.jar                               | None                                     |        | LCHI  | mysticalagriculture               | 1.7.5                        | MysticalAgriculture-1.12.2-1.7.5.jar                | None                                     |        | LCHI  | mysticalagradditions              | 1.3.2                        | MysticalAgradditions-1.12.2-1.3.2.jar               | None                                     |        | LCHI  | mysticalworld                     | 1.12.2-1.3.2                 | MysticWorld-1.12.2-1.3.2.jar                        | None                                     |        | LCHI  | neid                              | 1.5.4.4                      | NotEnoughIDs-1.5.4.4.jar                            | None                                     |        | LCHI  | openmods                          | 0.12                         | OpenModsLib-1.12.2-0.12.jar                         | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |        | LCHI  | openblocks                        | 1.8                          | OpenBlocks-1.12.2-1.8.jar                           | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |        | LCHI  | primitivetools                    | 1.1.9                        | PrimitiveTools_1.12_1.1.9.jar                       | None                                     |        | LCHI  | psi                               | r1.1-72                      | Psi-1.12.2-r1.1-72.jar                              | None                                     |        | LCHI  | randomthings                      | 4.2.7.2                      | RandomThings_MC1.12.2_4.2.7.2.jar                   | d72e0dd57935b3e9476212aea0c0df352dd76291 |        | LCHI  | reborncore                        | 3.13.3.416                   | RebornCore-1.12.2-3.13.3.416-universal.jar          | 8727a3141c8ec7f173b87aa78b9b9807867c4e6b |        | LCHI  | storagedrawers                    | 1.12-5.2.5                   | StorageDrawers-1.12.1-5.3.3.jar                     | None                                     |        | LCHI  | tammodized                        | 0.15.5                       | TamModized-1.12.1-0.15.5.jar                        | None                                     |        | LCHI  | techreborn                        | 2.20.10.926                  | TechReborn-1.12.2-2.20.10.926-universal.jar         | 8727a3141c8ec7f173b87aa78b9b9807867c4e6b |        | LCHI  | thaumicenergistics                | 2.0.0                        | thaumicenergistics_1.12.2_2.0.0.jar                 | None                                     |        | LCHI  | thaumictinkerer                   | 1.12.2-5.0-353c71c           | thaumictinkerer_1.12.2_5.0_353c71c.jar              | None                                     |        | LCHI  | thermalcultivation                | 0.3.1                        | Thermal-Cultivation-Mod-1.12.2.jar                  | 8a6abf2cb9e141b866580d369ba6548732eff25f |        | LCHI  | thermaldynamics                   | 2.5.5                        | ThermalDynamics-1.12.2-2.5.5.21-universal.jar       | 8a6abf2cb9e141b866580d369ba6548732eff25f |        | LCHI  | tinkertoolleveling                | 1.12-1.0.3.DEV.56fac4f       | Tinkers_Tool_Leveling_Mod_1.12.2.jar                | None                                     |        | LCHI  | tweakergui                        | 0.5-beta                     | tweakergui-1.12.2-0.5-beta.jar                      | None                                     |        | LCHI  | vanillafix                        | 1.0.10-SNAPSHOT              | vanillafix-1.0.10-99.jar                            | None                                     |        | LCHI  | voidcraft                         | 0.26.10                      | VoidCraft-1.12-0.26.10.jar                          | None                                     |        | LCHI  | wanionlib                         | 1.12.2-1.5                   | WanionLib-1.12.2-1.5.jar                            | None                                     |        | LCHI  | techreborn_compat                 | 1.0.0                        | TechReborn-ModCompatibility-1.12.2-1.1.0.22.jar     | 8727a3141c8ec7f173b87aa78b9b9807867c4e6b |        | LCHI  | mysticallib                       | 1.12.2-1.3.1                 | mysticallib-1.12.2-1.3.1.jar                        | None                                     |   Loaded coremods (and transformers): Plugin (NotEnoughIDs-1.5.4.4.jar)                                         ru.fewizz.neid.asm.Transformer                                       VanillaFixLoadingPlugin (vanillafix-1.0.10-99.jar)                                                                                ClientFixer (clientfixer-1.12.2-1.9 (2).jar)                                         com.gamerforea.clientfixer.asm.ASMTransformer                                       Inventory Tweaks Coremod (InventoryTweaks_1.64_dev.jar)                                         invtweaks.forge.asm.ContainerTransformer                                       IELoadingPlugin (ImmersiveEngineering-core-0.12-87.jar)                                         blusunrize.immersiveengineering.common.asm.IEClassTransformer                                       ModFixLC (ModFix-1.12.2-1.0.0.1.jar)                                         modfix.ModFixCT                                       LoadingPlugin (RandomThings_MC1.12.2_4.2.7.2.jar)                                         lumien.randomthings.asm.ClassTransformer                                       Botania Tweaks Core (botania-tweaks-mod-1_12_2.jar)                                         quaternary.botaniatweaks.asm.BotaniaTweakerTransformer                                       RBLoadingPlugin (RealBench_1.12.2_1.3.3.jar)                                         pw.prok.realbench.asm.RBTransformer                                       OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.jar)                                         openmods.core.OpenModsClassTransformer                                       EnderCorePlugin (EnderCore-1.12.2-0.5.65-core.jar)                                         com.enderio.core.common.transform.EnderCoreTransformer                                         com.enderio.core.common.transform.SimpleMixinPatcher                                       CTMCorePlugin (CTM-MC1.12.2-0.3.3.22.jar)                                         team.chisel.ctm.client.asm.CTMTransformer   OpenModsLib class transformers: [llama_null_fix:FINISHED],[horse_base_null_fix:FINISHED],[pre_world_render_hook:ENABLED],[player_render_hook:ENABLED],[horse_null_fix:FINISHED]   AE2 Version: stable rv6-stable-4 for Forge 14.23.5.2768   Pulsar/tconstruct loaded Pulses: - TinkerCommons (Enabled/Forced)                                    - TinkerWorld (Enabled/Not Forced)                                    - TinkerTools (Enabled/Not Forced)                                    - TinkerHarvestTools (Enabled/Forced)                                    - TinkerMeleeWeapons (Enabled/Forced)                                    - TinkerRangedWeapons (Enabled/Forced)                                    - TinkerModifiers (Enabled/Forced)                                    - TinkerSmeltery (Enabled/Not Forced)                                    - TinkerGadgets (Enabled/Not Forced)                                    - TinkerOredict (Enabled/Forced)                                    - TinkerIntegration (Enabled/Forced)                                    - TinkerFluids (Enabled/Forced)                                    - TinkerMaterials (Enabled/Forced)                                    - TinkerModelRegister (Enabled/Forced)                                    - chiselIntegration (Enabled/Not Forced)                                    - wailaIntegration (Enabled/Not Forced)                                    - theoneprobeIntegration (Enabled/Not Forced)   RebornCore: Plugin Engine: 0               RebornCore Version: 3.13.3.416               Runtime Debofucsation 1   Ender IO: No known problems detected.                          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!             !!!You are looking at the diagnostics information, not at the crash.       !!!             !!!Scroll up until you see the line with '---- Minecraft Crash Report ----'!!!             !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!   AE2 Integration: IC2:ON, RC:OFF, MFR:OFF, Waila:ON, Mekanism:OFF, OpenComputers:OFF, THE_ONE_PROBE:ON, TESLA:OFF, CRAFTTWEAKER:ON   Suspected Mods: Primitive Tools (primitivetools), CraftTweaker JEI Support (crafttweakerjei), Thaumcraft (thaumcraft)   Profiler Position: N/A (disabled)   Is Modded: Definitely; Server brand changed to 'fml,forge'   Type: Dedicated Server (map_server.txt)  
    • Also make a test without   Relics/OctoLib enemyexpansion enlightened_end  
    • SOLVED With the help of some people on Discord I got this solved. it's if (entity.level().dimension() == Level.OVERWORLD) to test if your player is in the overworld, and you would change that depending on need. Thanks for the help!
  • Topics

×
×
  • Create New...

Important Information

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