spudsthisandthat
📎 1 file 1,965 chars
📄
pasted-code-1788432910666.txt
txt 42 lines
▶
MoneySMP

MoneySMP is a Minecraft mod focused on competitive team-based PvP, events, and an in-game money system.

The mod adds multiple teams, each represented by a different color. Players can see team colors and player teams directly in the TAB list, making it easy to identify which team each player belongs to.

💰 Money System

Money is integrated into the core gameplay. Players can earn money by getting kills and participating in different events and objectives. The money system can be used throughout the server for various features and mechanics.

⚔️ Teams

MoneySMP includes multiple teams with their own unique colors. Players are assigned to teams, and their team color is displayed in the TAB list alongside their name.

💸 Team Bidding

The mod includes a team bidding system where players can bid for different teams. Teams can be bought through an auction-style system, allowing players to compete for the team they want to join.

🚩 Capture the Flag

MoneySMP adds a Capture the Flag event where teams compete to capture and secure the opposing team's flag. The event includes team-based objectives and rewards.

🎯 Control Points

The mod also includes Control Point events. Teams fight to capture and hold specific locations on the map. Controlling these points can provide money and other rewards.

🏆 Events

MoneySMP supports multiple competitive events, including:

Capture the Flag
Control Points
Team-based PvP events
Money-based objectives

Events can reward players with money depending on their performance and objectives completed.

📊 TAB Team Display

The TAB list displays each player's team using their assigned team color, making teams easy to recognize during gameplay. This allows players to quickly see who is on their team and who belongs to an opposing team.

MoneySMP combines team management, bidding, PvP events, objectives, rewards, and an economy system into one Minecraft mod.
Kodari AI
KodariSep 3 at 11:00 am 2
MoneySMP
MoneySMP is a competitive team-based PvP mod featuring a dynamic money economy. Players earn currency through kills and event participation, then bid on teams in an auction-style system. The mod includes Capture the Flag and Control Point events with team objectives and monetary rewards. Team colors display in the TAB list for easy identification, enhancing competitive gameplay and strategic team management.
  1. Set up the Fabric 1.21.11 project and split client/common source sets.

  2. Implement persistent player money and team data with commands for balances, teams, and bidding.

  3. Add server-managed Capture the Flag and Control Point event state with objective/reward commands.

  4. Add team-colored TAB display, assets, metadata, and a minimal client entrypoint.

Created the MoneySMP Fabric 1.21.11 project with:

  • Fabric Loom 1.14, Yarn mappings, Java 21, and split client/common source sets.

  • Persistent player money and team data using Cardinal Components.

  • /money commands with admin payouts.

  • Team assignment, colored TAB names, team auctions, bidding, and refunds.

  • Kill rewards, Capture the Flag controls, and Control Point events.

  • Fabric metadata, mixin configuration, language assets, and manifest.kod.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
19 795
src/main/java/com/kodari/moneysmp/MoneySmpMod.java
package com.kodari.moneysmp;

import com.kodari.moneysmp.command.MoneySmpCommands;
import com.kodari.moneysmp.event.MoneySmpEvents;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MoneySmpMod implements ModInitializer {
    public static final String MOD_ID = "moneysmp";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    @Override
    public void onInitialize() {
        MoneySmpCommands.register();
        MoneySmpEvents.register();
        LOGGER.info("MoneySMP initialized");
    }
}