Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.15.2] Flag problem with cauldron-like block


SW Raki
 Share

Recommended Posts

Hello my dear friends.

I created a custom cauldron-like block. everything works fine, it renders like i want it to. The block cant accept duplicate items to generate tier-based dung item.

Example: to generate tier 1 crafting dung, you need 1 dirt, then 1 bone meal, and then 3 different tier 0 crop products (vanilla items like wheat, carrot, potato etc.).
The Problem: if i use, for example, wheat on one DungInfuser Block, i can't use wheat anymore on any DungInfuser Block. It doesn't matter if i destroy the block or place multiple blocks, destroy and replace them.
I started modding this week and i havent used java for quite a while, so i dont really get what i did wrong.

I apologise in advance for my terrible english and hope you get my issue right.

PS: Currently, it doesnt drop the resulting crafting dung, it is not implemented yet. I want to fix this issue first.

package com.kahmi.elementcrops.objects.blocks;

import java.util.Arrays;

import com.kahmi.elementcrops.objects.items.FruitModItem;

import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.pathfinding.PathType;
import net.minecraft.state.IntegerProperty;
import net.minecraft.state.StateContainer;
import net.minecraft.stats.Stats;
import net.minecraft.util.ActionResultType;
import net.minecraft.util.Hand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.shapes.IBooleanFunction;
import net.minecraft.util.math.shapes.ISelectionContext;
import net.minecraft.util.math.shapes.VoxelShape;
import net.minecraft.util.math.shapes.VoxelShapes;
import net.minecraft.world.IBlockReader;
import net.minecraft.world.World;

public class DungInfuserBlock extends Block {
	public static final IntegerProperty LEVEL = IntegerProperty.create("level", 0, 5);
	private static final VoxelShape INSIDE = makeCuboidShape(2.0D, 4.0D, 2.0D, 14.0D, 16.0D, 14.0D);
	private static final VoxelShape SHAPE = VoxelShapes.combineAndSimplify(VoxelShapes.fullCube(), VoxelShapes.or(makeCuboidShape(0.0D, 0.0D, 4.0D, 16.0D, 3.0D, 12.0D), makeCuboidShape(4.0D, 0.0D, 0.0D, 12.0D, 3.0D, 16.0D), makeCuboidShape(2.0D, 0.0D, 2.0D, 14.0D, 3.0D, 14.0D), INSIDE), IBooleanFunction.ONLY_FIRST);
	private int mContentTier = 0;
	private Item[] mUsedContent = new Item[3];
	public DungInfuserBlock(Properties pProperties) {
	   super(pProperties);
	   this.setDefaultState(this.stateContainer.getBaseState().with(LEVEL, Integer.valueOf(0)));
	}

	public VoxelShape getShape(BlockState pState, IBlockReader pWorldIn, BlockPos pPos, ISelectionContext pContext) {
		return SHAPE;
	}

	public VoxelShape getRaytraceShape(BlockState pState, IBlockReader pWworldIn, BlockPos pPos) {
		return INSIDE;
	}

