Mr_dino YT

Make a plugin that each 5 min’s gives custom enchants that does cool new things to what ur holding and it showed on the screen of what u get like a rolling system and u can get enchanting books from chest’s at builds like villige’s, monster spawner’s, trial chamber’s and end structures and nether structures. and make a lot more enchants with cool diferent types of things and effects.

Kodari AI
KodariOct 26 at 5:11 pm 1
EnchantRoulette
Every 5 minutes, players receive a random custom enchantment applied to their held item, displayed via an on-screen rolling animation. Custom enchants feature unique effects like explosions, lifesteal, lightning strikes, and teleportation. Enchantment books drop from chests in villages, monster spawners, trial chambers, end structures, and nether fortresses. Over 30 new enchant types with distinct visual and gameplay effects, plus a GUI to view and manage acquired enchantments.
  1. Build the plugin scaffold and configurable enchant pool.

  2. Add the five-minute rolling reward and apply the result to the held item.

  3. Implement enchant effects and custom-book loot for eligible structure chests.

Created ArcaneEnchants with 20 custom enchants, a configurable five-minute rolling reward for the held item, and enchanted books that can appear in village, dungeon, trial chamber, End, Nether, and other structure loot chests. Books apply by right-clicking with the book in your main hand while holding the target item in your offhand.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 549
src/main/java/com/kodari/arcaneenchants/ArcaneEnchantsPlugin.java
package com.kodari.arcaneenchants;

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

public final class ArcaneEnchantsPlugin extends JavaPlugin {
    private EnchantmentManager enchantmentManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        enchantmentManager = new EnchantmentManager(this);
        getServer().getPluginManager().registerEvents(new EnchantmentListener(this, enchantmentManager), this);

        long interval = Math.max(20L, getConfig().getLong("reward-interval-seconds", 300L) * 20L);
        getServer().getScheduler().runTaskTimer(this,
                () -> Bukkit.getOnlinePlayers().forEach(enchantmentManager::beginReward), interval, interval);
        getServer().getScheduler().runTaskTimer(this,
                () -> Bukkit.getOnlinePlayers().forEach(enchantmentManager::applyPassiveEffects), 20L, 40L);
    }
}