-
Notifications
You must be signed in to change notification settings - Fork 839
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5010 from arunimaChintu/mine
Added Minecraft Game
- Loading branch information
Showing
7 changed files
with
177 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Minecraft GG Script</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<h1>Minecraft GG Script</h1> | ||
<button id="modify-diamonds">Modify Diamonds</button> | ||
<button id="modify-health">Modify Health</button> | ||
<button id="unlock-items">Unlock All Items</button> | ||
<button id="exit">Exit</button> | ||
<script src="script.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.