	public ActionResultType onBlockActivated(BlockState pState, World pWorldIn, BlockPos pPos, PlayerEntity pPlayer, Hand pHandIn, BlockRayTraceResult p_225533_6_) {
		ItemStack heldItemStack = pPlayer.getHeldItem(pHandIn);
		int level = pState.get(LEVEL);
		if (heldItemStack.isEmpty() || level == 5) {
			return ActionResultType.PASS;
		} else {
			Item heldItem = heldItemStack.getItem();
			if ((heldItem == Items.DIRT || heldItem == Items.COARSE_DIRT) && level == 0 && !pWorldIn.isRemote) {
				if (!pPlayer.abilities.isCreativeMode) {
					pPlayer.setHeldItem(pHandIn, ItemStack.EMPTY);
				}

				pPlayer.addStat(Stats.FILL_CAULDRON);
				this.setContentLevel(pWorldIn, pPos, pState, 1);
				return ActionResultType.SUCCESS;
			} else if (heldItem == Items.BONE_MEAL && level == 1 && !pWorldIn.isRemote) {
				if (!pPlayer.abilities.isCreativeMode) {
					pPlayer.setHeldItem(pHandIn, ItemStack.EMPTY);
				}

				pPlayer.addStat(Stats.FILL_CAULDRON);
				this.setContentLevel(pWorldIn, pPos, pState, 2);
				return ActionResultType.SUCCESS;
			} else if ((heldItem == Items.POTATO || heldItem == Items.CARROT || heldItem == Items.WHEAT || heldItem == Items.BEETROOT || heldItem == Items.MELON_SLICE || heldItem == Items.PUMPKIN) && level >= 2 && !Arrays.asList(mUsedContent).contains(heldItem) && !pWorldIn.isRemote) {
				if (!pPlayer.abilities.isCreativeMode) {
					pPlayer.setHeldItem(pHandIn, ItemStack.EMPTY);
				}
				
				pPlayer.addStat(Stats.FILL_CAULDRON);
				this.setContentLevel(pWorldIn, pPos, pState, level + 1);
				this.mUsedContent[level - 2] = heldItem;
				return ActionResultType.SUCCESS;
			} else if (heldItem instanceof FruitModItem && level >= 2 && !pWorldIn.isRemote) {
				FruitModItem iHeldItem = (FruitModItem)heldItem;
				if (level == 2) {
					this.mContentTier = iHeldItem.TIER;
					if (!pPlayer.abilities.isCreativeMode) {
						pPlayer.setHeldItem(pHandIn, ItemStack.EMPTY);
					}
					
					pPlayer.addStat(Stats.FILL_CAULDRON);
					this.setContentLevel(pWorldIn, pPos, pState, level + 1);
					this.mUsedContent[level - 2] = heldItem;
					return ActionResultType.SUCCESS;
				} else if (this.mContentTier == iHeldItem.TIER) {
					if (!pPlayer.abilities.isCreativeMode) {
						pPlayer.setHeldItem(pHandIn, ItemStack.EMPTY);
					}
					
					pPlayer.addStat(Stats.FILL_CAULDRON);
					this.setContentLevel(pWorldIn, pPos, pState, level + 1);
					this.mUsedContent[level - 2] = heldItem;
					return ActionResultType.SUCCESS;
				}
			}
		}
		return ActionResultType.PASS;
	}

	   public void setContentLevel(World pWorldIn, BlockPos pPos, BlockState pState, int pLevel) {
	      pWorldIn.setBlockState(pPos, pState.with(LEVEL, Integer.valueOf(MathHelper.clamp(pLevel, 0, 5))), 2);
	      pWorldIn.updateComparatorOutputLevel(pPos, this);
	   }

	   /**
	    * @deprecated call via {@link IBlockState#hasComparatorInputOverride()} whenever possible. Implementing/overriding
	    * is fine.
	    */
	   public boolean hasComparatorInputOverride(BlockState pState) {
	      return true;
	   }

	   /**
	    * @deprecated call via {@link IBlockState#getComparatorInputOverride(World,BlockPos)} whenever possible.
	    * Implementing/overriding is fine.
	    */
	   public int getComparatorInputOverride(BlockState pBlockState, World pWorldIn, BlockPos pPos) {
	      return pBlockState.get(LEVEL);
	   }

	   protected void fillStateContainer(StateContainer.Builder<Block, BlockState> pBuilder) {
	      pBuilder.add(LEVEL);
	   }

	   public boolean allowsMovement(BlockState pState, IBlockReader pWorldIn, BlockPos pPos, PathType pType) {
	      return false;
	   }
}

 

Link to comment
Share on other sites

Howdy

 

The problem is that there is only one instance of your DungInfuserBlock block, not one for each placed block.  If you try and store information about each world block in your DungInfuserBlock, it can only store one at a time.  (The DungInfuserBlock is a "flyweight" object - google Design Pattern Flyweight for more info).

 

You should use a TileEntity instead, to store information about each placed block.  The vanilla CampfireBlock (with CampfireTileEntity) does this, for example.

There is also an example of this in the following tutorial project:

https://github.com/TheGreyGhost/MinecraftByExample/tree/master

see mbe20.

 

