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.
I’ll create a comprehensive Yeti boss plugin for Fabric 1.21.4 with all the requested features.
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:
Run
/yetias an operatorYeti spawns in front of you
Boss bar appears showing health
Defeat it for rewards!
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!
The compilation failed with this error:
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.
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:
dropStack(ItemStack)method signature has changed - needs to create ItemEntity manuallyDamageTypeTagsis in the wrong package - should benet.minecraft.registry.tag.DamageTypeTags
Let me fix these issues:
Fixed:
Added
ItemEntityimport andDamageTypeTagsimportChanged
dropStack(stack)to manually create and spawnItemEntity(correct 1.21.4 API)Fixed
DamageTypeTagspackage fromnet.minecraft.entity.damagetonet.minecraft.registry.tag
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.
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);
}
}