Nimrod

and make them come out of nether portal like in unstablesmp like 10 portal in the air on the floor

📎 1 file 5,330 chars
📄
pasted-code-1794770829103.txt
txt 89 lines
▶
Create a Fabric Minecraft 1.21.11 mod called Totem of Null, inspired by the supernatural/player-like style of Unstable SMP.

TOTEM OF NULL
Add a Totem of Null item using the vanilla Totem of Undying model and texture. It has:

* Permanent purple enchanted glint. * Dark-red name: Totem of Null * Purple lore: “A cursed artifact binding the dark entities of the void to your command.”

The player holding the Totem becomes the Leader.

NULL ARMY
The Totem can summon exactly:

* 1 Null Commander * 50 Null Soldiers * 10 Wraiths

The Null Commander is named ______ (exactly six underscores).

Null Soldiers and the Commander must be custom humanoid/path-aware NPCs, not zombies or normal hostile mobs.

They should look and behave as closely as technically possible to independent Minecraft players:

* Player-style humanoid appearance and animations. * Natural walking, sprinting, jumping, turning and looking around. * Individual randomized identities. * Individual inventories. * Natural independent movement. * No rigid formations. * No synchronized marching. * No constant clumping. * Soldiers spawn naturally scattered around the Leader. * They independently navigate around obstacles and choose their own paths. * They physically interact with the Minecraft world instead of instantly completing tasks. * They remain loyal to their current Leader.

LEADER CONTROL
The player holding the Totem has complete command authority over the army.

The Leader can give commands through normal Minecraft chat, including natural-language commands such as:

“Null, follow me.” “Null, build me a castle.” “Null, get me diamonds.” “Null, collect wood.” “Null, make a storage room.” “Null, defend me.” “Null, attack that player.” “Null, bring these items to me.” “Null, stop.”

The AI should interpret the Leader's natural-language command, create a task plan, divide work between appropriate NPCs, and physically perform the requested actions.

COMMAND PRIORITY
Use this priority system:

Emergency commands such as “defend me,” “protect me,” or “attack” immediately cancel lower-priority tasks.
A new Leader command cancels the previous Leader command unless explicitly told to continue.
Leader safety takes priority if the Leader is attacked or damaged.
Current assigned tasks continue until completed, cancelled, or replaced.
Autonomous behavior such as wandering and exploring has the lowest priority.
The Null Commander can coordinate the Soldiers but can never override a direct Leader command.

When the Leader says “stop,” cancel all active tasks and return the NPCs to independent player-like behavior.

PLAYER-LIKE BUILDING
When ordered to build something, the NPCs must physically construct it.

They must:

* Travel to the construction area. * Divide construction work between themselves. * Walk to individual block positions. * Look toward blocks. * Swing their arms. * Break blocks when necessary. * Collect dropped blocks/items. * Place blocks one at a time. * Avoid getting in each other's way. * Work on different sections independently. * Visibly construct the structure in real time.

Do NOT instantly generate the completed structure or teleport the NPCs around.

RESOURCE COLLECTION
When ordered to collect a resource, NPCs should:

* Locate suitable resource blocks. * Navigate to them. * Mine them physically. * Pick up the dropped items. * Store them in their inventories. * Return to the Leader when appropriate. * Deliver the requested resources.

STORAGE
When ordered to create storage, NPCs should physically construct a storage area, place chests, navigate to them, open the containers, and deposit their collected items.

COMBAT AND DEFENSE
When the Leader orders an attack, identify the intended target from the Leader's view/crosshair when possible and assign the army to engage it.

If the Leader is attacked, temporarily prioritize protecting the Leader.

NPCs should navigate independently rather than forming a rigid combat formation.

WRAITHS
Create 10 Wraith NPCs with a distinct mysterious appearance, translucent/shadowy gray player-style skin, independent movement, individual identities, and their own combat behavior.

They should follow the same Leader command system while retaining their own tactical behavior.

AI ARCHITECTURE
Use a central task/command manager with individual AI state for every NPC.

Each NPC should support states such as:

IDLE FOLLOW EXPLORE BUILD COLLECT STORE ATTACK DEFEND RETURN STOPPED

The central system should distribute tasks while allowing every NPC to make independent movement and pathfinding decisions.

Avoid expensive full-world scans every tick. Use optimized asynchronous/background processing where appropriate and never block the Minecraft server thread with web requests or expensive calculations.

IMPORTANT
The goal is for the Null Army to feel like 50+ independent Minecraft players controlled by one Leader, not like 50 ordinary Minecraft mobs.

They should visibly walk around the world independently, make natural movement decisions, perform tasks physically, and respond intelligently to the Leader's commands.

Generate clean, modular Fabric Java source code and compile the complete project into a working Fabric JAR for the requested Minecraft version.
Kodari AI
KodariNov 15 at 7:29 pm 1
NullArmy
A Fabric mod adding the Totem of Null, a cursed artifact that summons an army of 61 player-like NPCs (1 Null Commander, 50 Null Soldiers, 10 Wraiths). The holder becomes Leader and issues natural-language chat commands for building, mining, storage, defense, and combat. NPCs feature individual identities, inventories, independent pathfinding, and physical world interaction. A central task manager distributes work while each NPC autonomously navigates, builds block-by-block, mines resources, and responds to priority-based command hierarchy with emergency defense overrides.

[Generation stopped]

Nimrod

make it

