patched yaw pitch

This commit is contained in:
Yaode_owo 2024-10-10 10:53:39 -04:00
parent 72b30912e1
commit ab13add7a2

View file

@ -1,7 +1,8 @@
const mc = require('minecraft-protocol'); const mc = require('minecraft-protocol');
const bot = mc.createClient({ const bot = mc.createClient({
host: '95.216.192.50', // kaboom.pw //host: '95.216.192.50', // kaboom.pw
host: 'chipmunk.land',
port: 25565, port: 25565,
username: "Powitiow", username: "Powitiow",
version: '1.20.4', version: '1.20.4',
@ -18,7 +19,7 @@ function inject(bot) {
// setInterval(() => { console.log(bot.position) }, 500); // setInterval(() => { console.log(bot.position) }, 500);
}); });
bot.on('respawn', (packet) => { // world selfcare. bot.on('respawn', (packet) => { // world selfcare real
bot.position.world = packet.worldName; bot.position.world = packet.worldName;
/* world name /* world name
minecraft:overworld minecraft:overworld
@ -120,7 +121,7 @@ function inject(bot) {
y: bot.position.y + y, y: bot.position.y + y,
z: bot.position.z + z, z: bot.position.z + z,
yaw: yaw, yaw: yaw,
pitch: bot.position.pitch pitch: bot.position.pitch + pitch
}; };
break; break;
case 22: // tp @p x ~ ~ yaw ~ case 22: // tp @p x ~ ~ yaw ~
@ -130,7 +131,7 @@ function inject(bot) {
y: bot.position.y + y, y: bot.position.y + y,
z: bot.position.z + z, z: bot.position.z + z,
yaw: yaw, yaw: yaw,
pitch: bot.position.pitch pitch: bot.position.pitch + pitch
}; };
break; break;
case 21: // tp @p ~ y ~ yaw ~ case 21: // tp @p ~ y ~ yaw ~
@ -140,7 +141,7 @@ function inject(bot) {
y: y, y: y,
z: bot.position.z + z, z: bot.position.z + z,
yaw: yaw, yaw: yaw,
pitch: bot.position.pitch pitch: bot.position.pitch + pitch
}; };
break; break;
case 20: // tp @p x y ~ yaw ~ case 20: // tp @p x y ~ yaw ~
@ -150,7 +151,7 @@ function inject(bot) {
y: y, y: y,
z: bot.position.z + z, z: bot.position.z + z,
yaw: yaw, yaw: yaw,
pitch: bot.position.pitch pitch: bot.position.pitch + pitch
}; };
break; break;
case 19: // tp @p ~ ~ z yaw ~ case 19: // tp @p ~ ~ z yaw ~
@ -160,7 +161,7 @@ function inject(bot) {
y: bot.position.y + y, y: bot.position.y + y,
z: z, z: z,
yaw: yaw, yaw: yaw,
pitch: bot.position.pitch pitch: bot.position.pitch + pitch
}; };
break; break;
case 18: // tp @p x ~ z yaw ~ case 18: // tp @p x ~ z yaw ~
@ -170,7 +171,7 @@ function inject(bot) {
y: bot.position.y + y, y: bot.position.y + y,
z: z, z: z,
yaw: yaw, yaw: yaw,
pitch: bot.position.pitch pitch: bot.position.pitch + pitch
}; };
break; break;
case 17: // tp @p ~ y z yaw ~ case 17: // tp @p ~ y z yaw ~
@ -180,7 +181,7 @@ function inject(bot) {
y: y, y: y,
z: z, z: z,
yaw: yaw, yaw: yaw,
pitch: bot.position.pitch pitch: bot.position.pitch + pitch
}; };
break; break;
case 16: // tp @p x y z yaw ~ case 16: // tp @p x y z yaw ~
@ -190,7 +191,7 @@ function inject(bot) {
y: y, y: y,
z: z, z: z,
yaw: yaw, yaw: yaw,
pitch: bot.position.pitch pitch: bot.position.pitch + pitch
}; };
break; break;
case 15: // tp @p ~ ~ ~ ~ pitch case 15: // tp @p ~ ~ ~ ~ pitch
@ -199,7 +200,7 @@ function inject(bot) {
x: bot.position.x + x, x: bot.position.x + x,
y: bot.position.y + y, y: bot.position.y + y,
z: bot.position.z + z, z: bot.position.z + z,
yaw: bot.position.yaw, yaw: bot.position.yaw + yaw,
pitch: pitch pitch: pitch
}; };
break; break;
@ -209,7 +210,7 @@ function inject(bot) {
x: x, x: x,
y: bot.position.y + y, y: bot.position.y + y,
z: bot.position.z + z, z: bot.position.z + z,
yaw: bot.position.yaw, yaw: bot.position.yaw + yaw,
pitch: pitch pitch: pitch
}; };
break; break;
@ -219,7 +220,7 @@ function inject(bot) {
x: bot.position.x + x, x: bot.position.x + x,
y: y, y: y,
z: bot.position.z + z, z: bot.position.z + z,
yaw: bot.position.yaw, yaw: bot.position.yaw + yaw,
pitch: pitch pitch: pitch
}; };
break; break;
@ -229,7 +230,7 @@ function inject(bot) {
x: x, x: x,
y: y, y: y,
z: bot.position.z + z, z: bot.position.z + z,
yaw: bot.position.yaw, yaw: bot.position.yaw + yaw,
pitch: pitch pitch: pitch
}; };
break; break;
@ -239,7 +240,7 @@ function inject(bot) {
x: bot.position.x + x, x: bot.position.x + x,
y: bot.position.y + y, y: bot.position.y + y,
z: z, z: z,
yaw: bot.position.yaw, yaw: bot.position.yaw + yaw,
pitch: pitch pitch: pitch
}; };
break; break;
@ -249,7 +250,7 @@ function inject(bot) {
x: x, x: x,
y: bot.position.y + y, y: bot.position.y + y,
z: z, z: z,
yaw: bot.position.yaw, yaw: bot.position.yaw + yaw,
pitch: pitch pitch: pitch
}; };
break; break;
@ -259,7 +260,7 @@ function inject(bot) {
x: bot.position.x + x, x: bot.position.x + x,
y: y, y: y,
z: z, z: z,
yaw: bot.position.yaw, yaw: bot.position.yaw + yaw,
pitch: pitch pitch: pitch
}; };
break; break;
@ -269,7 +270,7 @@ function inject(bot) {
x: x, x: x,
y: y, y: y,
z: z, z: z,
yaw: bot.position.yaw, yaw: bot.position.yaw + yaw,
pitch: pitch pitch: pitch
}; };
break; break;
@ -343,7 +344,7 @@ function inject(bot) {
pitch: pitch pitch: pitch
}; };
break; break;
case 0: // tp @p x y z yaw pitch || teleport to coordinates case 0: // tp @p x y z yaw pitch
bot.position = { bot.position = {
...bot.position, ...bot.position,
x: x, x: x,
@ -356,7 +357,7 @@ function inject(bot) {
default: default:
console.log('Found Other Packet Flags Id.\n' + JSON.stringify(packet, null, 2)); console.log('Found Other Packet Flags Id.\n' + JSON.stringify(packet, null, 2));
} }
console.log(bot.position);
bot.write("teleport_confirm", { teleportId: packet.teleportId }); bot.write("teleport_confirm", { teleportId: packet.teleportId });
}); });