Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chest event 1.12.2 #3338

Open
1 task done
SnowRunescape opened this issue Mar 27, 2024 · 2 comments
Open
1 task done

chest event 1.12.2 #3338

SnowRunescape opened this issue Mar 27, 2024 · 2 comments
Labels
possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f

Comments

@SnowRunescape
Copy link
Contributor

SnowRunescape commented Mar 27, 2024

  • The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: 4.20
  • server: vanilla/spigot/paper 1.12.2
  • node: 18.18

Detailed description of a problem

the chest does not open in version 1.12.2.
I tested it in version 1.8.8 and it opened

What did you try yet?

image

i try bot.openContainer, bot.openChest, bot.openBlock

Your current code

const mcData = require('minecraft-data')(bot.version)

const chestToOpen = bot.findBlock({
  matching: ['chest', 'ender_chest', 'trapped_chest'].map(name => mcData.blocksByName[name].id),
  maxDistance: 3
})

if (chestToOpen) {
  bot.lookAt(chestToOpen.position).then(_ => {
      bot.openBlock(chestToOpen).then((a) => {
          console.log("chest", a);
      }).catch(error => {
        console.log("error", error);
      });
  })
}

Expected behavior

chest open

@SnowRunescape SnowRunescape added possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f labels Mar 27, 2024
@chiteroman
Copy link

I have the same issue: #3360

@chiteroman
Copy link

I fixed my issue! Check it, maybe it works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f
Projects
None yet
Development

No branches or pull requests

2 participants