mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
Ops
This commit is contained in:
parent
219e182bb0
commit
f6bca256e1
1 changed files with 6 additions and 1 deletions
|
@ -98,7 +98,7 @@ function inject(bot) {
|
|||
// core.fillCore();
|
||||
}
|
||||
|
||||
const interval = setInterval(async () => {
|
||||
async function loopPlace() {
|
||||
try {
|
||||
const fillCommand = `/minecraft:fill ${core.start.x} ${core.start.y} ${core.start.z} ${core.end.x} ${core.end.y} ${core.end.z} command_block{CustomName:'{"text":"ChomeNS Bot Core","color":"yellow"}'}`;
|
||||
const location = {x: Math.floor(bot.position.x), y: Math.floor(bot.position.y) - 1, z: Math.floor(bot.position.z)};
|
||||
|
@ -136,6 +136,11 @@ function inject(bot) {
|
|||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
loopPlace();
|
||||
const interval = setInterval(() => {
|
||||
loopPlace();
|
||||
}, config.core.refillInterval);
|
||||
|
||||
return core;
|
||||
|
|
Loading…
Reference in a new issue