umutkavim alp

make a smiley yellow smiley face named verity its a ball its an mob entity

Kodari AI
KodariSep 6 at 5:47 pm 1
VeritySmiley
A Minecraft plugin that spawns a custom mob entity named "Verity" — a yellow smiley face ball. The entity is a slime-based mob with a custom texture resembling a cheerful yellow smiley, complete with eyes and a smile. Players can summon Verity using a command, and the entity follows nearby players, emits a happy particle effect, and plays a playful sound when interacted with. The plugin includes configuration options for spawn cooldown, follow distance, and particle intensity, making it a fun companion mob for servers.

Created Verity, a yellow smiling ball mob entity plugin with:

  • /verity to spawn Verity

  • /verity remove to remove it

  • Invisible slime body acting as the ball entity

  • Smiley face display attached to the entity

  • Persistent, invulnerable, non-collidable behavior

  • Automatic cleanup when the plugin disables

umutkavim alp

its a plugin or mod in fabric 1.20.1 make it fabric 1.20.1 so i can paly

Kodari AI
KodariSep 6 at 5:57 pm 4
  1. Inspect the current plugin files and build setup.

  2. Replace the Bukkit implementation with a Fabric 1.20.1 mod and custom Verity entity.

  3. Add the Fabric entrypoints, entity registration, command, and client rendering so it can be launched in Minecraft.

  • Replace the Paper build with Fabric Loom targeting Minecraft 1.20.1 and Java 17.

  • Implement a registered VerityEntity that behaves as a yellow ball mob and follows its owner.

  • Register /verity and /verity remove through Fabric’s command API.

  • Add a client renderer that draws a yellow sphere with black eyes and a smiling mouth, plus Fabric metadata.

Converted the project from a Paper plugin into a Fabric 1.20.1 mod.

Implemented:

  • Fabric Loom build setup for Minecraft 1.20.1

  • Java 17 compatibility

  • Fabric mod metadata and entrypoints

  • Registered Verity mob entity

  • Yellow spherical body renderer

  • Black eyes and smiling mouth

  • Yellow nameplate: Verity

  • Invulnerable persistent entity

  • Follow behavior toward the spawning player

  • /verity command to spawn it

  • /verity remove command to remove it

To play:

  1. Install Fabric Loader for Minecraft 1.20.1.

  2. Install Fabric API for 1.20.1.

  3. Build the mod with:

    Shell
    ./gradlew build
    
  4. Put the generated JAR from:

    Plain Text
    build/libs/
    

    into your Minecraft mods folder.

  5. Start Minecraft Fabric 1.20.1 and use:

    Plain Text
    /verity
    
umutkavim alp

where is the mod

Kodari AI
KodariSep 6 at 6:03 pm 1

The mod source is in the project, but a .jar file has not been generated yet.

Build it from the project root:

Shell
./gradlew build

The finished mod will be located at:

Plain Text
build/libs/

Copy the non-sources JAR from that folder into your Minecraft 1.20.1 Fabric mods folder, along with Fabric API.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
9 401
src/main/java/com/verity/VerityMod.java
package com.verity;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricDefaultAttributeRegistry;
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder;
import net.minecraft.entity.EntityDimensions;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.SpawnGroup;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.server.command.CommandManager;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
import net.minecraft.util.Identifier;

public final class VerityMod implements ModInitializer {
    public static final String MOD_ID = "verity";
    public static final EntityType<VerityEntity> VERITY = Registry.register(
            Registries.ENTITY_TYPE,
            id("verity"),
            FabricEntityTypeBuilder.create(SpawnGroup.CREATURE, VerityEntity::new)
                    .dimensions(EntityDimensions.fixed(1.4f, 1.4f))
                    .trackRangeBlocks(64)
                    .trackedUpdateRate(3)
                    .build());

    private static final VerityManager MANAGER = new VerityManager();

    public static Identifier id(String path) {
        return new Identifier(MOD_ID, path);
    }

    @Override
    public void onInitialize() {
        FabricDefaultAttributeRegistry.register(VERITY, VerityEntity.createAttributes());

        CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> dispatcher.register(
                CommandManager.literal("verity")
                        .executes(context -> spawn(context.getSource().getPlayerOrThrow()))
                        .then(CommandManager.literal("remove")
                                .executes(context -> remove(context.getSource().getPlayerOrThrow())))));
    }

    private static int spawn(ServerPlayerEntity player) {
        MANAGER.spawn(player);
        player.sendMessage(Text.literal("Verity spawned!").formatted(Formatting.YELLOW), false);
        return 1;
    }

    private static int remove(ServerPlayerEntity player) {
        if (MANAGER.remove(player)) {
            player.sendMessage(Text.literal("Verity removed.").formatted(Formatting.YELLOW), false);
        } else {
            player.sendMessage(Text.literal("You do not have a Verity.").formatted(Formatting.GRAY), false);
        }
        return 1;
    }
}