Kodari AI
KodariNov 15 at 7:37 pm 9
  1. Build the Fabric 1.21.11 project skeleton and Totem of Null item.

  2. Add ten temporary Nether-like rifts that release the 61-member army in waves, with independent roaming and leader-follow behavior.

  3. Register player-shaped entity renderers and include the required item assets and survival recipe.

The implementation will make the summoning effect explicit: ten upright purple rifts ring the user, and the fixed 61-member group emerges over time. The NPCs will be custom path-aware entities with player-shaped rendering and leader-follow behavior.

Added the Totem of Null mod with 10 upright purple portal-like rifts arranged around the summoner. They open at ground level and release 1 Commander named ______, 50 Soldiers, and 10 Wraiths in waves. The custom humanoid NPCs use player-shaped rendering and independently wander and follow their Leader; Wraiths have a distinct shadowy skin.

The Totem uses the vanilla Totem of Undying model and texture, has a permanent glint, dark-red name, purple lore, and a survival crafting recipe: combine a Totem of Undying in the center, four Netherite Ingots on the sides, and four Ender Pearls in the corners.

The broader chat-driven commands and physical building, mining, and storage tasks from the original spec aren’t implemented yet.

Nimrod

how it works

Kodari AI
KodariNov 15 at 7:38 pm 1

Right-click the Totem of Null to summon the army. The player who uses it becomes their Leader.

Ten purple, portal-like particle effects appear in a ring about nine blocks away, at the terrain surface. They aren’t actual portal blocks. The Commander, 50 Soldiers, and 10 Wraiths spawn one at a time around the ring over roughly 24 seconds. The Commander is named ______.

After spawning, the NPCs wander and look around; they try to follow the Leader when they’re more than five blocks away. They can attack, but the chat commands, building, mining, and item-delivery behaviors from the original request aren’t implemented. You can’t start another summoning in that world while the current wave is spawning.

Nimrod

it crashed my game

Kodari AI
KodariNov 15 at 7:45 pm 1

I’ll reduce the summon effect’s particle load and stagger the spawns more gently; the current effect emits hundreds of particles every few ticks while creating 61 mobs.

I reduced the summon’s load: the rifts emit fewer particles, and the 61 NPCs now spawn one per second instead of several per second. That makes the full summon take about a minute.

I don’t have the crash report, so I can’t confirm this was the exact cause. Try again; if it still crashes, share the crash report or the error from the game log so I can pinpoint it.

Nimrod

make them all black and full netherite armour with sword (enchanted) and give all of them names

Kodari AI
KodariNov 15 at 8:23 pm 1

The generation was stopped before any content could be produced.

Nimrod

and came out actual nether portals

Kodari AI
KodariNov 15 at 8:30 pm 8
  1. Give all 61 NPCs distinct visible names and enchanted netherite gear; use a shared black player skin.

  2. Replace the particle-only rifts with actual Nether portal blocks, then summon them at each portal.

All 61 NPCs now have visible names, black player skins, full enchanted netherite armor, and enchanted netherite swords. The ten rifts are now functional vanilla Nether portals with obsidian frames, and the NPCs spawn just outside the openings.

Since these are real Nether portals, players or mobs that enter them can be transported to the Nether.

Nimrod

make them wear full nethrite armour with gear and black skins plus make the portals also in the air

Kodari AI
KodariNov 15 at 8:57 pm 2
  1. Check current NPC equipment/skin setup and portal placement.

  2. Ensure the portal frames are built in the air and NPCs spawn from them.

The NPCs now visibly render their full enchanted netherite armor and swords over their black skins. The ten functional Nether portals float 8 blocks above the nearby surface, and NPCs spawn beside the openings before falling to the ground. Their individual names are retained.

Nimrod

make it to show the encahnted netherite armour and black skin and the portals should show up in the air

Kodari AI
KodariTue at 5:58 pm 12
  1. Fix the NPC render state so their enchanted armor and black skins appear.

  2. Make the airborne portal blocks visible and reliable.

  • Fixed the renderer so the NPCs’ enchanted netherite armor and swords show, and gave them a black player skin.

  • Made the ten obsidian-framed portals appear in the air with visible Nether portal blocks. Near the world height limit, they’ll appear lower to fit.

Nimrod

make the skin full black and they need to have a sword

Kodari AI
KodariTue at 6:01 pm 8

Updated all army members to use a solid black skin. Each already spawns holding an enchanted netherite sword, with the renderer set up to show it.

Nimrod

all the players need to have black skin

Kodari AI
KodariTue at 6:16 pm 8

All Commanders, Soldiers, and Wraiths now use the same solid-black player skin beneath their armor.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
20 573
src/client/java/com/nullarmy/NullArmyClient.java
package com.nullarmy;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
import net.minecraft.util.Identifier;

public final class NullArmyClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        EntityRendererRegistry.register(NullArmyEntities.COMMANDER,
                context -> new NullMobRenderer(context, Identifier.of(NullArmy.MOD_ID, "textures/entity/black_army_skin.png")));
        EntityRendererRegistry.register(NullArmyEntities.SOLDIER,
                context -> new NullMobRenderer(context, Identifier.of(NullArmy.MOD_ID, "textures/entity/black_army_skin.png")));
        EntityRendererRegistry.register(NullArmyEntities.WRAITH,
                context -> new NullMobRenderer(context, Identifier.of(NullArmy.MOD_ID, "textures/entity/black_army_skin.png")));
    }
}