-TGG

 

  • Thanks 1
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
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.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • If someone need i can post the log  [22:00:59] [main/INFO]: Loading tweak class name optifine.OptiFineTweaker [22:00:59] [main/INFO]: Using primary tweak class name optifine.OptiFineTweaker [22:00:59] [main/INFO]: Calling tweak class optifine.OptiFineTweaker [22:00:59] [main/INFO]: [OptiFine] OptiFineTweaker: acceptOptions [22:00:59] [main/INFO]: [OptiFine] OptiFineTweaker: injectIntoClassLoader [22:00:59] [main/INFO]: [OptiFine] OptiFine ClassTransformer [22:00:59] [main/INFO]: [OptiFine] OptiFine ZIP file: C:\Users\gabbo\AppData\Roaming\.minecraft\libraries\optifine\OptiFine\1.18.2_HD_U_H7\OptiFine-1.18.2_HD_U_H7.jar [22:00:59] [main/INFO]: [OptiFine] OptiFineTweaker: getLaunchArguments [22:00:59] [main/INFO]: [OptiFine] OptiFineTweaker: getLaunchTarget [22:00:59] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main} [22:01:00] [main/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.eventbus.api.Event$Result [22:01:00] [main/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeEntity [22:01:00] [main/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.logging.CrashReportExtender [22:01:01] [main/INFO]: [OptiFine] (Reflector) Method not present: aid.create [22:01:03] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.ForgeHooksClient [22:01:04] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [22:01:05] [Render thread/INFO]: Setting user: Ciube8Bit [22:01:05] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.settings.KeyConflictContext [22:01:05] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: dyo.getKeyModifier [22:01:05] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.settings.KeyModifier [22:01:05] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 build 10 [22:01:05] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.fml.loading.progress.EarlyProgressVisualization.handOffWindow [22:01:06] [Render thread/INFO]: [OptiFine]  [22:01:06] [Render thread/INFO]: [OptiFine] OptiFine_1.18.2_HD_U_H7 [22:01:06] [Render thread/INFO]: [OptiFine] Build: 20220410-185216 [22:01:06] [Render thread/INFO]: [OptiFine] OS: Windows 10 (amd64) version 10.0 [22:01:06] [Render thread/INFO]: [OptiFine] Java: 17.0.1, Microsoft [22:01:06] [Render thread/INFO]: [OptiFine] VM: OpenJDK 64-Bit Server VM (mixed mode), Microsoft [22:01:06] [Render thread/INFO]: [OptiFine] LWJGL: 3.3.0 Win32 WGL EGL OSMesa VisualC DLL [22:01:06] [Render thread/INFO]: [OptiFine] OpenGL: NVIDIA GeForce RTX 2070 Super/PCIe/SSE2, version 3.2.0 NVIDIA 511.79, NVIDIA Corporation [22:01:06] [Render thread/INFO]: [OptiFine] OpenGL Version: 3.2.0 [22:01:06] [Render thread/INFO]: [OptiFine] Maximum texture size: 32768x32768 [22:01:06] [VersionCheck/INFO]: [OptiFine] Checking for new version [22:01:06] [Render thread/INFO]: [Shaders] OpenGL Version: 3.2.0 NVIDIA 511.79 [22:01:06] [Render thread/INFO]: [Shaders] Vendor:  NVIDIA Corporation [22:01:06] [Render thread/INFO]: [Shaders] Renderer: NVIDIA GeForce RTX 2070 Super/PCIe/SSE2 [22:01:06] [Render thread/INFO]: [Shaders] Capabilities:  2.0  2.1  3.0  3.2  -  [22:01:06] [Render thread/INFO]: [Shaders] GL_MAX_DRAW_BUFFERS: 8 [22:01:06] [Render thread/INFO]: [Shaders] GL_MAX_COLOR_ATTACHMENTS: 8 [22:01:06] [Render thread/INFO]: [Shaders] GL_MAX_TEXTURE_IMAGE_UNITS: 32 [22:01:06] [Render thread/INFO]: [Shaders] Load shaders configuration. [22:01:06] [Render thread/INFO]: [Shaders] No shaderpack loaded. [22:01:06] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.fml.ModList [22:01:06] [Render thread/WARN]: Couldn't get pack info for: afc: 'pack.mcmeta' in ResourcePack 'C:\Users\gabbo\AppData\Roaming\.minecraft\resourcepacks\boss-bars-e1170-default.zip' [22:01:06] [Render thread/WARN]: Couldn't get pack info for: afc: 'pack.mcmeta' in ResourcePack 'C:\Users\gabbo\AppData\Roaming\.minecraft\resourcepacks\boss-bars-e1170.zip' [22:01:06] [Render thread/WARN]: Couldn't get pack info for: afc: 'pack.mcmeta' in ResourcePack 'C:\Users\gabbo\AppData\Roaming\.minecraft\resourcepacks\Colourful Containers v0.3 - 1.15.zip' [22:01:06] [Render thread/WARN]: Removed resource pack lunar from options because it doesn't seem to exist anymore [22:01:06] [VersionCheck/INFO]: [OptiFine] Version found: H6 [22:01:06] [Render thread/WARN]: [OptiFine] (Reflector) java.lang.ClassNotFoundException: sun.misc.SharedSecrets [22:01:06] [Render thread/WARN]: [OptiFine] (Reflector) java.lang.ClassNotFoundException: jdk.internal.misc.SharedSecrets [22:01:06] [Render thread/WARN]: [OptiFine] (Reflector) java.lang.ClassNotFoundException: sun.misc.VM [22:01:06] [Render thread/WARN]: [OptiFine] (Reflector) java.lang.reflect.InaccessibleObjectException: Unable to make public static long jdk.internal.misc.VM.maxDirectMemory() accessible: module java.base does not "exports jdk.internal.misc" to unnamed module @4fe7962 [22:01:06] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.ItemModelMesherForge [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.model.pipeline.ForgeBlockModelRenderer [22:01:07] [Render thread/INFO]: Narrator library for x64 successfully loaded [22:01:07] [Render thread/INFO]: Reloading ResourceManager: Default [22:01:07] [Render thread/INFO]: [OptiFine] *** Reloading textures *** [22:01:07] [Render thread/INFO]: [OptiFine] Resource packs: Default [22:01:07] [Worker-Main-22/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.model.ModelLoaderRegistry [22:01:07] [Worker-Main-19/INFO]: [OptiFine] Multitexture: false [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.gui.ModListScreen [22:01:07] [Worker-Main-16/INFO]: [OptiFine] Multitexture: false [22:01:07] [Worker-Main-15/INFO]: [OptiFine] Multitexture: false [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.gui.NotificationModUpdateScreen [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqn.canRenderInLayer [22:01:07] [Render thread/INFO]: [OptiFine] *** Reflector Forge *** [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: mods.betterfoliage.client.BetterFoliageClient [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.internal.BrandingControl [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.capabilities.ICapabilityProvider [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.capabilities.CapabilityProvider [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.loading.ClientModLoader [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.world.ChunkDataEvent$Save [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.world.ChunkEvent$Load [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.world.ChunkEvent$Unload [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityRenderersEvent$AddLayers [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.entity.EntityLeaveWorldEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityViewRenderEvent$CameraSetup [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityViewRenderEvent$FogColors [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityViewRenderEvent$RenderFogEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.entity.EntityJoinWorldEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.eventbus.api.Event.isCanceled [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.eventbus.api.Event.getResult [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.eventbus.api.IEventBus [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eri.getTexture [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.common.extensions.IForgeBlockState.getLightEmission [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.common.extensions.IForgeBlockState.getSoundType [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.common.extensions.IForgeBlockState.getStateAtViewpoint [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.common.extensions.IForgeBlockState.shouldDisplayFluidOverlay [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeFluid [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.fluids.FluidAttributes [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Field not present: adi.currentlyLoading [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.ForgeEventFactory [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeHooks [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeConfig [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeConfig$Client [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeConfigSpec [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeConfigSpec$ConfigValue [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: cqq.getWorldForge [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeItem [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeItemStack [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeI18n [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: dyo.setKeyConflictContext [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: dyo.setKeyModifierAndCode [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.registries.ForgeRegistryEntry [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqn.canRenderInLayer [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Constructor not present: aea, params: class aeb, int, class java.lang.Object, boolean [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: aea.isForceTicks [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeBlockEntity [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqh.getCloudRenderHandler [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqh.getSkyRenderHandler [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqh.getWeatherParticleRenderHandler [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqh.getWeatherRenderHandler [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.model.pipeline.LightUtil [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.MinecraftForge [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.MinecraftForgeClient [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.fml.ModContainer [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.fml.ModLoader [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.entity.PartEntity [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.entity.PlaySoundAtEntityEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RegisterShadersEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderBlockOverlayEvent$OverlayType [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderGameOverlayEvent$BossInfo [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderItemInFrameEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderLivingEvent$Pre [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderLivingEvent$Post [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderNameplateEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.client.RenderProperties.getEffectRenderer [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.client.RenderProperties.getEffectRenderer [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.ScreenshotEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.server.ServerLifecycleHooks [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: epj.updateSprite [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.world.WorldEvent$Load [22:01:07] [Render thread/INFO]: [OptiFine] *** Reflector Vanilla *** [22:01:10] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/00_glass_white/glass_pane_white.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/00_glass_white/glass_white.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/01_glass_orange/glass_orange.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/01_glass_orange/glass_pane_orange.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/02_glass_magenta/glass_magenta.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/02_glass_magenta/glass_pane_magenta.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/03_glass_light_blue/glass_light_blue.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/03_glass_light_blue/glass_pane_light_blue.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/04_glass_yellow/glass_pane_yellow.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/04_glass_yellow/glass_yellow.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/05_glass_lime/glass_lime.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/05_glass_lime/glass_pane_lime.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/06_glass_pink/glass_pane_pink.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/06_glass_pink/glass_pink.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/07_glass_gray/glass_gray.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/07_glass_gray/glass_pane_gray.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/08_glass_light_gray/glass_light_gray.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/08_glass_light_gray/glass_pane_light_gray.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/09_glass_cyan/glass_cyan.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/09_glass_cyan/glass_pane_cyan.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/10_glass_purple/glass_pane_purple.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/10_glass_purple/glass_purple.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/11_glass_blue/glass_blue.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/11_glass_blue/glass_pane_blue.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/12_glass_brown/glass_brown.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/12_glass_brown/glass_pane_brown.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/13_glass_green/glass_green.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/13_glass_green/glass_pane_green.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/14_glass_red/glass_pane_red.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/14_glass_red/glass_red.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/15_glass_black/glass_black.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/15_glass_black/glass_pane_black.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/20_glass/glass.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/20_glass/glass_pane.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/21_tinted_glass/tinted_glass.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/30_bookshelf/bookshelf.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/40_sandstone/sandstone.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/41_red_sandstone/red_sandstone.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] Multipass connected textures: false [22:01:10] [Worker-Main-22/INFO]: [OptiFine] BetterGrass: Parsing default configuration optifine/bettergrass.properties [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Render thread/INFO]: OpenAL initialized on device OpenAL Soft on Headphone (Realtek(R) Audio) [22:01:11] [Render thread/INFO]: Sound engine started [22:01:11] [Render thread/INFO]: Created: 1024x1024x3 minecraft:textures/atlas/blocks.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 45 [22:01:11] [Render thread/INFO]: Created: 256x128x3 minecraft:textures/atlas/signs.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 512x512x3 minecraft:textures/atlas/banner_patterns.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 512x512x3 minecraft:textures/atlas/shield_patterns.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 256x256x3 minecraft:textures/atlas/chest.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 512x256x3 minecraft:textures/atlas/beds.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 512x256x3 minecraft:textures/atlas/shulker_boxes.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:13] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas [22:01:13] [Render thread/INFO]: [OptiFine] Animated sprites: 1 [22:01:13] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas [22:01:13] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:13] [Render thread/INFO]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas [22:01:13] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:13] [Render thread/INFO]: [OptiFine] *** Reloading custom textures *** [22:01:14] [Render thread/INFO]: [OptiFine] Disable Forge light pipeline  
    • Hi, I have a problem because when i start minecraft with forge 40.1.20 the game don't open. Someone help?  
    • update to the latest version of Forge, also 1.16.5 requires java 8
    • one of your mods requires GeckoLib, unfortunately is this mod not declared its dependencies correctly to Forge, so Forge can not show you a warning. If you find out which Mod requires GeckoLib report this issue to the Mod author
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.