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

bot immortal and not moving #523

Open
DhyanCanPlay opened this issue Aug 22, 2024 · 12 comments
Open

bot immortal and not moving #523

DhyanCanPlay opened this issue Aug 22, 2024 · 12 comments
Labels
awaiting info Waiting for op/more details

Comments

@DhyanCanPlay
Copy link

hey so idk why but my bot became immortal (not on creative) and doesnot perform movement. before update it was great but now it has problems. i dont have issue in imortality but i need it to move to location

@extremeheat
Copy link
Member

Please use the Discord for support questions. If you have an issue please provide full details including:

  • your code
  • the expected result
  • the observed result

If you don't provide steps to reproduce issues, then it can't be fixed

@extremeheat extremeheat added the awaiting info Waiting for op/more details label Aug 23, 2024
@DhyanCanPlay
Copy link
Author

no one answered in discord
so i came here

@afarhansib
Copy link

i have this problem too

i create a normal client, login to server

  • EXPECTED
    the bot just join as survival player, holding sword, can be killed

  • OBSERVED
    the bot join, but floating in air when i break the block beneath, it cannot be hit

@fancode343
Copy link

fancode343 commented Dec 5, 2024

Same with me

There is a code (packet) to move the bot but its so complicated

@afarhansib
Copy link

Same with me

There is a code (packet) to move the bot but its so complicated

but does it work? does the bot actually moves?

@Slauh
Copy link

Slauh commented Dec 7, 2024

but does it work? does the bot actually moves?

yes it does but like he said it is complicated and you have to send it a lot the packet name is something along the lines of "player_auth_movement" in this it a ton a arguments you can get the data from a relay there might be two packets that move the player but this is one

@Slauh
Copy link

Slauh commented Dec 7, 2024

you also have to send data to get it out of immortal state not sure what it is atm

Sending the movement packets should fix the floating issue not too sure though

@ghost
Copy link

ghost commented Dec 7, 2024

client.on("play_status", (packet) => {
     if (packet.status == "player_spawn") {
          client.write("serverbound_loading_screen", {
               type: 2
          });
     };
});

This should be able to fix the immortal problem. I found this in the prismarine discord.

@Slauh
Copy link

Slauh commented Dec 7, 2024

client.on("play_status", (packet) => {
     if (packet.status == "player_spawn") {
          client.write("serverbound_loading_screen", {
               type: 2
          });
     };
});

This should be able to fix the immortal problem. I found this in the prismarine discord.

I tried this before today and it didn't seem to work at least on my side and there is also type 1 and 2 I've tried those both and nothing seemed to change either

@DhyanCanPlay
Copy link
Author

Any solution to move the bot?? like I tried all thing and it doesn't work. Please if anyone can help me.

@TSL534
Copy link

TSL534 commented Dec 16, 2024

Try to use the player_auth_input Packet (Everything over 5 Blocks of the Bot Position is getting blocked and make sure it moves with the Ticks)

@Slauh
Copy link

Slauh commented Dec 18, 2024

Try to use the player_auth_input Packet (Everything over 5 Blocks of the Bot Position is getting blocked and make sure it moves with the Ticks)

you have to send more than that to get it to not be immortal

let runtimeEntityId;

client.on('start_game', (packet) => {
  runtimeEntityId = packet.runtime_entity_id
  console.log(`Runtime Entity ID saved: ${runtimeEntityId}`);
});



client.on('start_game', (packet) => {
client.queue('serverbound_loading_screen', {
  "type": 1
})
client.queue('serverbound_loading_screen', {
  "type": 2
})
client.queue('interact', {
  "action_id": "mouse_over_entity",
  "target_entity_id": 0n,
  "position": {
    "x": 0,
    "y": 0,
    "z": 0
  }
})
client.queue('set_local_player_as_initialized', {
  "runtime_entity_id": `${runtimeEntityId}`
})
})

and alongside send the movement packet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting info Waiting for op/more details
Projects
None yet
Development

No branches or pull requests

6 participants