0.xy.z

do u know freshlol

Kodari AI
KodariOct 21 at 5:23 pm 1
FreshLolQuest
A Minecraft plugin that introduces a quest system with daily challenges, reward tiers, and progress tracking. Players can accept quests from NPCs or command menu, complete objectives like killing specific mobs, collecting items, or reaching locations, and earn experience points, currency, and exclusive items. Features include quest cooldowns, repeatable daily quests, a quest log GUI, completion notifications, and leaderboard rankings. Administrators can create custom quests via configuration files or in-game commands, set rewards, and monitor player progress through a comprehensive admin panel.

I’m not sure what “freshlol” refers to—someone, a Minecraft server, or a plugin?

0.xy.z

https://youtu.be/FoCLF2UPzLw?si=x12pv1l5rD1hhelP can u create the god items in FreshL0L's video called "This armor gives u superpowers" i want all the items he had in the video and crafting recipes and make it killing players drops their heads

Kodari AI
KodariOct 21 at 5:24 pm 1

I can build that, but I can’t access the video’s contents from the link, so I’d be guessing at the items and powers. Send the item names and abilities (screenshots or timestamps work), plus your server version. I’ll make recipes for each and have player kills drop the victim’s head.

0.xy.z

those are the crafting recipes and the items look

Kodari AI
KodariOct 21 at 5:30 pm 1
  • Add the eight items shown, with armor recipes matching the screenshots and inferred recipes for the four weapons.

  • Add armor-set powers, weapon combat effects, and player-head drops on kills.

  • Register everything in a new plugin entry point and plugin.yml.

Added the eight items shown: four armor pieces, a sword, axe, bow, and mace. The armor recipes follow the screenshots; I inferred recipes for the weapons. Armor grants night vision, resistance, speed, and jump boost, with extra strength and regeneration for the full set. Weapons have bonus combat effects, and player deaths drop the victim’s head.

The video’s exact powers weren’t visible, so those abilities are defaults. The mace recipe requires Minecraft 1.21+. Items use vanilla icons; for custom textures, enable Generation in the project’s settings.

0.xy.z

version 1.21.11 and for the items make custom recipes the fighting ones but mae the mace stun the player on hit for like 5 sec then let him go and also make the plugin work with ViaBackwards and ViaVersion On Paper

Kodari AI
KodariOct 21 at 5:33 pm 1
  1. Set the plugin target for Paper 1.21.11.

  2. Update the combat-item recipes and implement a 5-second mace stun with safe release.

  3. Keep compatibility independent of ViaVersion/ViaBackwards APIs so translated clients can use it on Paper.

Updated the plugin for Paper 1.21.11 and added optional ViaVersion/ViaBackwards load ordering. The custom recipes for all eight items remain in place.

Hitting a player with the God Mace now locks their movement and interactions for 5 seconds; they can still look around, and the stun wears off automatically. Combat effects run server-side through Paper APIs, with no direct Via dependency. Older clients rely on Via’s item and protocol translation.

0.xy.z

wait is it done?

Kodari AI
KodariOct 21 at 5:33 pm 1

Yes—the requested changes are in the project: custom recipes, the mace’s 5-second stun, and Paper 1.21.11 compatibility without a direct ViaVersion/ViaBackwards dependency.

I haven’t confirmed a successful build here. Click Compile in the top bar, then Compile in the build window to check it.

0.xy.z

wait js a question does every message consume credit like non generating ones

Kodari AI
KodariOct 21 at 5:34 pm 1

A message can use credits even if it doesn’t change your project. The exact cost depends on Kodari’s current plan and usage rules; check your account’s usage or billing page for the details.

Kodari can make mistakes. Review important code before using.
Files
src
Code
2 278
src/main/java/com/kodari/goditems/GodItemsPlugin.java
package com.kodari.goditems;

import com.cryptomorin.xseries.XMaterial;
import com.cryptomorin.xseries.XPotion;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Projectile;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.RecipeChoice;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.SkullMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.scheduler.BukkitTask;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.util.Vector;

import java.util.HashSet;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;

public final class GodItemsPlugin extends JavaPlugin implements Listener {
    private static final Map<String, String> ITEM_MATERIALS = Map.of(
            "god_helmet", "NETHERITE_HELMET",
            "god_chestplate", "NETHERITE_CHESTPLATE",
            "god_leggings", "NETHERITE_LEGGINGS",
            "god_boots", "NETHERITE_BOOTS",
            "god_sword", "NETHERITE_SWORD",
            "god_axe", "NETHERITE_AXE",
            "god_bow", "BOW",
            "god_mace", "MACE"
    );

    private static final Map<String, String> DISPLAY_NAMES = Map.of(
            "god_helmet", "God Helmet",
            "god_chestplate", "God Chestplate",
            "god_leggings", "God Leggings",
            "god_boots", "God Boots",
            "god_sword", "God Sword",
            "god_axe", "God Axe",
            "god_bow", "God Bow",
            "god_mace", "God Mace"
    );

    private NamespacedKey itemIdKey;
    private final Set<UUID> stunnedPlayers = new HashSet<>();
    private final Map<UUID, BukkitTask> stunTasks = new HashMap<>();

    @Override
    public void onEnable() {
        itemIdKey = new NamespacedKey(this, "god_item");
        Bukkit.getPluginManager().registerEvents(this, this);
        registerRecipes();
        Bukkit.getScheduler().runTaskTimer(this, this::applyArmorPowers, 20L, 20L);
    }

