Create a Paper Minecraft plugin for version 26.2. Add 3x3 area mining to ALL pickaxe types: Wooden, Stone, Iron, Golden, Diamond, and Netherite Pickaxes. The 3x3 mining only activates if the pickaxe has the custom display name: "Villám Csákány". When a player breaks a block with it, it must instantly break a 3x3 area around the targeted block, dropping the items naturally. Please add these custom block-based crafting recipes for ALL of them using the Crafting Table: - Wooden Villám Csákány: Standard pickaxe recipe layout but use 3 OAK_LOG instead of planks, and 2 Sticks. - Stone Villám Csákány: Standard pickaxe recipe layout but use 3 STONE (Smooth Stone) instead of cobblestone, and 2 Sticks. - Iron Villám Csákány: Standard pickaxe recipe layout but use 3 IRON_BLOCK instead of ingots, and 2 Sticks. - Golden Villám Csákány: Standard pickaxe recipe layout but use 3 GOLD_BLOCK instead of ingots, and 2 Sticks. - Diamond Villám Csákány: Standard pickaxe recipe layout but use 3 DIAMOND_BLOCK instead of diamonds, and 2 Sticks. - Netherite Villám Csákány: Standard pickaxe recipe layout but use 3 NETHERITE_BLOCK instead of ingots, and 2 Sticks. All crafted pickaxes must automatically get the display name "Villám Csákány" when taken out of the crafting table.
Create the Gradle Paper plugin project and metadata.
Add the custom pickaxe types, exact-name detection, and 3×3 directional mining listener.
Register all six custom crafting-table recipes with named results.
Created the Paper plugin project with:
Six named pickaxes: Wooden, Stone, Iron, Golden, Diamond, and Netherite.
Exact display-name requirement:
Villám Csákány.Direction-aware 3×3 area mining.
Natural block drops for surrounding blocks.
Custom crafting recipes using:
3 Oak Logs + 2 Sticks
3 Stone + 2 Sticks
3 Iron Blocks + 2 Sticks
3 Gold Blocks + 2 Sticks
3 Diamond Blocks + 2 Sticks
3 Netherite Blocks + 2 Sticks
Recipe results automatically receive the
Villám Csákánydisplay name.Gradle build configuration and
plugin.yml.
Create a Paper Minecraft plugin for version 26.2 that adds a custom enchantment book.
- Enchantment Details:
- Name: "Gyorsaság" (Enchantment ID: "gyorsasag")
- Book Item Display Name: "Gyorsaság" (Color: LIGHT_PURPLE, Italic: false)
- Max Level: 3 (Gyorsaság I, Gyorsaság II, Gyorsaság III)
- Allowed tools: All Pickaxes, Axes, and Shovels.
- Functionality:
- When a player breaks any block with a tool enchanted with "Gyorsaság", give the player the HASTE (Fast Digging) potion effect for exactly 10 seconds (200 ticks).
- Enchantment Level 1 gives Haste I.
- Enchantment Level 2 gives Haste II.
- Enchantment Level 3 gives Haste III.
- World Generation & Trading:
- Add this custom enchanted book to all vanilla Minecraft loot tables where regular enchanted books can spawn (dungeon chests, mineshafts, ancient cities, desert temples, stronghold libraries, and fishing).
- Allow Librarian Villagers to trade this custom "Gyorsaság" book randomly, just like any other vanilla enchantment book.
Inspect the existing plugin structure and Paper version setup.
Implement the
Gyorsaságenchantment/book, tool restrictions, and Haste effect.Add custom-book generation to vanilla loot tables and librarian trades.
[Generation stopped]
Please add a custom enchantment book to this plugin.
- Enchantment Details:
- Name: "Gyorsaság" (Enchantment ID: "gyorsasag")
- Book Item Display Name: "Gyorsaság" (Color: LIGHT_PURPLE, Italic: false)
- Max Level: 3 (Gyorsaság I, Gyorsaság II, Gyorsaság III)
- Allowed tools: All Pickaxes, Axes, and Shovels.
- Functionality:
- When a player breaks any block with a tool enchanted with "Gyorsaság", give the player the HASTE (Fast Digging) potion effect for exactly 10 seconds (200 ticks).
- Enchantment Level 1 gives Haste I.
- Enchantment Level 2 gives Haste II.
- Enchantment Level 3 gives Haste III.
- World Generation & Trading:
- Add this custom enchanted book to all vanilla Minecraft loot tables where regular enchanted books can spawn (dungeon chests, mineshafts, ancient cities, desert temples, stronghold libraries, and fishing).
- Allow Librarian Villagers to trade this custom "Gyorsaság" book randomly, just like any other vanilla enchantment book.
Implemented the Gyorsaság custom enchantment for Paper 26.2.
Added the
gyorsasag:gyorsasagenchantment with levels I–III.Restricted it to pickaxes, axes, and shovels.
Added the purple, non-italic
Gyorsaságenchanted book.Added Haste I–III for 200 ticks when breaking blocks.
Added random book drops to dungeon, mineshaft, ancient city, desert temple, stronghold, bastion, end city, woodland mansion, trial chamber, and fishing loot.
Added random Librarian villager trades.
Added Paper bootstrap registry support and updated the Paper API dependency to
26.2-R0.1-SNAPSHOT.
The enchantment registration crashed the server registry. Please completely remove the custom enchantment book, the GyorsasagListener, and the GyorsasagEnchantment from the code. Keep only the working custom pickaxes with their custom block-based crafting recipes.
Remove the failed enchantment registration and all Gyorsaság-specific classes/resources.
Restore plugin metadata and dependencies to the working pickaxe-only setup.
Preserve the existing custom pickaxes and their block-based crafting recipes.
Removed
GyorsasagEnchantment,GyorsasagListener, andVillamCsakanyBootstrap.Removed all Gyorsaság enchantment tags and loot/trade resources.
Removed enchantment listener registration from
VillamCsakanyPlugin.Removed
paper-plugin.yml, eliminating the crashing bootstrap registration.Preserved the custom lightning pickaxes and their block-based crafting recipes.
package com.kodari.villamcsakany;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class VillamCsakanyPlugin extends JavaPlugin {
@Override
public void onEnable() {
getServer().getPluginManager().registerEvents(new LightningMiningListener(), this);
PickaxeRecipes.register(this);
}
@Override
public void onDisable() {
Bukkit.removeRecipe(PickaxeRecipes.key(this, PickaxeType.WOODEN));
Bukkit.removeRecipe(PickaxeRecipes.key(this, PickaxeType.STONE));
Bukkit.removeRecipe(PickaxeRecipes.key(this, PickaxeType.IRON));
Bukkit.removeRecipe(PickaxeRecipes.key(this, PickaxeType.GOLDEN));
Bukkit.removeRecipe(PickaxeRecipes.key(this, PickaxeType.DIAMOND));
Bukkit.removeRecipe(PickaxeRecipes.key(this, PickaxeType.NETHERITE));
}
}