Minefun.io Speed & Fly Power-up

Tăng tốc độ chạy x10 và chế độ bay cho minefun.io

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Minefun.io Speed & Fly Power-up
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Tăng tốc độ chạy x10 và chế độ bay cho minefun.io
// @author       Gemini
// @match        *://minefun.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Cấu hình thông số
    const settings = {
        speedMultiplier: 10,
        flySpeed: 0.5,
        speedEnabled: false,
        flyEnabled: false
    };

    // Thông báo trạng thái
    const notify = (msg) => {
        console.log(`[Script]: ${msg}`);
        // Bạn có thể thêm alert hoặc UI ở đây nếu muốn
    };

    // Xử lý phím tắt
    window.addEventListener('keydown', (e) => {
        // Nhấn phím 'V' để bật/tắt Speed
        if (e.key.toLowerCase() === 'v') {
            settings.speedEnabled = !settings.speedEnabled;
            notify("Speed x10: " + (settings.speedEnabled ? "BẬT" : "TẮT"));
        }

        // Nhấn phím 'F' để bật/tắt Fly
        if (e.key.toLowerCase() === 'f') {
            settings.flyEnabled = !settings.flyEnabled;
            notify("Fly Mode: " + (settings.flyEnabled ? "BẬT" : "TẮT"));
        }
    });

    // Vòng lặp can thiệp vào nhân vật (Logic mô phỏng)
    // Lưu ý: minefun.io sử dụng engine 3D, script này tác động vào tọa độ di chuyển
    setInterval(() => {
        if (typeof player === 'undefined') return;

        // Logic Speed x10
        if (settings.speedEnabled) {
            player.velocity.x *= settings.speedMultiplier;
            player.velocity.z *= settings.speedMultiplier;
        }

        // Logic Fly
        if (settings.flyEnabled) {
            player.velocity.y = 0; // Chống trọng lực
            if (keys['Space']) player.position.y += settings.flySpeed; // Bay lên
            if (keys['ShiftLeft']) player.position.y -= settings.flySpeed; // Hạ xuống
        }
    }, 10);

})();