Skip to content

Commit

Permalink
Merge pull request #5010 from arunimaChintu/mine
Browse files Browse the repository at this point in the history
Added Minecraft Game
  • Loading branch information
kunjgit authored Jul 29, 2024
2 parents df4d92e + c9be6ef commit c7f8848
Show file tree
Hide file tree
Showing 7 changed files with 177 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Games/Minecraft/ manifest.json
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"
]
}

65 changes: 65 additions & 0 deletions Games/Minecraft/README.md
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.
17 changes: 17 additions & 0 deletions Games/Minecraft/index.html
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>
56 changes: 56 additions & 0 deletions Games/Minecraft/script.js
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);

21 changes: 21 additions & 0 deletions Games/Minecraft/styles.css
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;
}

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,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)|
Expand Down
Binary file added assets/images/Minecraft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c7f8848

Please sign in to comment.