📄
pasted-code-1790253594581.txt
txt
47 lines
▶
Master Prompt: Hardcore Bedwars / Lifesteal SMP Minecraft Mod
Act as an expert Minecraft Fabric Mod Developer (Java Edition, Fabric Loom 1.20+). Generate a fully functional Minecraft Fabric mod based on the detailed specifications below.
1. Mod Overview
Mod Name: Hardcore Bedwars / Lifesteal SMP
Target Platform: Minecraft Java Edition (Fabric API)
Concept: A hybrid between Bedwars and Lifesteal SMP. Players belong to one of 6 teams. As long as their team's bed is intact, they have infinite respawns. Once their team's bed is broken, players on that team enter One Life mode. Dying in One Life mode results in an immediate permanent ban from the server.
2. Team System
Teams: Exactly 6 team colors:
Blue
Pink
Purple
Yellow
Green
Orange
Player Limit: Maximum of 10 players per team.
Permanence: Joining a team is a one-time permanent choice per player.
Leadership Rules:
The first player to join a team automatically becomes the Team Leader.
Leaders can transfer leadership to another player on their team using /setleader .
If a team leader dies (and gets banned), the mod must automatically reassign leadership randomly to one of the surviving active members on that team.
3. Spawn & Team Selection Structure
Team Selector Blocks: Register 6 custom, unbreakable blocks (one for each color: blue_selector, pink_selector, purple_selector, yellow_selector, green_selector, orange_selector).
These blocks must have Bedrock-like properties (strength -1.0F, blast resistance 3600000.0F) so they cannot be broken by survival players.
Spawn Selection: When a player right-clicks a team selector block in the world spawn structure:
If they are not in a team and the team is under 10 members, permanently assign them to that team.
If they are already in a team, block the interaction and display a message stating their choice is permanent.
4. Bed & Life Mechanics
Infinite Respawns: While a team's bed is safe and intact, team members can die and respawn endlessly.
Bed Destruction:
When a team's bed is broken by an opponent, broadcast a global server warning announcing the bed destruction.
Notify the victim team that their bed is destroyed and they are now on ONE LIFE.
Permanent Ban on Death:
Intercept player death events.
Check if the player's team bed is destroyed.
If destroyed, add the player to the server user ban list (BannedPlayerEntry), kick them immediately with a custom disconnect message, and announce their permanent elimination to the whole server.
5. Bed Crafting, Placement & Sleeping Rules
No Replacement Team Beds:
Players cannot craft or place any team-colored beds (Blue, Pink, Purple, Yellow, Green, Orange) to regain lives or replace lost beds.
Cancel any survival player attempt to place team-colored bed blocks. Only admins in Creative mode can place them.
No Sleeping in Team Beds: Right-clicking a team-colored bed must cancel the sleep action and output a message.
White Bed Rule:
White Beds are the ONLY beds that players can craft and sleep in to skip the night.
White beds do NOT provide extra lives, team protection, or team respawn capability—they strictly exist for passing the night.
6. Commands
/jointeam — Allows joining one of the 6 color teams (enforces the 10-player limit and permanent locking).
/setleader — Allows current team leaders to hand off leadership to a teammate.
/teamstatus — Displays the list of teams, active player counts, and current bed statuses (Safe / Broken).
Set up a Fabric 1.20.1 project and register six persistent team-selector blocks.
Implement permanent team assignment, leader transfers, bed state, and team status commands.
Enforce one-life bans, bed placement/sleep rules, and respawn behavior.
Created a Fabric 1.20.1 mod project with six selector blocks, persistent teams and leadership, /jointeam, /setleader, and /teamstatus, plus bed-break alerts, one-life bans, and bed interaction/crafting restrictions.
Colored team beds are identified by their bed color; breaking one marks that team’s bed as broken. The project was not compiled or tested.
📄
pasted-code-1790253594581.txt
txt
47 lines
▶
Master Prompt: Hardcore Bedwars / Lifesteal SMP Minecraft Mod
Act as an expert Minecraft Fabric Mod Developer (Java Edition, Fabric Loom 1.20+). Generate a fully functional Minecraft Fabric mod based on the detailed specifications below.
1. Mod Overview
Mod Name: Hardcore Bedwars / Lifesteal SMP
Target Platform: Minecraft Java Edition (Fabric API)
Concept: A hybrid between Bedwars and Lifesteal SMP. Players belong to one of 6 teams. As long as their team's bed is intact, they have infinite respawns. Once their team's bed is broken, players on that team enter One Life mode. Dying in One Life mode results in an immediate permanent ban from the server.
2. Team System
Teams: Exactly 6 team colors:
Blue
Pink
Purple
Yellow
Green
Orange
Player Limit: Maximum of 10 players per team.
Permanence: Joining a team is a one-time permanent choice per player.
Leadership Rules:
The first player to join a team automatically becomes the Team Leader.
Leaders can transfer leadership to another player on their team using /setleader .
If a team leader dies (and gets banned), the mod must automatically reassign leadership randomly to one of the surviving active members on that team.
3. Spawn & Team Selection Structure
Team Selector Blocks: Register 6 custom, unbreakable blocks (one for each color: blue_selector, pink_selector, purple_selector, yellow_selector, green_selector, orange_selector).
These blocks must have Bedrock-like properties (strength -1.0F, blast resistance 3600000.0F) so they cannot be broken by survival players.
Spawn Selection: When a player right-clicks a team selector block in the world spawn structure:
If they are not in a team and the team is under 10 members, permanently assign them to that team.
If they are already in a team, block the interaction and display a message stating their choice is permanent.
4. Bed & Life Mechanics
Infinite Respawns: While a team's bed is safe and intact, team members can die and respawn endlessly.
Bed Destruction:
When a team's bed is broken by an opponent, broadcast a global server warning announcing the bed destruction.
Notify the victim team that their bed is destroyed and they are now on ONE LIFE.
Permanent Ban on Death:
Intercept player death events.
Check if the player's team bed is destroyed.
If destroyed, add the player to the server user ban list (BannedPlayerEntry), kick them immediately with a custom disconnect message, and announce their permanent elimination to the whole server.
5. Bed Crafting, Placement & Sleeping Rules
No Replacement Team Beds:
Players cannot craft or place any team-colored beds (Blue, Pink, Purple, Yellow, Green, Orange) to regain lives or replace lost beds.
Cancel any survival player attempt to place team-colored bed blocks. Only admins in Creative mode can place them.
No Sleeping in Team Beds: Right-clicking a team-colored bed must cancel the sleep action and output a message.
White Bed Rule:
White Beds are the ONLY beds that players can craft and sleep in to skip the night.
White beds do NOT provide extra lives, team protection, or team respawn capability—they strictly exist for passing the night.
6. Commands
/jointeam — Allows joining one of the 6 color teams (enforces the 10-player limit and permanent locking).
/setleader — Allows current team leaders to hand off leadership to a teammate.
/teamstatus — Displays the list of teams, active player counts, and current bed statuses (Safe / Broken).
Those references are for Bukkit/Paper plugins, not this Fabric 1.20.1 mod, so their inventory GUI and MiniMessage examples don’t apply here. What would you like changed or added to the mod?
package com.kodari.hardcorebedwars;
import com.kodari.hardcorebedwars.command.TeamCommands;
import com.kodari.hardcorebedwars.event.GameEvents;
import com.kodari.hardcorebedwars.team.TeamState;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
import net.minecraft.server.MinecraftServer;
public class HardcoreBedwarsMod implements ModInitializer {
public static final String MOD_ID = "hardcore_bedwars";
private static HardcoreBedwarsMod instance;
private TeamState teamState;
@Override
public void onInitialize() {
instance = this;
TeamSelectorBlocks.register();
GameEvents.register();
CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) ->
TeamCommands.register(this, dispatcher));
ServerLifecycleEvents.SERVER_STOPPED.register(server -> teamState = null);
}
public static HardcoreBedwarsMod getInstance() {
return instance;
}
public TeamState getTeamState(MinecraftServer server) {
if (teamState == null) {
teamState = server.getOverworld().getPersistentStateManager().getOrCreate(
TeamState::fromNbt, TeamState::new, MOD_ID);
}
return teamState;
}
}