My Cart
close
Your Shopping Cart Is Empty

Infinite Craft Userscript !new! -

// Auto-learn: repeatedly combine the newest discovered with everything async function autoLearn() autoLearnBtn.disabled = true; autoLearnBtn.textContent = '⏳ Learning...';

clearPanelBtn.addEventListener('click', () => recipes.clear(); updateRecipeBook(); ); infinite craft userscript

panel.innerHTML = ` <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;"> <strong>🔧 Infinite Craft Tools</strong> <button id="ic-toggle-recipes" style="background:#2a2a2a; border:none; color:white; border-radius:6px; padding:2px 8px; cursor:pointer;">📖 Recipes</button> </div> <div id="ic-recipes-panel" style="display: none; overflow-y: auto; max-height: 300px; margin-top: 8px; border-top: 1px solid #333; padding-top: 8px;"> <div style="font-size:12px; color:#aaa;">Click any recipe to auto-fill and craft</div> <div id="ic-recipe-list"></div> </div> <div style="margin-top: 8px; display: flex; gap: 8px;"> <button id="ic-auto-learn" style="flex:1; background:#1e4a2f; border:none; color:white; border-radius:6px; padding:6px; cursor:pointer;">⚡ Auto-learn new</button> <button id="ic-clear-panel" style="flex:1; background:#4a2f2f; border:none; color:white; border-radius:6px; padding:6px; cursor:pointer;">🗑️ Reset panel</button> </div> `; // Auto-learn: repeatedly combine the newest discovered with

// Hook into the game's internal events if possible (monkeypatch) let originalAddElement = null; if (window.addElement) originalAddElement = window.addElement; window.addElement = function(element, ...args) if (element && element.name) null; if (lastCombine && lastCombine[0] && lastCombine[1]) recipes.set(element.name, [lastCombine[0].name, lastCombine[1].name]); updateRecipeBook(); return originalAddElement.apply(this, [element, ...args]); ; autoLearnBtn.textContent = '⏳ Learning...'

const recipeListDiv = document.getElementById('ic-recipe-list'); const recipesPanel = document.getElementById('ic-recipes-panel'); const toggleBtn = document.getElementById('ic-toggle-recipes'); const autoLearnBtn = document.getElementById('ic-auto-learn'); const clearPanelBtn = document.getElementById('ic-clear-panel');