TerminalNukeZ

Develop a Minecraft plugin that adds the command /yeti, which summons a powerful Yeti boss entity that aggressively attacks players. Include a boss bar to display the Yeti's health status and configurable difficulty settings for the boss fight, along with customizable drops upon defeat and a cooldown period for the command to prevent spamming.

Kodari AI
KodariMar 28 at 3:09 pm 15,292 (v2)

I’ll create a comprehensive Yeti boss plugin for Fabric 1.21.4 with all the requested features.

YetiBossPlugin
A custom boss mod featuring a powerful Yeti entity that can be summoned via command. The Yeti aggressively attacks nearby players and displays its health through a boss bar. Includes fully configurable difficulty settings, customizable loot drops, and command cooldown system to prevent spam. Perfect for adding challenging PvE content to survival servers.

Let me create a comprehensive Yeti boss plugin for Fabric 1.21.4 with all requested features.

All files created! Here’s what I’ve built:

Yeti Boss Plugin Features

✅ Custom Yeti Boss Entity:

  • 200 HP (configurable)

  • 12 attack damage (configurable)

  • Aggressive AI that attacks players

  • Immune to fall damage

  • Boss-level armor and knockback resistance

✅ /yeti Command:

  • Requires operator permission (level 2)

  • Spawns Yeti 5 blocks in front of player

  • 60-second cooldown per player (configurable)

  • Broadcasts warning message when summoned

✅ Boss Bar Display:

  • Shows “Frostbound Yeti” name

  • Real-time health tracking

  • White color with fog/sky darkening effects

  • Visible to all nearby players

  • Can be disabled in config

✅ Fully Configurable (config/yeti_boss.json):

  • Health, damage, speed, follow range

  • Knockback resistance

  • Command cooldown duration

  • Boss bar enable/disable

  • Custom drop table with min/max quantities

✅ Default Drops:

  • 5-10 Diamonds

  • 3-7 Emeralds

  • 1-3 Golden Apples

  • 10-20 Ice blocks

  • 5-15 Snow blocks

🎮 To Use:

  1. Run /yeti as an operator

  2. Yeti spawns in front of you

  3. Boss bar appears showing health

  4. Defeat it for rewards!

  5. Wait 60 seconds before next summon

The configuration file auto-generates on first run and can be edited to adjust difficulty, drops, and cooldown timing!

TerminalNukeZ

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/main/java/com/yetiboss/entity/YetiEntity.java at line 105: no suitable method found for dropStack(ItemStack)
                    this.dropStack(stack);
                        ^

ERROR in src/main/java/com/yetiboss/entity/YetiEntity.java at line 118: cannot find symbol
        return damageSource.isIn(net.minecraft.entity.damage.DamageTypeTags.IS_FALL) || 
                                                            ^
  symbol: class DamageTypeTags
  location: package net.minecraft.entity.damage

ERROR in   src/main/java/com/yetiboss/entity/YetiEntity.java at line 105: no suitable method found for dropStack(ItemStack)
                      this.dropStack(stack);
                          ^

ERROR in   src/main/java/com/yetiboss/entity/YetiEntity.java at line 118: cannot find symbol
          return damageSource.isIn(net.minecraft.entity.damage.DamageTypeTags.IS_FALL) || 
                                                              ^
  symbol: class DamageTypeTags
  location: package net.minecraft.entity.damage


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - DamageTypeTags
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/yetiboss/entity/YetiEntity.java
  -   src/main/java/com/yetiboss/entity/YetiEntity.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariMar 28 at 3:13 pm 13,032 (v2)

I need to read the current file and check the breaking changes guide to fix these API issues.

I need to check what other files in the project import and see what classes are available for entity drops and damage types.

Now I can see the issue. Let me check the correct API for entity drops and damage tags in Fabric 1.21.4 by reading the documentation on these specific topics.

Based on the errors and Fabric 1.21.4 API changes, I can see:

  1. dropStack(ItemStack) method signature has changed - needs to create ItemEntity manually

  2. DamageTypeTags is in the wrong package - should be net.minecraft.registry.tag.DamageTypeTags

Let me fix these issues:

Fixed:

  • Added ItemEntity import and DamageTypeTags import

  • Changed dropStack(stack) to manually create and spawn ItemEntity (correct 1.21.4 API)

  • Fixed DamageTypeTags package from net.minecraft.entity.damage to net.minecraft.registry.tag

TerminalNukeZ

add a skin to it, i provided yeti skin attach it and make it's size 3 times bigger than normal player, add particles when it gets summoned and also user gets some bad effects due to yeti's attack.

1 image attached
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
14 540
src/main/java/com/yetiboss/YetiBossClient.java
package com.yetiboss;

import com.yetiboss.entity.ModEntities;
import com.yetiboss.entity.client.YetiEntityRenderer;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;

public class YetiBossClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        EntityRendererRegistry.register(ModEntities.YETI, YetiEntityRenderer::new);
    }
}