Add boxmix12 mini game with resource collection and shop mechanics#2
Closed
Copilot wants to merge 3 commits into
Closed
Add boxmix12 mini game with resource collection and shop mechanics#2Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
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
pythonsnake602
requested changes
Jan 8, 2026
|
|
||
| pub fn main(path: PathBuf) { | ||
| App::new() | ||
| .add_plugins(DuelsPlugin::<DefaultDuelsConfig> { |
Owner
There was a problem hiding this comment.
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) { |
Owner
There was a problem hiding this comment.
Boxes should be large boxes of blocks which players must mine
| @@ -0,0 +1,6 @@ | |||
| { | |||
| "address": "0.0.0.0:25571", | |||
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 reusesboxing1map, server runs on port 25571Architecture
Follows existing pattern using
DuelsPlugin<DefaultDuelsConfig>with custom componentBoxMixStatetracking coins and boxes opened. Block interaction events drive resource distribution and shop transactions with chat feedback.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/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
💡 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.