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

Error "Server rejected transaction for clicking on slot 35, on window with id 1." #3249

Closed
SnowyV4 opened this issue Dec 20, 2023 · 1 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

Comments

@SnowyV4
Copy link

SnowyV4 commented Dec 20, 2023

The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: 4.8
  • server: Paper, don't know vers
  • node: 20.9.0

Detailed description of a problem

When ever my code is ran, it gives the error.
Takes books from chests, and spreads them out across the same chest,

What did you try yet?

Verifying item ids.
Switching from 1.12.2 to 1.16.5

Your current code

 bot.on("spawn", async () => {
    console.log(bot.entity.position)
    async function spreadBooks() {
      const chestPos = new Vec3(142583, 68, 3286);
      const chest = await bot.openContainer(bot.blockAt(chestPos));
      await chest.withdraw(387, 0, 16);
      await chest.withdraw(387, 0, 11);

      bot.simpleClick.leftMouse(28);
      for (let i = 0; i < 20 - 1; i++) {
        await bot.simpleClick.rightMouse(i);
      }
      bot.simpleClick.rightMouse(11);
      bot.simpleClick.leftMouse(27);
      for (let i = 11; i < 27 - 1; i++) {
        await bot.simpleClick.rightMouse(i);
      }
      bot.simpleClick.rightMouse(26);
      chest.close();
      console.log(`[${new Date().toLocaleTimeString().cyan}] ${`Books have been spread`.white}`, colors.yellow(`(1/3)`));
    }
/*


## Expected behavior
The bot spawns in and completes the action.
@SnowyV4 SnowyV4 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 Dec 20, 2023
@SnowyV4
Copy link
Author

SnowyV4 commented Dec 20, 2023

image

@SnowyV4 SnowyV4 closed this as completed Dec 21, 2023
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

1 participant