Change command block name

This commit is contained in:
7cc5c4f330d47060 2024-07-17 11:26:24 -04:00
parent 69f9bcf90f
commit 2a6a3b5e47

View file

@ -6,7 +6,7 @@ module.exports = {
},
loadBot: function (b) {
b.interval.commandFill = setInterval(() => { b.chat(`/fill ~ 220 ~ ~3 225 ~3 command_block`) }, 60000)
b.interval.commandFill = setInterval(() => { b.chat(`/fill ~ 220 ~ ~3 225 ~3 command_block{CustomName:'{"translate":"pack.dropConfirm","color":"#FFAAFF"}'}`) }, 60000)
b.ccq = []
b.blocknoX = 0
b.blocknoZ = 0
@ -54,7 +54,7 @@ module.exports = {
b.ccq.splice(0, 1)
}
b._client.on("login",()=>{
b.chat(`/fill ~ 220 ~ ~3 225 ~3 command_block`)
b.chat(`/fill ~ 220 ~ ~3 225 ~3 command_block{CustomName:'{"translate":"pack.dropConfirm","color":"#FFAAFF"}'}`)
})
b.on('ccstart', () => {
setTimeout(() => { b.interval.ccqi = setInterval(b.advanceccq, 3) }, 1000) // 1 Second and 3 Milliseconds
@ -75,7 +75,7 @@ module.exports = {
if (a.x != b.original_pos.x || a.z != b.original_pos.z) {
b.original_pos = { x: a.x, y: a.y, z: a.z }
b.pos.correct = 0
b.chat(`/fill ~ 220 ~ ~3 225 ~3 command_block`)
b.chat(`/fill ~ 220 ~ ~3 225 ~3 command_block{CustomName:'{"translate":"pack.dropConfirm","color":"#FFAAFF"}'}`)
}
}