lapiss_7

create command /ognisty-miecz this command give sword with fireasect 10 and sharpness 7 + he have custom lore in rainbow color ,,to jest item legendarnego smoczego samuraja" and his sword name is in red color and orange "ognisty miecz" and he have 30% he can spawn underfoot spilled lava

Kodari AI
KodariMar 2 at 9:52 pm 7,079 (v2)

I’ll create a plugin that gives a legendary fire sword with custom enchantments and a lava-spawning mechanic.

OgnistyMiecz
A legendary fire sword plugin that grants players a powerful diamond sword with Fire Aspect 10 and Sharpness 7. Features rainbow-colored lore describing its legendary dragon samurai origins and a unique 30% chance to spawn lava beneath the player's feet while wielding it. Includes custom command for obtaining the sword and automatic lava mechanics for an immersive combat experience.

Plugin created! The /ognisty-miecz command gives a legendary diamond sword with Fire Aspect 10, Sharpness 7, rainbow-colored lore, and a 30% chance to spawn lava beneath the player’s feet while holding it.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
5 233
src/main/java/com/ognistymiecz/OgnistyMieczPlugin.java
package com.ognistymiecz;

import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class OgnistyMieczPlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        getCommand("ognisty-miecz").setExecutor(new OgnistyMieczCommand());
        getServer().getPluginManager().registerEvents(new LavaSwordListener(), this);
        getLogger().info("OgnistyMiecz plugin has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("OgnistyMiecz plugin has been disabled!");
    }
}