Minefun Ultimate Creative Injector

Press 1 to Force Creative & Unlock All Items

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        Minefun Ultimate Creative Injector
// @namespace   Violentmonkey Scripts
// @match       *://minefun.io/*
// @grant       none
// @version     2.0
// @author      Gemini
// @description Press 1 to Force Creative & Unlock All Items
// ==/UserScript==

(function() {
    'use strict';

    console.log("Creative Injector Ready - Press '1' to Bypass");

    window.addEventListener('keydown', function(e) {
        if (e.key === "1") {
            try {
                // 1. Force Creative State in Game Engine
                if (window.game) {
                    window.game.creativeMode = true;
                    window.game.isSandbox = true;
                    if(window.game.localPlayer) {
                        window.game.localPlayer.permissionLevel = 4; // Admin Permissions
                    }
                }

                // 2. Inventory Bypass (Diamond & Gold Blocks)
                // Hum game ke 'item database' se seedha block IDs access karne ki koshish karte hain
                const itemsToGive = ['diamond_block', 'gold_block', 'emerald_block', 'iron_block'];
                
                itemsToGive.forEach(item => {
                    if (window.inventory && typeof window.inventory.addItem === 'function') {
                        window.inventory.addItem(item, 64);
                    }
                });

                // 3. Visual UI Notification
                showStatus("CREATIVE ACTIVATED 🤑");

            } catch (err) {
                console.error("Injection Failed: ", err);
                showStatus("FAILED - TRY REFRESH");
            }
        }
    });

    // Screen par chota sa message dikhane ke liye
    function showStatus(msg) {
        let div = document.createElement('div');
        div.style = "position: fixed; top: 20px; left: 50%; transform: translateX(-50%); padding: 10px 20px; background: #000; color: #0f0; border: 2px solid #0f0; z-index: 9999; font-family: monospace; font-weight: bold;";
        div.innerText = msg;
        document.body.appendChild(div);
        setTimeout(() => div.remove(), 3000);
    }

})();