TheRightHandManMC
📎 1 file 1,962 chars
📄
pasted-code-1779787888282.txt
txt 88 lines
▶
Brew SMP — Full System Overview

Brew SMP is a hardcore PvP SMP centered around a custom mechanic called Alchemy.

Every player starts with +3 Alchemy.
Alchemy determines how effective potions are on your body.

Core PvP Mechanic
Killing a player steals +1 Alchemy
The victim loses -1 Alchemy

Maximum Alchemy is capped at +8.

Alchemy Levels
Level	Effect
+4	Positive potion duration increased by +2 minutes
+5	Positive potion duration increased by +4 minutes
+6	Positive potion duration increased by +6 minutes
+7	Positive potion duration increased by +8 minutes
+8	Positive potion duration increased by +10 minutes
+3	Normal vanilla potion behavior
+2	Strong potions downgrade to normal versions
+1	Extended potions downgrade to normal duration
0	Positive potion effects fail completely
Below 0	Permanent death/ban

Higher Alchemy only increases potion duration, not amplifier strength.

Recovery System — “Alchemy”

Only players at:

+1
0

can craft Alchemy.

Crafting Recipe
Diamond	Gold Block	Diamond
Gold Block	Nautilus	Gold Block
Diamond	Gold Block	Diamond

Crafting Alchemy:

instantly grants +1 Alchemy
consumes itself immediately
cannot be stored
cannot be traded
cannot be stockpiled

This allows low-level players to recover without removing the consequences of PvP.

Withdraw System

Players can use:
/withdraw

to convert part of their Alchemy into a physical item/resource.

Restrictions:

cannot withdraw below 0

Withdrawn Alchemy is mainly used for revivals.

Revival System

Players below 0 Alchemy are permanently dead/banned unless revived.

Step 1 — Create a Gilded Cauldron

A Gilded Cauldron is created by placing:

1 Cauldron
surrounded by 4 Diamond Blocks
Step 2 — Power the Ritual

The Gilded Cauldron must then be given:

4 Withdrawn Alchemy

Once completed, the dead player is revived.

Revived players return at:

+3 Alchemy

The Alchemy used in the ritual is permanently consumed/diminished, preventing infinite Alchemy generation.
Kodari AI
KodariMay 26 at 9:34 am 14,852 (v2)

I’ll create a hardcore PvP SMP plugin with the custom Alchemy system.

BrewSMP
A hardcore PvP SMP plugin featuring a custom Alchemy system where killing players steals their Alchemy points. Alchemy determines potion effectiveness, ranging from extended duration bonuses at high levels to complete potion failure at low levels. Includes recovery crafting for low-level players, Alchemy withdrawal mechanics, and revival rituals using Gilded Cauldrons. Players below 0 Alchemy are permanently banned until revived by other players.

Created BrewSMP plugin with complete Alchemy system:

  • Core Mechanics: Alchemy tracking (starts at +3, capped at +8), PvP transfer on kill/death

  • Potion System: Modifies potion duration based on Alchemy level (+4-8 get bonuses, +2-0 get penalties/failures)

  • Recovery: Special crafting recipe (diamond/gold/nautilus) for +1/0 players only

  • Withdrawal: /withdraw command converts Alchemy to physical items

  • Revival: Gilded Cauldron system (cauldron + 4 diamond blocks + 4 withdrawn alchemy) revives banned players

  • Death Ban: Players below 0 Alchemy are automatically banned until revived

  • Database: SQLite persistence for player data (UUID, name, alchemy, kills, deaths)

  • Commands: /alchemy [player] to view levels, /withdraw to withdraw

All systems cross-reference properly—managers registered in main class, listeners use managers, items use XSeries for compatibility, death ban integrates with Alchemy tracking.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
17 1,015
src/main/java/com/brewsmp/BrewSMP.java
package com.brewsmp;

import com.brewsmp.commands.AlchemyCommand;
import com.brewsmp.commands.WithdrawCommand;
import com.brewsmp.database.DatabaseManager;
import com.brewsmp.listeners.CauldronListener;
import com.brewsmp.listeners.CombatListener;
import com.brewsmp.listeners.CraftListener;
import com.brewsmp.listeners.PotionListener;
import com.brewsmp.managers.AlchemyManager;
import com.brewsmp.managers.ConfigManager;
import com.brewsmp.managers.DeathBanManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class BrewSMP extends JavaPlugin {
    
    @Getter
    private ConfigManager configManager;
    
    @Getter
    private DatabaseManager databaseManager;
    
    @Getter
    private AlchemyManager alchemyManager;
    
    @Getter
    private DeathBanManager deathBanManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.databaseManager = new DatabaseManager(this);
        this.alchemyManager = new AlchemyManager(this);
        this.deathBanManager = new DeathBanManager(this);
        
        registerListeners();
        registerCommands();
        
        getLogger().info("BrewSMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (alchemyManager != null) {
            alchemyManager.saveAll();
        }
        if (databaseManager != null) {
            databaseManager.close();
        }
        getLogger().info("BrewSMP has been disabled!");
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PotionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CraftListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CauldronListener(this), this);
    }
    
    private void registerCommands() {
        getCommand("alchemy").setExecutor(new AlchemyCommand(this));
        getCommand("withdraw").setExecutor(new WithdrawCommand(this));
    }
}