Skip to content

Add boxmix12 mini game with resource collection and shop mechanics#2

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/add-mini-game-boxmix12
Closed

Add boxmix12 mini game with resource collection and shop mechanics#2
Copilot wants to merge 3 commits into
mainfrom
copilot/add-mini-game-boxmix12

Conversation

Copilot AI commented Jan 8, 2026

Copy link
Copy Markdown

Implements a new mini game where players collect resources from boxes and purchase upgrades from a shop.

Implementation

  • Game Logic (boxmix12.rs): Players click boxes to earn 10 coins and receive random resources (iron/gold/diamond/emerald). Shop location allows purchasing iron sword for 50 coins.

  • Server Registration (main.rs): Added to subservers HashMap alongside existing games (lobby, boxing, bridge, etc.)

  • Configuration (run/boxmix12/): World config reuses boxing1 map, server runs on port 25571

Architecture

Follows existing pattern using DuelsPlugin<DefaultDuelsConfig> with custom component BoxMixState tracking coins and boxes opened. Block interaction events drive resource distribution and shop transactions with chat feedback.

#[derive(Component, Default)]
struct BoxMixState {
    coins: u32,
    boxes_opened: u32,
}

#[derive(Resource)]
struct BoxLocations {
    boxes: Vec<BlockPos>,
    shop_locations: Vec<BlockPos>,
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/valence-rs/valence/commits/HEAD
    • Triggering command: /home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/cargo /home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/cargo build (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Add a new mini game called boxmix12. It's a box server with different boxes of resources and there is a shop to buy stuff.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 8, 2026 18:38
Co-authored-by: pythonsnake602 <118955679+pythonsnake602@users.noreply.github.com>
Co-authored-by: pythonsnake602 <118955679+pythonsnake602@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new mini game boxmix12 with resource boxes and shop Add boxmix12 mini game with resource collection and shop mechanics Jan 8, 2026
Copilot AI requested a review from pythonsnake602 January 8, 2026 18:41

pub fn main(path: PathBuf) {
App::new()
.add_plugins(DuelsPlugin::<DefaultDuelsConfig> {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make boxmix12 a large scale multiplayer server and not a duel

let block_pos = event.position;

// Check if player clicked a box
if box_locations.boxes.contains(&block_pos) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boxes should be large boxes of blocks which players must mine

Comment thread run/boxmix12/server.json
@@ -0,0 +1,6 @@
{
"address": "0.0.0.0:25571",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use port 25565

Copilot AI requested a review from pythonsnake602 January 8, 2026 18:52
Copilot stopped work on behalf of pythonsnake602 due to an error January 8, 2026 18:52
@pythonsnake602 pythonsnake602 deleted the copilot/add-mini-game-boxmix12 branch January 8, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants