[1.12.2][SOLVED] NullPointerException when Rendering Custom Entity
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
By SnailsAttack · Posted
Could someone provide an example of how to retrieve the climate parameter values at a given xyz position? I mean the NoiseRouter values you can see on the F3 menu (temperature, vegetation, continentalness, erosion, depth and weirdness). This may be possible through the Climate.Sampler class but I've only been able to get it to return empty values. Otherwise maybe it can be done through one of the ten gazillion noise and density function classes in the levelgen package. -
Hello, I have a server in 1.20.1 under Ubuntu and I’m experiencing the same problem. I know it’s not a mod because this error happens before I add the mods. Thanks for your help Edit: I tried different versions of Forge (the last two and the recommended one) and the problem takes place in these three versions.
-
By TileEntity · Posted
Maybe a conflict between apotheosis and tensura epicfight is mentioned, too -
By TileEntity · Posted
Add the new crash-report or latest.log (logs-folder) with sites like https://mclo.gs/ and paste the link to it here -
It's not for version 1.20.4, but in version 1.18.2, I was able to achieve this using the texture atlas and TextureAtlasSprite as follows: Rendering the fire (fire_0) texture in screen: private void renderTexture(PoseStack poseStack, int x, int y, int width, int height){ ResourceLocation BLOCK_ATLAS = new ResourceLocation("minecraft", "textures/atlas/blocks.png"); ResourceLocation fireTexture = new ResourceLocation("minecraft", "block/fire_0"); RenderSystem.setShaderTexture(0, BLOCK_ATLAS); TextureAtlasSprite sprite = Minecraft.getInstance().getTextureAtlas(BLOCK_ATLAS).apply(fireTexture); GuiComponent.blit(poseStack, x, y, 0, width, height, sprite); } Since the specifications may have changed in version 1.20.4, I'm not sure if the same approach will work. However, I hope this information helps as a reference.
-
-
Topics
-
Who's Online (See full list)
Recommended Posts
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.