mindcraft icon indicating copy to clipboard operation
mindcraft copied to clipboard

image capture with !look(x,y,z)

Open MaxRobinsonTheGreat opened this issue 1 year ago • 8 comments

There is a way to take simple screenshots: https://github.com/PrismarineJS/mineflayer/blob/master/examples/screenshot-with-node-canvas-webgl/screenshot.js

They will be deeply flawed, but better than nothing. thought must go into the command itself, I like !look(x, y, z) to look at a specific block, as opposed to roll,pitch,yaw Also adding text info about the screenshot would be good, like raycast the type of block in the middle of its view, get coords and type, and describe that with the image. some sort of x,y,z coords and info to help ground the image in the gameworld

MaxRobinsonTheGreat avatar Nov 06 '24 00:11 MaxRobinsonTheGreat

you can actually send the screenshot to openai newer models as part of the conversation with them. so this could improve the bot experience a lot

keneo avatar Nov 06 '24 09:11 keneo

Maybe some sort of info about biomes/structures in the direction of the image? I think the biggest problem is that it needs to accomplish 2 very difficult tasks.

  1. Identify points of interest in the image (Hopefully advanced models will be capable of this)
  2. Figure out where these are in the game world/how to get there (I'm not sure how to solve this one)

JurassikLizard avatar Nov 06 '24 14:11 JurassikLizard

@DerJanniku mabe you could submit a PR

Ninot1Quyi avatar Nov 08 '24 08:11 Ninot1Quyi

@Ninot1Quyi sure

DerJanniku avatar Nov 08 '24 09:11 DerJanniku

i submit the PR

DerJanniku avatar Nov 08 '24 13:11 DerJanniku

yeah dont post all the code here

MaxRobinsonTheGreat avatar Nov 09 '24 17:11 MaxRobinsonTheGreat

I have this working and would like to take over this issue please.

nevercast avatar Dec 26 '24 14:12 nevercast

I’ve started working on this and integrated it with GPT-4o for generating descriptions. It seems to be working well so far! Once I refine the workflow and improve the integration, I’ll share a more detailed update.

demo video: https://www.youtube.com/watch?v=0B7urBGJsKw

gmuffiness avatar Jan 01 '25 14:01 gmuffiness

This has been implemented.

uukelele-scratch avatar Sep 22 '25 12:09 uukelele-scratch