mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-03 22:05:35 +02:00
Removed comments from agent.js and removed blueprint_generation.js
This commit is contained in:
parent
8644d48fb3
commit
cc4a9b87e9
2 changed files with 0 additions and 38 deletions
|
@ -240,13 +240,6 @@ export class Agent {
|
|||
this.routeResponse(source, execute_res);
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
console.log('Self-prompting:', message);
|
||||
// if self_prompt contains something that indicates the goal is complete, stop self-prompting
|
||||
if (message.includes('goal complete')) {
|
||||
this.self_prompter.stop();
|
||||
process.exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
if (from_other_bot)
|
||||
|
@ -378,12 +371,6 @@ export class Agent {
|
|||
|
||||
startEvents() {
|
||||
// Custom events
|
||||
// this.bot.on('spawn', () => {
|
||||
|
||||
// //check that inventory has been set
|
||||
// });
|
||||
|
||||
|
||||
this.bot.on('time', () => {
|
||||
if (this.bot.time.timeOfDay == 0)
|
||||
this.bot.emit('sunrise');
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
|
||||
export class BlueprintGenerator {
|
||||
constructor(num_levels,
|
||||
num_rooms,
|
||||
room_height,
|
||||
materials) {
|
||||
this.blueprint = {
|
||||
"name": "Blueprint",
|
||||
"nodes": [],
|
||||
"connections": []
|
||||
};
|
||||
}
|
||||
|
||||
addNode(node) {
|
||||
this.blueprint.nodes.push(node);
|
||||
}
|
||||
|
||||
addConnection(connection) {
|
||||
this.blueprint.connections.push(connection);
|
||||
}
|
||||
|
||||
getBlueprint() {
|
||||
return this.blueprint;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue