MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

[BUG] Bot uses magic to walk #2170

Closed Splarkszter closed 2 years ago

Splarkszter commented 2 years ago

Prerequisites

Minecraft Version

1.19.0

Console Client Version

Lastest

Expected Behavior

Walk normally

Actual Behavior

Bot is able to skip single block gaps and climb 2 blocks tall

Steps to Reproduce the bug

  1. Setup terrain and movements
  2. Tell bot to go to coordinates
  3. Bot walks

Attach screenshot here (If applicable)

No response

Anythings that could help diagnosing the bug

No response

Device

Desktop

Operating System

Windows

Server Address (If applicable)

No response

BruceChenQAQ commented 2 years ago

Can you provide a screenshot of the terrain where this occurred?

Splarkszter commented 2 years ago

image image image

BruceChenQAQ commented 2 years ago

Magic is nerfed in https://github.com/MCCTeam/Minecraft-Console-Client/commit/223c13561c8fae96a374f0b0da0368ec88ed30e3. After using -f, the robot will still skip a single block gap. This is not expected, although it can be done in vanilla clients.

Gif ![4](https://user-images.githubusercontent.com/26017411/189304456-606d9164-978a-40e4-ad8a-4540bb55e9b7.gif)

Next I am going to rewrite the handling of moves, in order to allow MCC to handle more complex paths. After this it will be easier to implement commands such as follow. (#725 #2125) There is a lot of work involved and it can take a long time to implement it.

milutinke commented 2 years ago

Magic is nerfed in 223c135. After using -f, the robot will still skip a single block gap. This is not expected, although it can be done in vanilla clients. Gif

Next I am going to rewrite the handling of moves, in order to allow MCC to handle more complex paths. After this it will be easier to implement commands such as follow. (#725 #2125) There is a lot of work involved and it can take a long time to implement it.

After it's done we should start porting Baritone as a ChatBot

BruceChenQAQ commented 2 years ago

Magic is nerfed in 223c135. After using -f, the robot will still skip a single block gap. This is not expected, although it can be done in vanilla clients. Gif Next I am going to rewrite the handling of moves, in order to allow MCC to handle more complex paths. After this it will be easier to implement commands such as follow. (#725 #2125) There is a lot of work involved and it can take a long time to implement it.

After it's done we should start porting Baritone as a ChatBot

This work with more like our own implementation of the terrain processing that already exists in the vanilla client as well as improving the existing pathfinding algorithm.

After this work is done, we can encapsulate some pathfinding based features like Baritone, such as follow and farm. https://github.com/cabaletta/baritone/tree/master/src/main/java/baritone/process

Baritone is a mod, so it can easily call some code from minecraft, while we have to implement it ourselves.

That is, we are developing another “Baritone”.

milutinke commented 2 years ago

Making the Follow Player Chat Bot, currently testing it. image

Splarkszter commented 2 years ago

you guys are awesome