옥성윤
📎 1 file 1,086 chars
📄
pasted-code-1792656977497.txt
txt 32 lines
▶
Create a Minecraft Java Edition 26.3 Fabric mod
called Friendly Verity.

IMPORTANT:
This must be a real Minecraft mod, not a plugin.

Create a friendly yellow smiley companion inspired
by the concept of the Verity Minecraft character.

Features:
1. A cute yellow character with a friendly smile.
2. The character follows the player.
3. The player can chat with the character.
4. Connect to an AI language model for natural conversations.
5. Always speak kindly and help the player.
6. Help with Minecraft survival questions.
7. Remember recent conversations.
8. Never attack the player.
9. Never transform into a scary creature.
10. Never use frightening dialogue.
11. No demons, horror events, or jumpscares.

Use Minecraft Java Edition 26.3 and Fabric.
Generate the complete source code and compile it
into a downloadable JAR file.

If AI requires an API key, provide a secure configuration
screen or configuration file.
Never hardcode API keys into the source code.

If any feature is unsupported, explain the limitation
instead of pretending it works.
Kodari AI
KodariOct 22 at 8:51 am 9
  1. Create a GeckoLib smiley companion that follows nearby players and cannot attack.

  2. Add a craftable summoning item and register it for survival and creative play.

  3. Add /verity AI chat with short-term conversation memory and a local config file for the API key.

Created Friendly Verity for Fabric 26.3: a cheerful yellow companion that can be summoned, follows nearby players, and has no attack or transformation behavior. It uses gentle vanilla Allay sounds and has a loot table.

  • Get Verity: Craft a reusable Verity Charm with four gold ingots around a slimeball, then use it to summon the companion.

  • Chat: Use /verity <message>. The client keeps up to 12 recent messages for conversation context. AI chat requires an API key; the mod creates config/friendlyverity.properties on first client launch. It sends requests over HTTPS and restricts the file to owner-only permissions where the file system supports them. Keep the key private.

  • AI limitation: The friendly, non-frightening rules are included in the model’s instructions, but an external AI service cannot be guaranteed to follow them every time. The companion itself has no scary transformations or attack behavior.

  • Download the JAR in Kodari: Click Compile in the desktop top bar, or on phone tap ⋮ → Compile Project. Click Compile in the window, then Download when it succeeds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
22 9,920
src/main/java/com/kodari/friendlyverity/FriendlyVerity.java
package com.kodari.friendlyverity;

import com.kodari.friendlyverity.registry.ModEntities;
import com.kodari.friendlyverity.registry.ModItems;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class FriendlyVerity implements ModInitializer {
    public static final String MOD_ID = "friendlyverity";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    @Override
    public void onInitialize() {
        ModEntities.initialize();
        ModItems.initialize();
    }
}