zedelfps.
πŸ“Ž 1 file 4,516 chars
πŸ“„
message (1).txt
txt 149 lines
β–Ά
Create a Minecraft Java Edition Paper plugin for **Minecraft 1.21.11**.

## Plugin Goal

Modify the vanilla Brewing Stand behavior so that the ingredient slot can accept **ANY item**.

Normally, Minecraft only allows valid brewing ingredients to be placed in the top ingredient slot of a Brewing Stand. This plugin must completely remove that restriction.

### Required Behavior

* The Brewing Stand's **ingredient slot must accept every item**.
* Any item should be placeable there:

  * Dirt
  * Cobblestone
  * Diamond
  * Iron Ingot
  * Stick
  * Any potion
  * Any food
  * Any custom item
  * Any custom-model-data item
  * Any item from another plugin
  * Any vanilla item
  * Literally anything that is a valid ItemStack
* The item does NOT need to have a brewing recipe.
* Do NOT check whether the item is a valid vanilla brewing ingredient.
* Do NOT require a registered brewing recipe.
* Do NOT restrict the item based on material type.

## Important

This plugin is primarily about **allowing item placement**, not automatically creating brewing recipes.

For example:

If I put:

`DIAMOND`

into the Brewing Stand ingredient slot, the Diamond should be accepted and remain in the ingredient slot even though vanilla Minecraft has no Diamond brewing recipe.

If I put:

`DIRT`

into the ingredient slot, Dirt should also be accepted.

If I put a custom plugin item into the slot, it should also be accepted.

## Brewing Behavior

Do NOT invent a brewing result for items that have no recipe.

If an item has no brewing recipe, the Brewing Stand should simply accept and hold the item without producing a potion.

If a valid vanilla brewing recipe exists, vanilla brewing behavior should continue to work normally.

The plugin must therefore **not break normal vanilla brewing**.

## Compatibility

* Minecraft: **1.21.11**
* Server software: **Paper**
* Java plugin
* Use the appropriate Paper/Bukkit API for 1.21.11.
* Plugin should be lightweight and have minimal performance impact.
* Do not require ProtocolLib, NMS, or external dependencies unless absolutely necessary.
* Prefer a clean event/API-based implementation.

## Inventory Behavior

The plugin must correctly handle:

* Placing any item into the Brewing Stand ingredient slot.
* Taking any item back out of the ingredient slot.
* Shift-clicking items where appropriate.
* Hopper interactions.
* Brewing Stand inventory interactions.
* Closing/reopening the Brewing Stand.
* Server restarts.
* Item persistence.
* Bukkit/Paper inventory events.

Do not allow items to disappear or duplicate.

## Critical Requirement

Do NOT solve this by creating hundreds of individual brewing recipes.

There should be **one universal permission/behavior** that allows any ItemStack to occupy the Brewing Stand ingredient slot.

The plugin should modify/override the vanilla ingredient-slot validation rather than registering recipes for every possible item.

## Edge Cases

Handle custom items properly.

For example, if another plugin creates:

`CUSTOM_ITEM`

with a custom name, lore, enchantments, custom model data, or other ItemMeta, it should still be possible to put it into the ingredient slot.

The plugin must work with ItemStacks rather than only checking Material enums.

## Commands

No commands are required.

## Permissions

No permissions are required.

All players should automatically have this behavior.

## Configuration

No configuration is required.

Make the behavior always enabled.

## Deliverables

Provide:

1. Complete source code.
2. `plugin.yml`.
3. `pom.xml` or Gradle configuration.
4. Main plugin class.
5. Any required listener/classes.
6. Exact folder structure.
7. Build instructions.
8. Explain exactly how the plugin bypasses the vanilla Brewing Stand ingredient validation.
9. Make sure the final project compiles successfully for **Paper 1.21.11**.

Before finalizing, check the implementation specifically for:

* Vanilla Brewing Stand ingredient-slot validation.
* Hopper insertion/extraction.
* Item duplication/loss.
* Compatibility with custom ItemStacks.
* Compatibility with normal vanilla brewing recipes.
* Paper 1.21.11 API compatibility.

The final result should be a small, clean, production-ready plugin whose only purpose is:

**"Allow any ItemStack to be placed in a Brewing Stand's ingredient slot, regardless of whether a brewing recipe exists."**
Kodari AI
KodariSep 7 at 1:24 pm 2
UniversalBrewingStand
UniversalBrewingStand is a lightweight Paper plugin that removes the vanilla ingredient-slot restriction from Brewing Stands, allowing any ItemStack to be placed in the ingredient slot regardless of whether a brewing recipe exists. The plugin intercepts inventory click events and cancels the default vanilla validation, then manually places the item into the ingredient slot while preserving all ItemMeta including custom names, lore, enchantments, and custom model data. It handles shift-clicking, hopper interactions, item persistence across server restarts, and prevents item duplication or loss. Normal vanilla brewing recipes continue to function unchanged, while items without recipes are simply held in the slot without producing potions. The implementation uses a clean event-driven Bukkit API approach with no NMS, ProtocolLib, or external dependencies, ensuring minimal performance impact and full compatibility with Paper 1.21.11.
  1. Create the Paper 1.21.11 Maven project and plugin metadata.

  2. Add a lightweight listener that handles ingredient-slot clicks, shift-clicks, drags, and top-hopper insertion without altering recipe processing.

  3. Register the listener from the main plugin class.

Created a complete Paper 1.21.11 Maven plugin.

Project structure

Plain Text
any-brewing-ingredient/
β”œβ”€β”€ pom.xml
└── src/
    └── main/
        β”œβ”€β”€ java/
        β”‚   └── com/
        β”‚       └── kodari/
        β”‚           └── anybrewingingredient/
        β”‚               β”œβ”€β”€ AnyBrewingIngredientPlugin.java
        β”‚               └── BrewingStandListener.java
        └── resources/
            └── plugin.yml

Behavior

  • Accepts any valid ItemStack in the Brewing Stand ingredient slot.

  • Supports:

    • Normal clicks

    • Right-click splitting

    • Shift-click insertion and extraction

    • Number-key hotbar swaps

    • Offhand swaps

    • Dropping items

    • Inventory dragging

    • Hopper insertion

    • Custom items and custom model data

  • Does not register recipes.

  • Does not modify vanilla brewing recipes.

  • Items without recipes remain in the ingredient slot without producing a result.

  • Normal vanilla brewing continues to function.

Validation bypass

The listener intercepts interactions involving slot 3, which is the Brewing Stand ingredient slot. It cancels the vanilla inventory action and manually performs the item transfer without checking the item material or brewing-recipe validity.

Hopper insertion is handled through InventoryMoveItemEvent. The plugin only overrides insertion into the Brewing Stand ingredient slot and leaves normal extraction behavior unchanged.

Build

With Java 21 and Maven installed:

Shell
mvn package

The compiled plugin will be generated at:

Plain Text
target/any-brewing-ingredient-1.0.0.jar

Copy that JAR into the server’s plugins/ directory and restart the Paper server.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
4 370
src/main/java/com/kodari/anybrewingingredient/AnyBrewingIngredientPlugin.java
package com.kodari.anybrewingingredient;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class AnyBrewingIngredientPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        Bukkit.getPluginManager().registerEvents(new BrewingStandListener(), this);
    }
}