confide213

🧪 Minecraft Plugin Prompt (Auto Potion Brewing System)

Create a Minecraft plugin for Paper (Java Edition) that automatically modifies brewed potion effects.

🎯 Core Feature

Whenever a player brews or obtains:

Strength II Speed II

The plugin automatically converts them into:

Strength II (8 minutes duration) Speed II (8 minutes duration) ⚙️ Requirements

  1. Auto Detection

The plugin must detect:

Brewing Stand output Potion item creation Any plugin-generated potion give commands

  1. Effect Override Logic

If potion contains:

INCREASE_DAMAGE II (Strength 2) SPEED II

Then override:

Set duration to 8 minutes (9600 ticks) Keep amplifier at 2

  1. Edge Cases

Works for splash potions Works for lingering potions Works if combined in custom crafting systems Prevents duplicate stacking bugs

  1. Implementation Options

You may implement using:

Bukkit/Spigot potion events Inventory click listeners Brewing stand update events

  1. Optional Features

Config file to change durations Disable/enable world-specific behavior Logging when potion is modified

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code