diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/randy.json b/randy.json new file mode 100644 index 0000000..bfcf6bc --- /dev/null +++ b/randy.json @@ -0,0 +1,6 @@ +{ + "name": "randy", + + "model": "gpt-4o-mini" + +} \ No newline at end of file diff --git a/src/utils/blueprint_generation.js b/src/utils/blueprint_generation.js new file mode 100644 index 0000000..96f6e29 --- /dev/null +++ b/src/utils/blueprint_generation.js @@ -0,0 +1,25 @@ + +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; + } +} \ No newline at end of file diff --git a/test/test_blueprint_layout.js b/test/test_blueprint_layout.js new file mode 100644 index 0000000..050e5db --- /dev/null +++ b/test/test_blueprint_layout.js @@ -0,0 +1,11 @@ + +const bot = mineflayer.createBot({ + host: 'localhost', // Replace with your server IP or hostname + port: 55916, // Replace with your server port + username: 'andy', // Replace with your bot's username + // password: 'your_bot_password' // Only if the server has online-mode=true +}); + +this.bot.on('spawn', async () => { + bot.chat("/setblock ~ ~ ~ stone"); +}); \ No newline at end of file diff --git a/test/test_check_blocks.js b/test/test_check_blocks.js index 8acde84..917b2a3 100644 --- a/test/test_check_blocks.js +++ b/test/test_check_blocks.js @@ -11,6 +11,7 @@ const bot = mineflayer.createBot({ }); bot.on('spawn', async () => { + bot.chat("/setblock ~ ~ ~ stone"); console.log("Bot spawned. Starting blueprint check..."); await new Promise((resolve) => setTimeout(resolve, 5000)); const blockAtLocation = await bot.blockAt(new Vec3(142, -60, -179));