Skip to content

DanyouTu/BattleMinecraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BattleMinecraft (Forge 1.20.1)

中文 | English

Recreate the classic Conquest mode from Battlefield in Minecraft! This datapack supports multiplayer and features control point capturing, dedicated spawn points, a squad system, and a battlefield preview camera system.

✨ Features

  • 🚩 Core Conquest Mode: Centered around capturing control points, supporting point-specific respawns and a spectator camera system.
  • 🗺️ High Customizability: Freely modify the battlefield boundaries, control point names, and their locations.
  • 👥 Multiplayer Support: Supports team-based combat between the Red and Blue factions.
  • 🎖️ Class System: Choose from 5 classes — Assault, Medic, Support, Recon, and Assassin.
  • 👫 Squad System: Join squads of up to 4 players, preview squadmates' positions, and deploy directly on living squadmates.
  • Pre-game Validation: Automatic checks ensure bases, teams, and control points are properly configured before the match starts.

⚙️ Requirements

Before playing, ensure your server or client has the following mods installed:

  • TACZ (Timeless and Classics Zero): Gun and weapon system.
  • LesRaisins Armor: Tactical equipment and armor mod.
  • Scaling Health: Dynamic health and difficulty adjustments.

🛠️ Setup Guide

Warning

When setting up control points, the distance between them must not be too close; otherwise, it will cause the preview camera to glitch.

Step 1: Obtain Setup Tools

Upon entering the game, type the following command to get all the setup items:

/function bf:tools

Step 2: Set Battlefield Boundaries

Use the two Carrot on a Sticks from the tools and right-click on the "two diagonal corners" of your desired battlefield to set the boundaries. Then, right-click with the Update Boundary Carrot on a Stick to update the coordinate data.

Step 3: Place Faction Bases

Directly place the base Armor Stands for the Red and Blue teams.

Note

The armor stands will disappear automatically after placement. This is normal and indicates a successful setup.

Step 4: Set Control Points

Place the control point armor stands on the map. Please pay attention to the following two important settings:

Important

The first setting is mandatory; otherwise, the system won't work. Make sure to stand very close to the control point's armor stand (within 3 blocks) when applying these settings.

  1. Point ID: The bf_p_id for the control point must start from 10, up to a maximum of 13 (e.g., if setting 4 points, use 10~13):
/scoreboard players set @e[type=armor_stand, distance=..3, limit=1] bf_p_id 10
  1. Name the Point: Enter the following command to name and bind the point. The command below uses "Point A" (A點) as an example; you can freely modify the text inside and the color gold:
/data merge entity @e[type=minecraft:armor_stand, distance=..3, limit=1] {CustomName:'{"text":"Point A","color":"gold"}'}

Step 5: Assign Teams and Start the Game

Players can join teams via the in-game chat menu (no OP required), or admins can manually assign them. Once everything is ready, enter the following command to officially start the game:

/function bf:game/game_start

Note

The game will automatically validate the setup before starting. If bases or teams are missing, an error message will be displayed.

👫 Squad System

After the game starts, players in the lobby can access the Squad Page by clicking the page-switch button in the deployment menu:

  • Join a Squad: Click to join one of the 4 available squads (max 4 players per squad).
  • Preview Squadmate: View a living squadmate's camera perspective.
  • Deploy on Squadmate: Teleport directly to a living squadmate's position.

Squads are team-restricted — you can only join squads with players on the same team.


🔧 Troubleshooting & Useful Commands

  • Misplaced an armor stand?

Tip

If you accidentally place an armor stand in the wrong location, simply get close to it and use a clear command to delete the nearest armor stand.

  • How to uninstall or reset the game? If you need to clear the datapack settings or reset the battlefield, type:
    /function bf:uninstall
    

About

A BattleField datapack for Minecraft

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors