MineFun.io Infinite Loop Script

Script vô hạn lặp lại mãi không hết - Auto farm/jump/move trong MineFun.io (cẩn thận ban!)

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         MineFun.io Infinite Loop Script
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Script vô hạn lặp lại mãi không hết - Auto farm/jump/move trong MineFun.io (cẩn thận ban!)
// @author       Grok
// @match        https://minefun.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Script này tạo vòng lặp vô hạn lặp lại hành động (ví dụ: auto jump để farm hoặc tránh fall trong parkour/survival)
    // Thay đổi hành động bên dưới tùy mode game (Bedwars, Skywars, Sandbox...)
    // CẢNH BÁO: Sử dụng hack có thể bị detect và ban! Threshold speed ~2.3 blocks/s từ cheat detector.

    let toggle = false;
    let intervalId = null;

    // Phím toggle: Nhấn 'H' để bật/tắt (Hold để chạy vô hạn)
    document.addEventListener('keydown', function(e) {
        if (e.key.toLowerCase() === 'h') {
            toggle = !toggle;
            if (toggle) {
                startInfiniteLoop();
                console.log('🚀 Infinite Loop BẬT - Lặp mãi không hết!');
            } else {
                stopInfiniteLoop();
                console.log('⏹️ Infinite Loop TẮT');
            }
        }
    });

    function startInfiniteLoop() {
        if (intervalId) clearInterval(intervalId);
        // Vòng lặp vô hạn: Lặp mỗi 50ms (20 FPS, tránh lag/detect)
        intervalId = setInterval(() => {
            // HACK 1: Auto Jump vô hạn (fly-like trong parkour/survival, farm coins)
            if (document.querySelector('canvas')) {  // Game dùng canvas
                simulateKeyPress(32);  // Space = Jump
            }

            // HACK 2: Auto forward (W) để move liên tục farm resources
            simulateKeyPress(87);  // W key

            // HACK 3: Tăng speed (nếu có player object - mở console test)
            // Mở F12 > Console > paste: window.player hoặc getGame().player
            // Nếu có velocity: let player = ...; player.velocity.x *= 2; (speed hack)
            try {
                if (window.player && window.player.velocity) {
                    window.player.velocity.x = 1;  // Speed hack forward
                    window.player.velocity.z = 0.5;  // Side move
                }
            } catch(e) {}

            // Thêm auto place block nếu detect inventory (test console)
            // sendPacket({type: 'placeBlock', x:0,y:-1,z:0});  // Infinite bridge

        }, 50);  // Lặp siêu nhanh, vô hạn
    }

    function stopInfiniteLoop() {
        if (intervalId) {
            clearInterval(intervalId);
            intervalId = null;
        }
    }

    // Helper: Simulate key press (bypass input)
    function simulateKeyPress(keyCode) {
        const event = new KeyboardEvent('keydown', {keyCode: keyCode, bubbles: true});
        document.dispatchEvent(event);
    }

    // GUI Toggle (optional)
    const gui = document.createElement('div');
    gui.innerHTML = '<button id="toggleHack" style="position:fixed;top:10px;left:10px;z-index:9999;background:red;color:white;padding:10px;">TOGGLE LOOP (H)</button>';
    document.body.appendChild(gui);

    document.getElementById('toggleHack').addEventListener('click', () => {
        toggle = !toggle;
        if (toggle) startInfiniteLoop();
        else stopInfiniteLoop();
    });

    console.log('💎 MineFun.io Infinite Script Loaded! Nhấn H để bật vòng lặp vô hạn.');
})();