Develop a Minecraft Java Fabric 26.2 mod featuring a friendly companion named Ollie, designed to closely resemble the provided image. Ollie should float beside the player, engage in dynamic conversations based on player interactions, and react with various facial expressions to the environment. Incorporate voice chat functionality that allows players to communicate with Ollie using their microphone, complete with permission prompts and toggle settings for voice features. Package the mod as a .jar file for easy installation in the Minecraft mods folder.
Set up the Fabric 26.2 project and metadata.
Add Ollie’s server-side companion entity, follow behavior, interaction memory, and expression state.
Add client rendering, dynamic conversation UI, microphone consent/toggle screen, and voice capture transport.
Add assets, translations, mixin metadata, and build configuration for a distributable JAR.
Created a Fabric 26.2 / Java 25 project configured to build
ollie-1.0.0.jar.Added Ollie’s floating companion entity with:
Player following
Persistent companion behavior
Interaction responses
Happy, curious, worried, sleepy, and excited expressions
Environment-aware reactions
Added client-side model, renderer, animation, and facial expression state.
Added optional microphone capture with:
Vkey voice settings screenExplicit microphone permission toggle
Voice enable/disable control
Client-to-server voice frame networking
Server-side packet size and voice-activity validation
Added Fabric metadata, mixin configs, translations, build files, and registry setup.
The current voice system detects microphone activity and lets Ollie respond safely in-game; speech-to-text or AI-generated dialogue would require integrating an external recognition/conversation service.
The compilation failed with this error:
[FABRIC] Compiling 12 Java files for MC 26.2 (release 25)
[ERROR] Compilation failed
/workspace/src/main/java/com/kodari/ollie/entity/OllieEntity.java:105: error: cannot find symbol
} else if (this.level().isNight()) {
^
symbol: method isNight()
location: class Level
/workspace/src/main/java/com/kodari/ollie/OllieEntityTypes.java:20: error: incompatible types: cannot infer type-variable(s) T
EntityType.Builder.of(OllieEntity::new, MobCategory.MISC)
^
(argument mismatch; invalid constructor reference
incompatible types: EntityType<Entity> cannot be converted to EntityType<? extends OllieEntity>)
where T is a type-variable:
T extends Entity declared in method <T>of(EntityFactory<T>,MobCategory)
Note: /workspace/src/main/java/client/java/com/kodari/ollie/OllieClient.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
Please fix this error by creating a new artifact with the corrected code.
Fixed the compilation errors in the Ollie mod artifact:
Replaced unavailable
Level.isNight()with a 24,000-tick daytime check.Added explicit generic type inference to
EntityType.Builder:JavaEntityType.Builder.<OllieEntity>of(OllieEntity::new, MobCategory.MISC)
Updated files:
src/main/java/com/kodari/ollie/entity/OllieEntity.javasrc/main/java/com/kodari/ollie/OllieEntityTypes.java
The corrected project is ready for the Fabric 26.2 build pipeline to package the new .jar.
package com.kodari.ollie;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class OllieMod implements ModInitializer {
public static final String MOD_ID = "ollie";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@Override
public void onInitialize() {
OllieEntityTypes.initialize();
OllieNetwork.initialize();
}
}