This file contains the description of the mod.
📄
pasted-code-1788300890522.txt
txt
52 lines
▶
| Ability | Description | Cooldown | Warning |
|---------|-------------|----------|---------|
| "Dark Dash" | Teleports behind the player and strikes with 20 damage, while also applying Levitation I for 3 sec to the player (preventing instant shield block). | 12 sec | mob vanishes in a cloud of particles |
| "Debris Vortex" | Lifts up to 25 blocks within 8‑block radius and flings them everywhere (projectile-like, 5 damage each). During the lift, all creatures in radius (including player) get Levitation II for 4 sec – they float along with the blocks, making evasion nearly impossible. | 25 sec | swirling block particles around the mob |
| "Collapse" | Mob rises 15 blocks up, then plummets, creating a massive explosion (radius 10, damage 25) and Levitation III on all affected for 5 sec (they fly high and fall slowly, taking fall damage). After this, the mob heals 20 HP but is immobile for 2 sec – opening for the player. | 40 sec | sky darkens, mob roars loudly |
---
#### 🛡 Reactions to Player Actions (and counters)
| Player Action | Mob Reaction |
|---------------|--------------|
| Bow shooting | Phase 1 – 40% chance to deflect arrows. Phase 2/3 – often uses "Levitation Bounce" to dodge and counter. Headshots (eye) deal double damage and cancel the mob's current levitation for 2 sec. |
| Fire potion / Flame weapon | Deals double damage and interrupts any levitation ability – mob falls to ground and is stunned for 2 sec. |
| Slowness potion | Phase 1/2 – slows movement and ascent (more time to dodge "Falling Star"). Phase 3 – effect lasts only 1 sec. |
| Milk bucket | Cancels levitation on the player – crucial against "Levitation Grab" and "Anti‑Gravity Field". |
| Shield | Blocks normal melee, but shockwaves ("Earthquake", "Falling Star", "Collapse") go through shield – must dodge by jumping or running. |
---
#### 💥 Weaknesses (strategy to defeat)
1. Fire – all fire attacks (fireball, Flame enchantment, flaming arrows) deal +50% damage and cancel the mob's levitation abilities for 3 sec.
2. Headshots – arrows to the head deal double damage and interrupt any active levitation for 2 sec, creating a window for melee.
3. Milk bucket – must have ready to instantly remove levitation from yourself in Phase 2 and 3.
4. Pit traps – dig a 3×3 hole 4 blocks deep and fill with water; if the mob falls in, it cannot use levitation (water blocks the effect) and becomes easy prey.
5. Bell – ringing a bell stuns the mob for 1.5 sec, interrupting any ability (including levitation). Use in critical moments.
---
#### 🎁 Drops
- Always: 3–4 "Void Shards" – used to craft armour with magic resistance.
- 20%: Netherite Ingot.
- 15%: Enchanted Book – "Blast Protection IV" or "Fire Aspect II".
- 10%: *Amulet of Levitation* – accessory that lets the player jump 5 blocks high once (cooldown 30 sec).
- XP: 80 levels.
---
#### 📌 Instructions for the Mod Generator
- Base: Iron Golem.
- Levitation: apply the Levitation status effect to the player (via applyStatusEffect) and to the mob itself (by teleporting upward and applying a temporary effect).
- All levitation‑based abilities must have cooldowns and visual/audio cues (particles, sounds).
- Block destruction: use explode() with parameters that exclude bedrock and obsidian.
- Targets: configure targetSelector to include all peaceful mobs, exclude all hostile mobs.
- Phases: check current health and activate corresponding ability sets.
---
Now you have the complete English prompt – copy it as is into your mod generator. This mob will be a fearsome, multi‑phase boss with powerful levitation attacks that are temporary and reactive, making every encounter challenging and fair. Good luck! 🎮
Create a Fabric 1.21.4 project foundation with Gradle, metadata, and client/server entrypoints.
Implement the multi-phase Void boss, its cooldown-driven abilities, reactions, targeting, and drops.
Register Void Shards, the levitation amulet, armor-material support, recipes, loot-facing assets, models, textures placeholders, and language data.
Add client rendering/model resources and a summon command so the encounter is testable in-game.
Created the Fabric 1.21.4 Void Boss project with:
Gradle/Loom setup and Fabric metadata.
Multi-phase Void Boss based on Iron Golem.
Dark Dash, Debris Vortex, and Collapse abilities.
Cooldowns, levitation, fire/headshot reactions, arrow deflection, bell stun, and peaceful-mob targeting.
Void Shard, Levitation Amulet, and Void armor items.
Custom creative tab, crafting recipes, item models, equipment data, and translations.
/voidbossand/voidboss summoncommands.Client-side Iron Golem renderer reuse.
The compilation failed with this error:
Compilation failed with 200 error(s):
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 6: cannot find symbol
import net.minecraft.item.ItemTags;
^
symbol: class ItemTags
location: package net.minecraft.item
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 8: cannot find symbol
import net.minecraft.item.equipment.ArmorType;
^
symbol: class ArmorType
location: package net.minecraft.item.equipment
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 7: cannot find symbol
import net.minecraft.item.equipment.ArmorType;
^
symbol: class ArmorType
location: package net.minecraft.item.equipment
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 16: cannot find symbol
import net.minecraft.entity.mob.IronGolemEntity;
^
symbol: class IronGolemEntity
location: package net.minecraft.entity.mob
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 19: cannot find symbol
import net.minecraft.entity.damage.DamageTypeTags;
^
symbol: class DamageTypeTags
location: package net.minecraft.entity.damage
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 28: cannot find symbol
public class VoidBossEntity extends IronGolemEntity {
^
symbol: class IronGolemEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 35: cannot find symbol
public VoidBossEntity(EntityType<? extends IronGolemEntity> entityType, World world) {
^
symbol: class IronGolemEntity
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 37: incompatible types: Entity cannot be converted to VoidBossEntity
if (entity instanceof com.kodari.voidboss.entity.VoidBossEntity boss && boss.isAlive()) {
^
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 37: cannot find symbol
if (entity instanceof com.kodari.voidboss.entity.VoidBossEntity boss && boss.isAlive()) {
^
symbol: method isAlive()
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 38: cannot find symbol
boss.setGlowing(false);
^
symbol: method setGlowing(boolean)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 50: method getEntitiesByClass in interface EntityView cannot be applied to given types;
serverWorld.getEntitiesByClass(com.kodari.voidboss.entity.VoidBossEntity.class, area,
^
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 61: incompatible types: LivingEntity cannot be converted to VoidBossEntity
if (!(entity instanceof com.kodari.voidboss.entity.VoidBossEntity boss) || !(entity.getWorld() instanceof ServerWorld world)) {
^
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 65: cannot find symbol
boss.dropStack(new ItemStack(ModItems.VOID_SHARD, shards));
^
symbol: method dropStack(ItemStack)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 67: cannot find symbol
boss.dropStack(new ItemStack(net.minecraft.item.Items.NETHERITE_INGOT));
^
symbol: method dropStack(ItemStack)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 70: cannot find symbol
boss.dropStack(new ItemStack(net.minecraft.item.Items.ENCHANTED_BOOK));
^
symbol: method dropStack(ItemStack)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 73: cannot find symbol
boss.dropStack(new ItemStack(ModItems.LEVITATION_AMULET));
^
symbol: method dropStack(ItemStack)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 75: cannot find symbol
net.minecraft.entity.ExperienceOrbEntity.spawn(world, boss.getPos(), 1600);
^
symbol: method getPos()
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/command/VoidBossCommand.java at line 30: cannot find symbol
boss.refreshPositionAndAngles(position.x, position.y, position.z, source.getRotation().y, 0.0f);
^
symbol: method refreshPositionAndAngles(double,double,double,float,float)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/command/VoidBossCommand.java at line 31: incompatible types: VoidBossEntity cannot be converted to Entity
world.spawnEntity(boss);
^
ERROR in src/main/java/com/kodari/voidboss/item/LevitationAmuletItem.java at line 22: incompatible types: LevitationAmuletItem cannot be converted to ItemStack
if (user.getItemCooldownManager().isCoolingDown(this)) {
^
ERROR in src/main/java/com/kodari/voidboss/item/LevitationAmuletItem.java at line 25: no suitable method found for set(LevitationAmuletItem,int)
user.getItemCooldownManager().set(this, 600);
^
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 17: cannot find symbol
RegistryKeys.EQUIPMENT_ASSET, Identifier.of(VoidBossMod.MOD_ID, "void"));
^
symbol: variable EQUIPMENT_ASSET
location: class RegistryKeys
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 29: cannot find symbol
ItemTags.REPAIRS_NETHERITE_ARMOR,
^
symbol: variable ItemTags
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 21: cannot find symbol
ArmorType.HELMET, 3,
^
symbol: variable ArmorType
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 22: cannot find symbol
ArmorType.CHESTPLATE, 8,
^
symbol: variable ArmorType
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 23: cannot find symbol
ArmorType.LEGGINGS, 6,
^
symbol: variable ArmorType
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 24: cannot find symbol
ArmorType.BOOTS, 3),
^
symbol: variable ArmorType
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 18: cannot find symbol
public static final Item VOID_HELMET = register("void_helmet", settings -> new ArmorItem(settings, ArmorType.HELMET),
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 19: cannot find symbol
new Item.Settings().armor(VoidArmorMaterial.VOID, ArmorType.HELMET));
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 20: cannot find symbol
public static final Item VOID_CHESTPLATE = register("void_chestplate", settings -> new ArmorItem(settings, ArmorType.CHESTPLATE),
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 21: cannot find symbol
new Item.Settings().armor(VoidArmorMaterial.VOID, ArmorType.CHESTPLATE));
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 22: cannot find symbol
public static final Item VOID_LEGGINGS = register("void_leggings", settings -> new ArmorItem(settings, ArmorType.LEGGINGS),
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 23: cannot find symbol
new Item.Settings().armor(VoidArmorMaterial.VOID, ArmorType.LEGGINGS));
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 24: cannot find symbol
public static final Item VOID_BOOTS = register("void_boots", settings -> new ArmorItem(settings, ArmorType.BOOTS),
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 25: cannot find symbol
new Item.Settings().armor(VoidArmorMaterial.VOID, ArmorType.BOOTS));
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 40: cannot find symbol
return createIronGolemAttributes()
^
symbol: method createIronGolemAttributes()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 48: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 50: incompatible types: VoidBossEntity cannot be converted to PathAwareEntity
this.goalSelector.add(1, new MeleeAttackGoal(this, 1.0, true));
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 50: cannot find symbol
this.goalSelector.add(1, new MeleeAttackGoal(this, 1.0, true));
^
symbol: variable goalSelector
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 51: incompatible types: VoidBossEntity cannot be converted to PathAwareEntity
this.goalSelector.add(2, new WanderAroundFarGoal(this, 0.7));
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 51: cannot find symbol
this.goalSelector.add(2, new WanderAroundFarGoal(this, 0.7));
^
symbol: variable goalSelector
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 52: incompatible types: VoidBossEntity cannot be converted to MobEntity
this.goalSelector.add(3, new LookAtEntityGoal(this, LivingEntity.class, 24.0f));
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 52: cannot find symbol
this.goalSelector.add(3, new LookAtEntityGoal(this, LivingEntity.class, 24.0f));
^
symbol: variable goalSelector
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 53: incompatible types: VoidBossEntity cannot be converted to MobEntity
this.goalSelector.add(4, new LookAroundGoal(this));
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 53: cannot find symbol
this.goalSelector.add(4, new LookAroundGoal(this));
^
symbol: variable goalSelector
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 54: cannot find symbol
this.targetSelector.add(1, new ActiveTargetGoal<>(this, LivingEntity.class, 10, true, false,
^
symbol: variable targetSelector
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 54: cannot infer type arguments for ActiveTargetGoal<>
this.targetSelector.add(1, new ActiveTargetGoal<>(this, LivingEntity.class, 10, true, false,
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 59: incomparable types: LivingEntity and VoidBossEntity
return target != this && target.isAlive() && !(target instanceof HostileEntity)
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 60: incompatible types: LivingEntity cannot be converted to VoidBossEntity
&& !(target instanceof VoidBossEntity);
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 63: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 65: cannot find symbol
super.tick();
^
symbol: variable super
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 66: cannot find symbol
if (getWorld().isClient()) {
^
symbol: method getWorld()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 78: cannot find symbol
if (collapseTicks == 1 && getWorld() instanceof ServerWorld world) {
^
symbol: method getWorld()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 79: cannot find symbol
requestTeleport(getX(), getY() - 15.0, getZ());
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 79: cannot find symbol
requestTeleport(getX(), getY() - 15.0, getZ());
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 79: cannot find symbol
requestTeleport(getX(), getY() - 15.0, getZ());
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 80: cannot find symbol
world.createExplosion(this, getX(), getY(), getZ(), 10.0f, World.ExplosionSourceType.MOB);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 80: cannot find symbol
world.createExplosion(this, getX(), getY(), getZ(), 10.0f, World.ExplosionSourceType.MOB);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 80: cannot find symbol
world.createExplosion(this, getX(), getY(), getZ(), 10.0f, World.ExplosionSourceType.MOB);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 82: cannot find symbol
heal(20.0f);
^
symbol: method heal(float)
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 84: cannot find symbol
world.spawnParticles(ParticleTypes.EXPLOSION, getX(), getY(), getZ(), 12, 3, 2, 3, 0.1);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 84: cannot find symbol
world.spawnParticles(ParticleTypes.EXPLOSION, getX(), getY(), getZ(), 12, 3, 2, 3, 0.1);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 84: cannot find symbol
world.spawnParticles(ParticleTypes.EXPLOSION, getX(), getY(), getZ(), 12, 3, 2, 3, 0.1);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 85: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_GENERIC_EXPLODE,
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 85: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_GENERIC_EXPLODE,
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 85: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_GENERIC_EXPLODE,
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 90: cannot find symbol
if (!(getWorld() instanceof ServerWorld world) || getTarget() == null || !getTarget().isAlive()) {
^
symbol: method getWorld()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 90: cannot find symbol
if (!(getWorld() instanceof ServerWorld world) || getTarget() == null || !getTarget().isAlive()) {
^
symbol: method getTarget()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 90: cannot find symbol
if (!(getWorld() instanceof ServerWorld world) || getTarget() == null || !getTarget().isAlive()) {
^
symbol: method getTarget()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 102: cannot find symbol
requestTeleport(getX(), getY() + 15.0, getZ());
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 102: cannot find symbol
requestTeleport(getX(), getY() + 15.0, getZ());
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 102: cannot find symbol
requestTeleport(getX(), getY() + 15.0, getZ());
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 103: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY(), getZ(), 80, 1.5, 2.0, 1.5, 0.2);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 103: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY(), getZ(), 80, 1.5, 2.0, 1.5, 0.2);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 103: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY(), getZ(), 80, 1.5, 2.0, 1.5, 0.2);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 104: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_IRON_GOLEM_REPAIR,
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 104: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_IRON_GOLEM_REPAIR,
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 104: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_IRON_GOLEM_REPAIR,
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 110: cannot find symbol
float healthRatio = getHealth() / getMaxHealth();
^
symbol: method getHealth()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 110: cannot find symbol
float healthRatio = getHealth() / getMaxHealth();
^
symbol: method getMaxHealth()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 115: cannot find symbol
LivingEntity target = getTarget();
^
symbol: method getTarget()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 118: cannot find symbol
requestTeleport(target.getX() - Math.sin(angle) * 2.5, target.getY(), target.getZ() + Math.cos(angle) * 2.5);
^
symbol: method requestTeleport(double,double,double)
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 119: cannot find symbol
target.damage(world, getDamageSources().mobAttack(this), 20.0f);
^
symbol: method getDamageSources()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 121: cannot find symbol
world.spawnParticles(ParticleTypes.POOF, getX(), getY() + 1.0, getZ(), 45, 0.8, 1.2, 0.8, 0.15);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 121: cannot find symbol
world.spawnParticles(ParticleTypes.POOF, getX(), getY() + 1.0, getZ(), 45, 0.8, 1.2, 0.8, 0.15);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 121: cannot find symbol
world.spawnParticles(ParticleTypes.POOF, getX(), getY() + 1.0, getZ(), 45, 0.8, 1.2, 0.8, 0.15);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 122: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_ENDERMAN_TELEPORT,
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 122: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_ENDERMAN_TELEPORT,
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 122: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_ENDERMAN_TELEPORT,
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 127: cannot find symbol
world.spawnParticles(ParticleTypes.BLOCK, getX(), getY() + 1.0, getZ(), 140, 8.0, 3.0, 8.0, 0.4);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 127: cannot find symbol
world.spawnParticles(ParticleTypes.BLOCK, getX(), getY() + 1.0, getZ(), 140, 8.0, 3.0, 8.0, 0.4);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 127: cannot find symbol
world.spawnParticles(ParticleTypes.BLOCK, getX(), getY() + 1.0, getZ(), 140, 8.0, 3.0, 8.0, 0.4);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 128: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY() + 1.0, getZ(), 70, 8.0, 3.0, 8.0, 0.25);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 128: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY() + 1.0, getZ(), 70, 8.0, 3.0, 8.0, 0.25);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 128: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY() + 1.0, getZ(), 70, 8.0, 3.0, 8.0, 0.25);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 130: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.BLOCK_STONE_BREAK,
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 130: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.BLOCK_STONE_BREAK,
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 130: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.BLOCK_STONE_BREAK,
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 132: cannot find symbol
for (BlockPos pos : BlockPos.iterateOutwards(getBlockPos(), 8, 4, 8)) {
^
symbol: method getBlockPos()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 137: no suitable method found for spawnParticles(ParticleType<BlockStateParticleEffect>,double,double,double,int,double,double,double,double)
world.spawnParticles(ParticleTypes.BLOCK, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5,
^
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 50: method getEntitiesByClass in interface EntityView cannot be applied to given types;
serverWorld.getEntitiesByClass(com.kodari.voidboss.entity.VoidBossEntity.class, area,
^
ERROR in src/main/java/com/kodari/voidboss/item/LevitationAmuletItem.java at line 25: no suitable method found for set(LevitationAmuletItem,int)
user.getItemCooldownManager().set(this, 600);
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 137: no suitable method found for spawnParticles(ParticleType<BlockStateParticleEffect>,double,double,double,int,double,double,double,double)
world.spawnParticles(ParticleTypes.BLOCK, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5,
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 59: incomparable types: LivingEntity and VoidBossEntity
return target != this && target.isAlive() && !(target instanceof HostileEntity)
^
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 37: incompatible types: Entity cannot be converted to VoidBossEntity
if (entity instanceof com.kodari.voidboss.entity.VoidBossEntity boss && boss.isAlive()) {
^
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 61: incompatible types: LivingEntity cannot be converted to VoidBossEntity
if (!(entity instanceof com.kodari.voidboss.entity.VoidBossEntity boss) || !(entity.getWorld() instanceof ServerWorld world)) {
^
ERROR in src/main/java/com/kodari/voidboss/command/VoidBossCommand.java at line 31: incompatible types: VoidBossEntity cannot be converted to Entity
world.spawnEntity(boss);
^
ERROR in src/main/java/com/kodari/voidboss/item/LevitationAmuletItem.java at line 22: incompatible types: LevitationAmuletItem cannot be converted to ItemStack
if (user.getItemCooldownManager().isCoolingDown(this)) {
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 50: incompatible types: VoidBossEntity cannot be converted to PathAwareEntity
this.goalSelector.add(1, new MeleeAttackGoal(this, 1.0, true));
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 51: incompatible types: VoidBossEntity cannot be converted to PathAwareEntity
this.goalSelector.add(2, new WanderAroundFarGoal(this, 0.7));
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 52: incompatible types: VoidBossEntity cannot be converted to MobEntity
this.goalSelector.add(3, new LookAtEntityGoal(this, LivingEntity.class, 24.0f));
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 53: incompatible types: VoidBossEntity cannot be converted to MobEntity
this.goalSelector.add(4, new LookAroundGoal(this));
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 60: incompatible types: LivingEntity cannot be converted to VoidBossEntity
&& !(target instanceof VoidBossEntity);
^
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 6: cannot find symbol
import net.minecraft.item.ItemTags;
^
symbol: class ItemTags
location: package net.minecraft.item
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 8: cannot find symbol
import net.minecraft.item.equipment.ArmorType;
^
symbol: class ArmorType
location: package net.minecraft.item.equipment
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 7: cannot find symbol
import net.minecraft.item.equipment.ArmorType;
^
symbol: class ArmorType
location: package net.minecraft.item.equipment
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 16: cannot find symbol
import net.minecraft.entity.mob.IronGolemEntity;
^
symbol: class IronGolemEntity
location: package net.minecraft.entity.mob
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 19: cannot find symbol
import net.minecraft.entity.damage.DamageTypeTags;
^
symbol: class DamageTypeTags
location: package net.minecraft.entity.damage
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 35: cannot find symbol
public VoidBossEntity(EntityType<? extends IronGolemEntity> entityType, World world) {
^
symbol: class IronGolemEntity
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 17: cannot find symbol
RegistryKeys.EQUIPMENT_ASSET, Identifier.of(VoidBossMod.MOD_ID, "void"));
^
symbol: variable EQUIPMENT_ASSET
location: class RegistryKeys
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 29: cannot find symbol
ItemTags.REPAIRS_NETHERITE_ARMOR,
^
symbol: variable ItemTags
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 21: cannot find symbol
ArmorType.HELMET, 3,
^
symbol: variable ArmorType
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 22: cannot find symbol
ArmorType.CHESTPLATE, 8,
^
symbol: variable ArmorType
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 23: cannot find symbol
ArmorType.LEGGINGS, 6,
^
symbol: variable ArmorType
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java at line 24: cannot find symbol
ArmorType.BOOTS, 3),
^
symbol: variable ArmorType
location: class VoidArmorMaterial
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 18: cannot find symbol
public static final Item VOID_HELMET = register("void_helmet", settings -> new ArmorItem(settings, ArmorType.HELMET),
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 19: cannot find symbol
new Item.Settings().armor(VoidArmorMaterial.VOID, ArmorType.HELMET));
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 20: cannot find symbol
public static final Item VOID_CHESTPLATE = register("void_chestplate", settings -> new ArmorItem(settings, ArmorType.CHESTPLATE),
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 21: cannot find symbol
new Item.Settings().armor(VoidArmorMaterial.VOID, ArmorType.CHESTPLATE));
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 22: cannot find symbol
public static final Item VOID_LEGGINGS = register("void_leggings", settings -> new ArmorItem(settings, ArmorType.LEGGINGS),
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 23: cannot find symbol
new Item.Settings().armor(VoidArmorMaterial.VOID, ArmorType.LEGGINGS));
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 24: cannot find symbol
public static final Item VOID_BOOTS = register("void_boots", settings -> new ArmorItem(settings, ArmorType.BOOTS),
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/item/ModItems.java at line 25: cannot find symbol
new Item.Settings().armor(VoidArmorMaterial.VOID, ArmorType.BOOTS));
^
symbol: variable ArmorType
location: class ModItems
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 65: cannot find symbol
super.tick();
^
symbol: variable super
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 48: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 63: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 54: cannot infer type arguments for ActiveTargetGoal<>
this.targetSelector.add(1, new ActiveTargetGoal<>(this, LivingEntity.class, 10, true, false,
^
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 28: cannot find symbol
public class VoidBossEntity extends IronGolemEntity {
^
symbol: class IronGolemEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 50: cannot find symbol
this.goalSelector.add(1, new MeleeAttackGoal(this, 1.0, true));
^
symbol: variable goalSelector
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 51: cannot find symbol
this.goalSelector.add(2, new WanderAroundFarGoal(this, 0.7));
^
symbol: variable goalSelector
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 52: cannot find symbol
this.goalSelector.add(3, new LookAtEntityGoal(this, LivingEntity.class, 24.0f));
^
symbol: variable goalSelector
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 53: cannot find symbol
this.goalSelector.add(4, new LookAroundGoal(this));
^
symbol: variable goalSelector
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 54: cannot find symbol
this.targetSelector.add(1, new ActiveTargetGoal<>(this, LivingEntity.class, 10, true, false,
^
symbol: variable targetSelector
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 37: cannot find symbol
if (entity instanceof com.kodari.voidboss.entity.VoidBossEntity boss && boss.isAlive()) {
^
symbol: method isAlive()
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 38: cannot find symbol
boss.setGlowing(false);
^
symbol: method setGlowing(boolean)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 65: cannot find symbol
boss.dropStack(new ItemStack(ModItems.VOID_SHARD, shards));
^
symbol: method dropStack(ItemStack)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 67: cannot find symbol
boss.dropStack(new ItemStack(net.minecraft.item.Items.NETHERITE_INGOT));
^
symbol: method dropStack(ItemStack)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 70: cannot find symbol
boss.dropStack(new ItemStack(net.minecraft.item.Items.ENCHANTED_BOOK));
^
symbol: method dropStack(ItemStack)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 73: cannot find symbol
boss.dropStack(new ItemStack(ModItems.LEVITATION_AMULET));
^
symbol: method dropStack(ItemStack)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/VoidBossMod.java at line 75: cannot find symbol
net.minecraft.entity.ExperienceOrbEntity.spawn(world, boss.getPos(), 1600);
^
symbol: method getPos()
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/command/VoidBossCommand.java at line 30: cannot find symbol
boss.refreshPositionAndAngles(position.x, position.y, position.z, source.getRotation().y, 0.0f);
^
symbol: method refreshPositionAndAngles(double,double,double,float,float)
location: variable boss of type VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 40: cannot find symbol
return createIronGolemAttributes()
^
symbol: method createIronGolemAttributes()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 66: cannot find symbol
if (getWorld().isClient()) {
^
symbol: method getWorld()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 78: cannot find symbol
if (collapseTicks == 1 && getWorld() instanceof ServerWorld world) {
^
symbol: method getWorld()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 79: cannot find symbol
requestTeleport(getX(), getY() - 15.0, getZ());
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 79: cannot find symbol
requestTeleport(getX(), getY() - 15.0, getZ());
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 79: cannot find symbol
requestTeleport(getX(), getY() - 15.0, getZ());
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 80: cannot find symbol
world.createExplosion(this, getX(), getY(), getZ(), 10.0f, World.ExplosionSourceType.MOB);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 80: cannot find symbol
world.createExplosion(this, getX(), getY(), getZ(), 10.0f, World.ExplosionSourceType.MOB);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 80: cannot find symbol
world.createExplosion(this, getX(), getY(), getZ(), 10.0f, World.ExplosionSourceType.MOB);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 82: cannot find symbol
heal(20.0f);
^
symbol: method heal(float)
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 84: cannot find symbol
world.spawnParticles(ParticleTypes.EXPLOSION, getX(), getY(), getZ(), 12, 3, 2, 3, 0.1);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 84: cannot find symbol
world.spawnParticles(ParticleTypes.EXPLOSION, getX(), getY(), getZ(), 12, 3, 2, 3, 0.1);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 84: cannot find symbol
world.spawnParticles(ParticleTypes.EXPLOSION, getX(), getY(), getZ(), 12, 3, 2, 3, 0.1);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 85: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_GENERIC_EXPLODE,
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 85: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_GENERIC_EXPLODE,
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 85: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_GENERIC_EXPLODE,
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 90: cannot find symbol
if (!(getWorld() instanceof ServerWorld world) || getTarget() == null || !getTarget().isAlive()) {
^
symbol: method getWorld()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 90: cannot find symbol
if (!(getWorld() instanceof ServerWorld world) || getTarget() == null || !getTarget().isAlive()) {
^
symbol: method getTarget()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 90: cannot find symbol
if (!(getWorld() instanceof ServerWorld world) || getTarget() == null || !getTarget().isAlive()) {
^
symbol: method getTarget()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 102: cannot find symbol
requestTeleport(getX(), getY() + 15.0, getZ());
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 102: cannot find symbol
requestTeleport(getX(), getY() + 15.0, getZ());
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 102: cannot find symbol
requestTeleport(getX(), getY() + 15.0, getZ());
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 103: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY(), getZ(), 80, 1.5, 2.0, 1.5, 0.2);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 103: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY(), getZ(), 80, 1.5, 2.0, 1.5, 0.2);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 103: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY(), getZ(), 80, 1.5, 2.0, 1.5, 0.2);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 104: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_IRON_GOLEM_REPAIR,
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 104: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_IRON_GOLEM_REPAIR,
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 104: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_IRON_GOLEM_REPAIR,
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 110: cannot find symbol
float healthRatio = getHealth() / getMaxHealth();
^
symbol: method getHealth()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 110: cannot find symbol
float healthRatio = getHealth() / getMaxHealth();
^
symbol: method getMaxHealth()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 115: cannot find symbol
LivingEntity target = getTarget();
^
symbol: method getTarget()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 118: cannot find symbol
requestTeleport(target.getX() - Math.sin(angle) * 2.5, target.getY(), target.getZ() + Math.cos(angle) * 2.5);
^
symbol: method requestTeleport(double,double,double)
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 119: cannot find symbol
target.damage(world, getDamageSources().mobAttack(this), 20.0f);
^
symbol: method getDamageSources()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 121: cannot find symbol
world.spawnParticles(ParticleTypes.POOF, getX(), getY() + 1.0, getZ(), 45, 0.8, 1.2, 0.8, 0.15);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 121: cannot find symbol
world.spawnParticles(ParticleTypes.POOF, getX(), getY() + 1.0, getZ(), 45, 0.8, 1.2, 0.8, 0.15);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 121: cannot find symbol
world.spawnParticles(ParticleTypes.POOF, getX(), getY() + 1.0, getZ(), 45, 0.8, 1.2, 0.8, 0.15);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 122: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_ENDERMAN_TELEPORT,
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 122: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_ENDERMAN_TELEPORT,
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 122: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.ENTITY_ENDERMAN_TELEPORT,
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 127: cannot find symbol
world.spawnParticles(ParticleTypes.BLOCK, getX(), getY() + 1.0, getZ(), 140, 8.0, 3.0, 8.0, 0.4);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 127: cannot find symbol
world.spawnParticles(ParticleTypes.BLOCK, getX(), getY() + 1.0, getZ(), 140, 8.0, 3.0, 8.0, 0.4);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 127: cannot find symbol
world.spawnParticles(ParticleTypes.BLOCK, getX(), getY() + 1.0, getZ(), 140, 8.0, 3.0, 8.0, 0.4);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 128: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY() + 1.0, getZ(), 70, 8.0, 3.0, 8.0, 0.25);
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 128: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY() + 1.0, getZ(), 70, 8.0, 3.0, 8.0, 0.25);
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 128: cannot find symbol
world.spawnParticles(ParticleTypes.REVERSE_PORTAL, getX(), getY() + 1.0, getZ(), 70, 8.0, 3.0, 8.0, 0.25);
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 130: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.BLOCK_STONE_BREAK,
^
symbol: method getX()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 130: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.BLOCK_STONE_BREAK,
^
symbol: method getY()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 130: cannot find symbol
world.playSound(null, getX(), getY(), getZ(), SoundEvents.BLOCK_STONE_BREAK,
^
symbol: method getZ()
location: class VoidBossEntity
ERROR in src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java at line 132: cannot find symbol
for (BlockPos pos : BlockPos.iterateOutwards(getBlockPos(), 8, 4, 8)) {
^
symbol: method getBlockPos()
location: class VoidBossEntity
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- ItemTags
- ArmorType
- IronGolemEntity
- DamageTypeTags
ACTION: Create these classes or check imports
MISSING METHODS:
- isAlive()
- setGlowing(boolean)
- dropStack(ItemStack)
- getPos()
- refreshPositionAndAngles(double,double,double,float,float)
- createIronGolemAttributes()
- getWorld()
- getY()
- getX()
- getZ()
- heal(float)
- getTarget()
- getHealth()
- getMaxHealth()
- requestTeleport(double,double,double)
- getDamageSources()
- getBlockPos()
ACTION: Check method names and signatures
TYPE MISMATCHES:
- incompatible types: Entity cannot be converted to VoidBossEntity
- incompatible types: LivingEntity cannot be converted to VoidBossEntity
- incompatible types: VoidBossEntity cannot be converted to Entity
- incompatible types: LevitationAmuletItem cannot be converted to ItemStack
- incompatible types: VoidBossEntity cannot be converted to PathAwareEntity
- incompatible types: VoidBossEntity cannot be converted to PathAwareEntity
- incompatible types: VoidBossEntity cannot be converted to MobEntity
- incompatible types: VoidBossEntity cannot be converted to MobEntity
- incompatible types: LivingEntity cannot be converted to VoidBossEntity
- incompatible types: Entity cannot be converted to VoidBossEntity
- incompatible types: LivingEntity cannot be converted to VoidBossEntity
- incompatible types: VoidBossEntity cannot be converted to Entity
- incompatible types: LevitationAmuletItem cannot be converted to ItemStack
- incompatible types: VoidBossEntity cannot be converted to PathAwareEntity
- incompatible types: VoidBossEntity cannot be converted to PathAwareEntity
- incompatible types: VoidBossEntity cannot be converted to MobEntity
- incompatible types: VoidBossEntity cannot be converted to MobEntity
- incompatible types: LivingEntity cannot be converted to VoidBossEntity
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java
- src/main/java/com/kodari/voidboss/item/ModItems.java
- src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java
- src/main/java/com/kodari/voidboss/VoidBossMod.java
- src/main/java/com/kodari/voidboss/command/VoidBossCommand.java
- src/main/java/com/kodari/voidboss/item/LevitationAmuletItem.java
- src/main/java/com/kodari/voidboss/VoidBossMod.java
- src/main/java/com/kodari/voidboss/item/LevitationAmuletItem.java
- src/main/java/com/kodari/voidboss/entity/VoidBossEntity.java
- src/main/java/com/kodari/voidboss/command/VoidBossCommand.java
- src/main/java/com/kodari/voidboss/item/VoidArmorMaterial.java
- src/main/java/com/kodari/voidboss/item/ModItems.java
Please fix this error by creating a new artifact with the corrected code.
Replace outdated 1.21.4 imports and APIs in the armor/item code.
Rebuild the boss on the correct Yarn Iron Golem/entity hierarchy and signatures.
Correct command, tick/event, cooldown, drops, particles, and registration call sites.
Leave a compile-ready corrected artifact in the project.
Updated the project with the corrected Fabric 1.21.4 Yarn code.
Key fixes include:
Replaced obsolete
ArmorTypewithEquipmentType.Corrected
ArmorItemconstructor argument order.Replaced
RegistryKeys.EQUIPMENT_ASSETwithEquipmentAssetKeys.REGISTRY_KEY.Fixed
ItemTagsandDamageTypeTagsimports.Moved
IronGolemEntitytonet.minecraft.entity.passive.Fixed cooldown calls to use
ItemStack.Wrapped block particles in
BlockStateParticleEffect.Updated entity lookups to use the registered
EntityType.Updated death drops to call
dropStack(ServerWorld, ItemStack).Preserved valid 1.21.4 APIs for entity creation, teleportation, damage, goals, attributes, commands, and spawning.
The corrected artifact is now in the project files.
как перенести мод этот в игру?
Чтобы установить этот мод в Minecraft:
Установите Minecraft Java Edition 1.21.4.
Установите Fabric Loader 1.21.4 с официального установщика Fabric.
Скачайте Fabric API для 1.21.4 и положите файл
.jarв папкуmods.Соберите проект. В корне проекта выполните:
gradle build
В проекте нет gradlew, поэтому нужен установленный Gradle. После сборки мод появится здесь:
build/libs/voidboss-1.0.0.jar
Скопируйте этот файл в папку
modsMinecraft:
Windows:
%appdata%\.minecraft\mods
Linux:
~/.minecraft/mods
macOS:
~/Library/Application Support/minecraft/mods
В папке mods должны находиться как минимум:
voidboss-1.0.0.jar
fabric-api-...+1.21.4.jar
Запустите профиль Fabric 1.21.4.
Для проверки сборки можно использовать IntelliJ IDEA: открыть проект как Gradle-проект, дождаться загрузки зависимостей и запустить задачу:
Gradle → Tasks → build → build
Важно: для этого проекта требуется Java 21, а не Java 17 или Java 8.
подробнее как его собрать в корне проекта?
Собирать нужно из папки, где находятся build.gradle, settings.gradle и gradle.properties. В этом проекте Gradle Wrapper (gradlew) отсутствует, поэтому используется установленная команда gradle.
Windows
1. Откройте PowerShell
Перейдите в корень проекта. Например, если проект находится в C:\Projects\voidboss:
cd "C:\Projects\voidboss"
Проверьте, что вы находитесь в правильной папке:
dir
В списке должны быть примерно такие файлы:
build.gradle
settings.gradle
gradle.properties
src
2. Проверьте Java
java -version
Нужна Java 21. В выводе должна быть версия вроде:
openjdk version "21..."
Если отображается Java 8, 17 или другая версия, установите JDK 21 и настройте JAVA_HOME.
3. Проверьте Gradle
gradle --version
Если Gradle установлен, появится информация о версии Gradle и Java.
Если появляется ошибка:
gradle is not recognized
значит, Gradle не установлен или не добавлен в PATH. Установите Gradle и перезапустите PowerShell.
4. Запустите сборку
В корне проекта выполните:
gradle clean build
clean удаляет старые результаты сборки, а build собирает мод и запускает стандартные проверки.
При первом запуске Gradle скачает Minecraft, Fabric Loom и зависимости. Это может занять несколько минут.
Успешный результат заканчивается сообщением:
BUILD SUCCESSFUL
5. Найдите готовый мод
После успешной сборки выполните:
dir .\build\libs
Готовый файл будет примерно таким:
voidboss-1.0.0.jar
Или его можно найти вручную по пути:
build\libs\voidboss-1.0.0.jar
Для установки в игру используйте обычный основной .jar, а не файлы с названиями вроде:
-sources.jar
-dev.jar
Linux или macOS
Откройте терминал и перейдите в папку проекта:
cd /путь/к/проекту
Например:
cd ~/Projects/voidboss
Проверьте файлы:
ls
Затем проверьте Java и Gradle:
java -version
gradle --version
Запустите сборку:
gradle clean build
Готовый файл появится в:
build/libs/voidboss-1.0.0.jar
Посмотреть содержимое папки можно командой:
ls -l build/libs
Если команда gradle не найдена
Можно собрать проект через IntelliJ IDEA:
Откройте папку проекта в IntelliJ IDEA.
Дождитесь, пока IntelliJ распознает проект как Gradle-проект.
Откройте панель Gradle справа.
Перейдите в:
Tasks → build → build
Дважды нажмите
build.Найдите результат в:
build/libs
Установка собранного файла
Скопируйте файл:
build/libs/voidboss-1.0.0.jar
в папку mods:
%appdata%\.minecraft\mods
Также в этой папке должен находиться Fabric API для Minecraft 1.21.4.
После этого запустите Minecraft через профиль:
Fabric 1.21.4
Для последующих сборок достаточно находиться в корне проекта и выполнять:
gradle build
или в Linux/macOS:
gradle build
автоматизировать это никак?
Да. Удобнее всего один раз создать Gradle Wrapper, а затем запускать сборку двойным кликом.
1. Один раз создайте Gradle Wrapper
В корне проекта выполните:
gradle wrapper --gradle-version 8.10.1
После этого появятся:
gradlew
gradlew.bat
gradle/wrapper/
В дальнейшем установленный Gradle уже не понадобится — проект будет использовать собственную версию.
2. Создайте файл build-and-install.bat
Положите его рядом с build.gradle:
@echo off
setlocal
cd /d "%~dp0"
echo Building mod...
call gradlew.bat clean build
if errorlevel 1 (
echo.
echo Build failed.
pause
exit /b 1
)
if not exist "%APPDATA%\.minecraft\mods" (
mkdir "%APPDATA%\.minecraft\mods"
)
set "MOD_JAR="
for /f "delims=" %%J in ('dir /b /o:-d "build\libs\*.jar" 2^>nul ^| findstr /v /i "sources dev"') do (
set "MOD_JAR=%%J"
goto :found
)
:found
if not defined MOD_JAR (
echo.
echo Mod jar was not found in build\libs
pause
exit /b 1
)
copy /Y "build\libs\%MOD_JAR%" "%APPDATA%\.minecraft\mods\"
echo.
echo Installed:
echo %MOD_JAR%
echo.
echo You can now launch Fabric 1.21.4.
pause
3. Использование
Теперь достаточно:
Закрыть запущенный Minecraft.
Дважды нажать
build-and-install.bat.Дождаться сообщения
BUILD SUCCESSFUL.Запустить Minecraft через профиль Fabric 1.21.4.
Скрипт автоматически:
скачает нужную версию Gradle при первом запуске;
соберёт мод;
найдёт основной
.jar;исключит
-sources.jarи-dev.jar;скопирует мод в:
%APPDATA%\.minecraft\mods
Fabric API при этом нужно один раз положить в mods вручную. Сборка мода не устанавливает Fabric Loader и Fabric API.
package com.kodari.voidboss;
import com.kodari.voidboss.entity.ModEntities;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
import net.minecraft.client.render.entity.EntityRenderer;
import net.minecraft.client.render.entity.IronGolemEntityRenderer;
@SuppressWarnings({"rawtypes", "unchecked"})
public class VoidBossClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
EntityRendererRegistry.register(ModEntities.VOID_BOSS,
context -> (EntityRenderer) new IronGolemEntityRenderer(context));
}
}