diff --git a/Games/Minecraft/ manifest.json b/Games/Minecraft/ manifest.json new file mode 100644 index 0000000000..9584388985 --- /dev/null +++ b/Games/Minecraft/ manifest.json @@ -0,0 +1,17 @@ +{ + "manifest_version": 2, + "name": "Minecraft GG Script", + "version": "1.0", + "description": "A script to modify diamonds, health, and unlock items in Minecraft for educational purposes.", + "icons": { + "48": "icon.png" + }, + "browser_action": { + "default_popup": "index.html", + "default_icon": "icon.png" + }, + "permissions": [ + "activeTab" + ] + } + \ No newline at end of file diff --git a/Games/Minecraft/README.md b/Games/Minecraft/README.md new file mode 100644 index 0000000000..2e70125657 --- /dev/null +++ b/Games/Minecraft/README.md @@ -0,0 +1,65 @@ +# Minecraft GG Script + +## Overview + +The Minecraft GG Script is a user-friendly browser extension designed to enhance your Minecraft gaming experience. This script allows you to modify in-game resources and unlock features with ease. The functionalities include modifying diamonds, modifying health points, and unlocking all items, providing you with unlimited access to the game’s content. + +## Features + +### Modify Diamonds +- **Description**: Change your current diamond count to a specified amount. +- **Usage**: Input your current number of diamonds, and the script will set the diamond count to a high value (e.g., 999,999). + +### Modify Health +- **Description**: Change your current health points to a specified amount. +- **Usage**: Input your current health points, and the script will set the health to a maximum value (e.g., 100 points). + +### Unlock All Items +- **Description**: Instantly unlock all items in the game. +- **Usage**: Allows access to all items without needing to unlock them sequentially. + +## Installation + +1. Clone or download the repository. +2. Open your browser and navigate to the extensions page. +3. Enable "Developer mode". +4. Click "Load unpacked" and select the directory containing the downloaded files. + +## Usage + +1. Open the extension by clicking on the Minecraft GG Script icon in your browser. +2. Choose the desired option: + - **Modify Diamonds**: Enter your current amount of diamonds when prompted. + - **Modify Health**: Enter your current health points when prompted. + - **Unlock All Items**: Click to unlock all items instantly. +3. Follow the prompts and alerts to complete the modifications. + +## Files + +### `index.html` + +The HTML file providing the structure of the user interface. + +### `styles.css` + +The CSS file for styling the user interface. + +### `script.js` + +The JavaScript file containing the functionality for modifying the game’s resources. + +### `manifest.json` + +The manifest file required for the browser extension, specifying metadata and permissions. + +## Contributing + +Contributions are welcome! Please feel free to submit a pull request. + +## License + +This project is for educational purposes only. Use at your own risk. + +--- + +By using this script, you acknowledge that it is for educational purposes only and should not be used to cheat in the game. diff --git a/Games/Minecraft/index.html b/Games/Minecraft/index.html new file mode 100644 index 0000000000..0943656d4d --- /dev/null +++ b/Games/Minecraft/index.html @@ -0,0 +1,17 @@ + + + + + + Minecraft GG Script + + + +

Minecraft GG Script

+ + + + + + + diff --git a/Games/Minecraft/script.js b/Games/Minecraft/script.js new file mode 100644 index 0000000000..1659e0e337 --- /dev/null +++ b/Games/Minecraft/script.js @@ -0,0 +1,56 @@ +// Function to modify diamonds +function modifyDiamonds() { + let diamonds = prompt("Enter your current amount of diamonds:"); + diamonds = parseInt(diamonds); + if (isNaN(diamonds)) { + alert("Invalid number. Please try again."); + return; + } + let newDiamonds = 999999; + alert(`Diamonds modified successfully to ${newDiamonds}!`); + } + + // Function to modify health + function modifyHealth() { + let health = prompt("Enter your current health points:"); + health = parseInt(health); + if (isNaN(health)) { + alert("Invalid number. Please try again."); + return; + } + let newHealth = 100; + alert(`Health modified successfully to ${newHealth} points!`); + } + + // Function to unlock all items + function unlockAllItems() { + alert("All items unlocked!"); + } + + // Function to handle button clicks + function handleButtonClick(event) { + const buttonId = event.target.id; + switch (buttonId) { + case "modify-diamonds": + modifyDiamonds(); + break; + case "modify-health": + modifyHealth(); + break; + case "unlock-items": + unlockAllItems(); + break; + case "exit": + alert("Exiting script..."); + break; + default: + break; + } + } + + // Add event listeners to buttons + document.getElementById("modify-diamonds").addEventListener("click", handleButtonClick); + document.getElementById("modify-health").addEventListener("click", handleButtonClick); + document.getElementById("unlock-items").addEventListener("click", handleButtonClick); + document.getElementById("exit").addEventListener("click", handleButtonClick); + \ No newline at end of file diff --git a/Games/Minecraft/styles.css b/Games/Minecraft/styles.css new file mode 100644 index 0000000000..ae365627e9 --- /dev/null +++ b/Games/Minecraft/styles.css @@ -0,0 +1,21 @@ +body { + font-family: Arial, sans-serif; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100vh; + background-color: #f0f0f0; + } + + button { + margin: 10px; + padding: 10px 20px; + font-size: 16px; + cursor: pointer; + } + + h1 { + margin-bottom: 20px; + } + \ No newline at end of file diff --git a/README.md b/README.md index 7dd3d46bd4..af5754ca49 100644 --- a/README.md +++ b/README.md @@ -842,6 +842,7 @@ This repository also provides one such platforms where contributers come over an | [Angry_Bird](https://github.com/kunjgit/GameZone/tree/main/Games/Angry_Bird) | | [Subway_Surfers](https://github.com/kunjgit/GameZone/tree/main/Games/Subway_Surfers) | | [Call_Of_Duty](https://github.com/kunjgit/GameZone/tree/main/Games/Call_Of_Duty) | +| [Minecraft](https://github.com/kunjgit/GameZone/tree/main/Games/Minecraft) | | [UNO game with computer](https://github.com/kunjgit/GameZone/tree/main/Games/UNO_game_with_Computer) | |[Dice_Rolling_Simulator](https://github.com/priyashuu/GameZone/tree/main/Games/Dice_rolling_simulator)| |[Space_Dominators](https://github.com/kunjgit/GameZone/tree/main/Games/Space_Dominators)| diff --git a/assets/images/Minecraft.png b/assets/images/Minecraft.png new file mode 100644 index 0000000000..dd4797dec8 Binary files /dev/null and b/assets/images/Minecraft.png differ