Skip to content
Discussion options

You must be logged in to vote

Working example for 1.19.4:

        WorldRenderEvents.BLOCK_OUTLINE.register((worldRenderContext, blockOutlineContext) -> {
            Vec3d cameraPos = worldRenderContext.camera().getPos();
            BlockPos blockPos = blockOutlineContext.blockPos();

            Vector4f color = new Vector4f(0,235/255f,235/255f, 1);
            float padding = 0.001f;

            float minBlockX = blockPos.getX() - padding;
            float minBlockY = blockPos.getY() - padding;
            float minBlockZ = blockPos.getZ() - padding;
            float maxBlockX = blockPos.getX() + padding + 1;
            float maxBlockY = blockPos.getY() + padding + 1;
            float maxBlockZ = blockPos.getZ…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Intezium
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Intezium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants