v7.0.4, build 2150

This commit is contained in:
Parker2991
2025-03-14 08:01:58 -04:00
parent b9ae2a3bf7
commit 25ee0ce1e4
26 changed files with 744 additions and 193 deletions
+11 -6
View File
@@ -94,12 +94,12 @@ function inject (context) {
};
bot.core.itemPosition = {
x: pos.x,
y: pos.y -1,
z: pos.z
x: Math.floor(pos.x - 2),
y: Math.floor(pos.y - 2),
z: Math.floor(pos.z - 2)
}
if (config.core.itemRefill) {
if (config.core.itemRefill && bot.options.mode !== "savageFriends") {
bot.core.itemRefill();
} else {
bot.core.chatRefill();
@@ -231,9 +231,14 @@ function inject (context) {
bot.on('packet.nbt_query_response', (data) => {
try {
if (data.transactionId == transactionId) {
if (data?.nbt?.value?.LastOutput) {
bot.tellraw("@a", JSON.parse(data.nbt.value.LastOutput.value));
bot.tellraw("@a", JSON.parse(data.nbt.value.LastOutput.value).extra);
bot.tellraw(`@a[name="${bot.options.username}"]`, {
translate: "fnfboyfriendbot_command_block_output",
extra: [
JSON.parse(data.nbt.value.LastOutput.value).extra
]
});
}
}
} catch (e) {