Z

make a futuristic nanobot fox theme that adds a glowing new ore called Nano Fox Ore, Nano Cores, and an energy-powered Multi-Tool that switches between pickaxe, axe, shovel, and sword modes while using a rechargeable energy system instead of durability.”

Kodari AI
KodariMay 21 at 10:35 pm 15,363 (v2)

I’ll create a futuristic nanobot fox-themed plugin with custom ore, energy systems, and a transforming multi-tool.

NanoFoxCore
A futuristic nanobot fox-themed plugin featuring glowing Nano Fox Ore that generates naturally in the world. Players can mine the ore to obtain Nano Cores, which power the advanced Multi-Tool - a transforming energy-powered tool that switches between pickaxe, axe, shovel, and sword modes. The Multi-Tool uses a rechargeable energy system instead of durability, creating a unique sci-fi survival experience with fox-themed particle effects and glowing materials.

Now I’ll create the complete plugin structure:

Perfect! I’ve created NanoFoxCore - a futuristic nanobot fox-themed plugin with the following features:

Core Features

🔷 Nano Fox Ore - Glowing diamond ore variant that spawns naturally between Y -64 and 64, with electric spark particles

⚡ Nano Cores - Nether star items dropped from ore, used to recharge the Multi-Tool (1000 energy per core)

🛠️ Multi-Tool - Transforming netherite tool with 4 modes:

  • PICKAXE - Mines stone, ores, concrete (10 energy/block)

  • AXE - Chops wood, logs, planks (10 energy/block)

  • SHOVEL - Digs dirt, sand, gravel (10 energy/block)

  • SWORD - Combat mode (15 energy/hit, 1.5x damage boost)

Gameplay Mechanics

  • Energy System: 5000 starting energy, 10000 max capacity (no durability!)

  • Mode Switching: Shift + Right-Click to cycle modes

  • Recharging: Right-click with Nano Core in hand to refill energy

  • Smart Mining: Tool only breaks appropriate blocks for current mode

  • Visual Effects: Glowing items, soul fire & electric particles, fox-themed aesthetics

Commands

  • /nanofox give <player> <ore|core|multitool> [amount] - Give items

  • /nanofox reload - Reload config

  • /nanofox energy - Check Multi-Tool energy level

  • /nanofox energy set <amount> - Set energy (admin)

All items have persistent energy/mode storage using PersistentDataContainer. The plugin is fully configurable with particle effects, energy costs, spawn rates, and messages!

Z

Can you make it for forge 1.21.1

Kodari AI
KodariMay 21 at 10:43 pm 13,958 (v2)

I’ll convert this to a Forge 1.21.1 mod. This requires a completely different structure and API.

Perfect! I’ve converted NanoFoxCore to a Forge 1.21.1 mod. The structure is completely different from Bukkit:

What Changed

✅ Forge Gradle Setup - ForgeGradle 6, mappings, run configurations
✅ Custom Blocks - NanoFoxOreBlock with glowing particles (stone & deepslate variants)
✅ Custom Items - MultiToolItem (4 modes) & NanoCoreItem (recharge)
✅ NBT Data Storage - Energy & mode stored using CustomData components (1.21.1 system)
✅ World Generation - JSON datapack files for natural ore spawning
✅ Loot Tables - Drops Nano Cores (or ore with Silk Touch)
✅ Recipe - Crafting recipe using Netherite + Nether Star + Nano Cores
✅ Creative Tab - Custom tab with all mod items
✅ Events - Sword mode damage boost with particles

Key Forge Features

  • Energy system stored in item NBT (no durability bar)

  • Tool modes switch with Shift + Right-Click (Pickaxe → Axe → Shovel → Sword)

  • Recharging by right-clicking with Nano Core in offhand

  • Smart mining - tool only works on appropriate blocks (pickaxe for stone, axe for wood, etc.)

  • Glowing ores spawn naturally with light level 7 and particle effects

  • Epic rarity items with enchanted glint

Build with ./gradlew build - note you’ll need to add texture files (.png) to the assets/nanofoxcore/textures/ folders for items and blocks!

Kodari can make mistakes. Review important code before using.
Files
src
.gitignore
build.gradle
README.md
Code
19 410
src/main/java/com/nanofoxcore/event/ModEvents.java
package com.nanofoxcore.event;

import com.nanofoxcore.item.MultiToolItem;
import com.nanofoxcore.util.EnergyUtil;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.event.entity.living.LivingDamageEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;

public class ModEvents {

    @SubscribeEvent
    public void onLivingDamage(LivingDamageEvent event) {
        if (event.getSource().getEntity() instanceof Player player) {
            ItemStack weapon = player.getMainHandItem();
            
            if (weapon.getItem() instanceof MultiToolItem) {
                MultiToolItem.ToolMode mode = EnergyUtil.getToolMode(weapon);
                
                if (mode == MultiToolItem.ToolMode.SWORD) {
                    int energy = EnergyUtil.getEnergy(weapon);
                    if (energy >= 15) {
                        event.setAmount(event.getAmount() * 1.5F);
                        
                        LivingEntity target = event.getEntity();
                        target.level().addParticle(
                            net.minecraft.core.particles.ParticleTypes.ELECTRIC_SPARK,
                            target.getX(), target.getY() + 1, target.getZ(),
                            0, 0, 0
                        );
                    }
                }
            }
        }
    }
}