    private void registerRecipes() {
        registerRecipe("god_helmet", new String[]{"DHD", "HCH", "DHD"}, Map.of(
                'D', "DIAMOND", 'H', "PLAYER_HEAD", 'C', "NETHERITE_HELMET"));
        registerRecipe("god_chestplate", new String[]{"AHA", "HCH", "AHA"}, Map.of(
                'A', "GOLDEN_APPLE", 'H', "PLAYER_HEAD", 'C', "NETHERITE_CHESTPLATE"));
        registerRecipe("god_leggings", new String[]{"WHW", "HLH", "WHW"}, Map.of(
                'W', "COBWEB", 'H', "PLAYER_HEAD", 'L', "NETHERITE_LEGGINGS"));
        registerRecipe("god_boots", new String[]{"FHF", "HBH", "FHF"}, Map.of(
                'F', "FEATHER", 'H', "PLAYER_HEAD", 'B', "NETHERITE_BOOTS"));

        registerRecipe("god_sword", new String[]{" D ", "DSD", " H "}, Map.of(
                'D', "DIAMOND", 'S', "NETHERITE_SWORD", 'H', "PLAYER_HEAD"));
        registerRecipe("god_axe", new String[]{"DH ", "DAD", " H "}, Map.of(
                'D', "DIAMOND", 'H', "PLAYER_HEAD", 'A', "NETHERITE_AXE"));
        registerRecipe("god_bow", new String[]{"FHF", "HBH", "FSF"}, Map.of(
                'F', "FEATHER", 'H', "PLAYER_HEAD", 'B', "BOW", 'S', "STRING"));
        registerRecipe("god_mace", new String[]{"BHB", "HMC", "BHB"}, Map.of(
                'B', "BREEZE_ROD", 'H', "PLAYER_HEAD", 'M', "MACE", 'C', "HEAVY_CORE"));
    }

    private void registerRecipe(String id, String[] shape, Map<Character, String> ingredients) {
        ItemStack result = createGodItem(id);
        if (result == null) {
            getLogger().warning("Could not create " + id + "; its base item is not available on this server.");
            return;
        }

        ShapedRecipe recipe = new ShapedRecipe(new NamespacedKey(this, id), result);
        recipe.shape(shape);
        for (Map.Entry<Character, String> entry : ingredients.entrySet()) {
            Material ingredient = material(entry.getValue());
            if (ingredient == null) {
                getLogger().warning("Skipping " + id + " recipe; material " + entry.getValue() + " is unavailable.");
                return;
            }
            recipe.setIngredient(entry.getKey(), new RecipeChoice.MaterialChoice(ingredient));
        }
        Bukkit.addRecipe(recipe);
    }

    private ItemStack createGodItem(String id) {
        String materialName = ITEM_MATERIALS.get(id);
        if (materialName == null) {
            return null;
        }
        ItemStack item = XMaterial.matchXMaterial(materialName).map(XMaterial::parseItem).orElse(null);
        if (item == null) {
            return null;
        }

        ItemMeta meta = item.getItemMeta();
        if (meta == null) {
            return null;
        }
        meta.setDisplayName(ChatColor.GOLD + "✦ " + DISPLAY_NAMES.get(id));
        meta.setLore(List.of(ChatColor.GRAY + "A relic of immense power."));
        meta.getPersistentDataContainer().set(itemIdKey, PersistentDataType.STRING, id);
        item.setItemMeta(meta);
        return item;
    }

    private Material material(String name) {
        return XMaterial.matchXMaterial(name).map(XMaterial::parseMaterial).orElse(null);
    }

    private String getGodItemId(ItemStack item) {
        if (item == null || !item.hasItemMeta()) {
            return null;
        }
        return item.getItemMeta().getPersistentDataContainer().get(itemIdKey, PersistentDataType.STRING);
    }

    private void applyArmorPowers() {
        for (Player player : Bukkit.getOnlinePlayers()) {
            Set<String> worn = new HashSet<>();
            for (ItemStack armorPiece : player.getInventory().getArmorContents()) {
                String id = getGodItemId(armorPiece);
                if (id != null) {
                    worn.add(id);
                }
            }

            if (worn.contains("god_helmet")) {
                applyPotion(player, "NIGHT_VISION", 0);
            }
            if (worn.contains("god_chestplate")) {
                applyPotion(player, "DAMAGE_RESISTANCE", 0);
            }
            if (worn.contains("god_leggings")) {
                applyPotion(player, "SPEED", 1);
            }
            if (worn.contains("god_boots")) {
                applyPotion(player, "JUMP", 1);
            }
            if (worn.containsAll(Set.of("god_helmet", "god_chestplate", "god_leggings", "god_boots"))) {
                applyPotion(player, "INCREASE_DAMAGE", 0);
                applyPotion(player, "REGENERATION", 0);
            }
        }
    }

    private void applyPotion(Player player, String potionName, int amplifier) {
        XPotion.matchXPotion(potionName)
                .map(potion -> potion.buildPotionEffect(60, amplifier))
                .ifPresent(player::addPotionEffect);
    }

    @EventHandler
    public void onPlayerDeath(PlayerDeathEvent event) {
        ItemStack head = XMaterial.matchXMaterial("PLAYER_HEAD").map(XMaterial::parseItem).orElse(null);
        if (head == null) {
            return;
        }
        ItemMeta itemMeta = head.getItemMeta();
        if (!(itemMeta instanceof SkullMeta skullMeta)) {
            return;
        }
        Player victim = event.getEntity();
        skullMeta.setOwningPlayer(victim);
        skullMeta.setDisplayName(ChatColor.GOLD + victim.getName() + "'s Head");
        head.setItemMeta(skullMeta);
        event.getDrops().add(head);
    }

    @EventHandler
    public void onEntityDamage(EntityDamageByEntityEvent event) {
        if (event.getDamager() instanceof Player attacker) {
            if (stunnedPlayers.contains(attacker.getUniqueId())) {
                event.setCancelled(true);
                return;