code me an Infinite Craft bot.
- User
code me an Infinite Craft bot.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
code me an Infinite Craft bot.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Sure! Infinite Craft is a web-based game inspired by games like Little Alchemy, where you combine elements to create new ones. In Infinite Craft, you start with just Earth, Water, Fire, and Air, and can craft new elements by combining them. The twist is that the game is community-driven — when someone creates a new element, it's added to a shared database, so the possibilities are effectively infinite.
A bot for Infinite Craft can be designed to:
⚠️ Disclaimer: Infinite Craft is hosted at https://neal.fun/infinite-craft/, and is a frontend-only game that communicates with a backend API. Since the game is not officially open for bots or automation, automating this game may violate the site's terms of service. This guide is for educational and experimental purposes only.
You can run a basic bot directly in your browser’s JavaScript Console (F12 → Console tab). This bot will try to combine elements in the game manually.
F12 or Ctrl+Shift+I)// Infinite Craft Console Bot (Manual Run)
let elementList = ['Earth', 'Water', 'Fire', 'Air'];
let maxCombinations = 1000;
let attempts = 0;
function getOrCreateElement(name) {
return new Promise(resolve => {
const existing = elementList.find(e => e === name);
if (existing) {
resolve(existing);
} else {
// Simulate drag and drop (this is a placeholder)
console.log(`Trying to create: ${name}`);
// You can simulate drag/drop here if you know the internal API
// This is just a placeholder
setTimeout(() => {
const created = Math.random() < 0.5; // Simulate success
if (created) {
elementList.push(name);
console.log(`🎉 Created new element: ${name}`);
}
resolve(created ? name : null);
}, 500);
}
});
}
async function tryCombine(a, b) {
let resultName = `ResultOf${a}${b}`;
console.log(`🧪 Combining ${a} + ${b}`);
const result = await getOrCreateElement(resultName);
return result;
}
async function botLoop() {
while (attempts < maxCombinations) {
const a = elementList[Math.floor(Math.random() * elementList.length)];
const b = elementList[Math.floor(Math.random() * elementList.length)];
if (a !== b) {
await tryCombine(a, b);
}
attempts++;
}
console.log("✅ Reached max combinations.");
}
botLoop();
📝 This is a simulated bot. To actually interact with the game, you’d need to reverse-engineer its internal API or DOM structure.
If you want to create a real browser automation bot, you can use Puppeteer, a Node.js library for controlling Chrome.
npm install puppeteerconst puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({ headless: false }); // non-headless so you can see
const page = await browser.newPage();
await page.goto('https://neal.fun/infinite-craft/');
await page.waitForTimeout(5000); // wait for game to load
// Example: Drag 'Earth' onto 'Water'
await page.mouse.move(100, 100); // coordinates of Earth block
await page.mouse.down();
await page.mouse.move(150, 150); // coordinates of Water block
await page.mouse.up();
await page.waitForTimeout(2000); // wait for result
// You can loop this and try combinations programmatically
// await browser.close();
})();
🔍 You'll need to find the correct coordinates or selectors for the draggable elements. Use Chrome DevTools to inspect the DOM.
If you're experimenting with a local or modded version of the game, you can log new elements like so:
let discovered = new Set(['Earth', 'Water', 'Fire', 'Air']);
function logNewElement(name) {
if (!discovered.has(name)) {
discovered.add(name);
console.log(`🆕 New element discovered: ${name}`);
}
}
If you're interested in:
Let me know, and I can help you build it!