Act as an expert Minecraft Java mod developer specializing in Fabric mods, Minecraft world generation, block placement, and Java programming.
PROJECT: KP Modern House Mod
Create a complete, working Minecraft Fabric mod for Minecraft Java Edition 1.20.1, designed to run using Mojo Launcher on Android.
- MAIN FEATURE
When I open the Minecraft chat and type "KP", then press Enter, a beautiful, fully constructed, two-floor modern house must spawn near my player automatically.
The player must NOT need to type "/kp". Typing "KP" directly in chat must trigger the building.
The house must be a complete, realistic-looking Minecraft home, NOT a hollow rectangular box.
- EXTERIOR DESIGN
Build a large, stylish, modern two-story house featuring:
- Modern architectural design.
- White concrete, quartz, wood, and dark concrete.
- Large glass windows.
- A proper front entrance with a working door.
- A covered entrance porch.
- A beautiful entrance pathway.
- A balcony on the first floor.
- A stylish flat roof with an overhang.
- Exterior lighting.
- Small landscaped areas with grass, plants, and trees.
- Modern architectural details and depth.
- Realistic proportions and a visually attractive facade.
- INTERIOR ROOMS
The house must have actual rooms with walls, doors, furniture, and enough space to walk around.
GROUND FLOOR:
Living Room:
- Sofas made from suitable Minecraft blocks.
- A coffee table.
- A TV mounted on the wall.
- A decorative carpet.
- Proper lighting.
Kitchen:
- Kitchen counters.
- A furnace or smoker.
- Storage cabinets using barrels or other suitable blocks.
- A dining table with chairs.
- Enough space for the player to move around.
Bathroom:
- A separate enclosed room.
- A toilet-like structure.
- A sink.
- A shower area.
- Appropriate decorative blocks.
Additional Features:
- A proper entrance hallway.
- Interior doors between rooms.
- Realistic walls and room divisions.
- Functional movement between all areas.
UPPER FLOOR:
Master Bedroom:
- A proper bed.
- Bedside tables.
- Wardrobe or storage cabinets.
- Decorative lighting.
Second Bedroom:
- Another bed.
- Storage furniture.
- Windows and lighting.
Additional Features:
- A hallway connecting the upstairs rooms.
- A staircase connecting the ground floor and upper floor.
- Access to the balcony.
- Proper floor and ceiling construction.
- FUNCTIONAL BUILDING REQUIREMENTS
The house must:
- Have two complete floors.
- Have an accessible entrance.
- Contain real interior spaces instead of a hollow shell.
- Have functional doors wherever appropriate.
- Have a staircase that players can actually climb.
- Have enough headroom for players.
- Have windows that let light into the rooms.
- Have furniture arranged without blocking doorways.
- Have connected rooms that the player can explore.
- Spawn in the correct orientation.
- Avoid placing the house inside the player or underground.
- Avoid unnecessarily destroying the surrounding terrain.
- Use appropriate block states for doors, beds, stairs, and other interactive blocks.
- Avoid overlapping walls, furniture, and staircases.
- Work in survival and creative mode wherever permissions allow.
- CHAT ACTIVATION
Implement a reliable chat interception system.
When the player types exactly "KP", regardless of capitalization, the mod should cancel the normal chat message and trigger the house-building feature.
Do not intercept unrelated messages.
The mod must work in single-player and support multiplayer when installed on the server with the necessary permissions.
If the mod requires server-side installation, explain this clearly.
- TECHNICAL REQUIREMENTS
- Minecraft Java Edition 1.20.1.
- Fabric Loader.
- Java 17.
- Compatible Fabric API.
- Suitable for Mojo Launcher.
- Use correct Yarn mappings for Minecraft 1.20.1.
- Use appropriate Fabric events and Minecraft APIs.
- Ensure the code compiles without errors.
- Do not use Forge or NeoForge.
- Do not use incompatible Minecraft APIs from other versions.
Use a clean, modular architecture. Separate the chat trigger from the house-building logic.
Create a dedicated house-builder class so the structure can be improved later.
- IMPORTANT BUILDING LOGIC
Before placing blocks:
- Find a suitable area near the player.
- Check whether there is enough space.
- Determine a safe building position.
- Construct the foundation.
- Build the walls, rooms, floors, ceiling, and roof.
- Add doors, windows, stairs, and balcony.
- Place furniture and lighting.
- Finish the exterior decorations.
Use a predefined, carefully designed building layout rather than random block placement.
The structure must be designed as a real house with a coherent floor plan.
Do not simply fill a large rectangular volume with blocks. Do not make a hollow cube with windows.
- PERFORMANCE AND RELIABILITY
- Prevent the build process from freezing the game unnecessarily.
- Avoid infinite loops.
- Handle invalid building locations safely.
- Ensure block placement uses valid coordinates and block states.
- Avoid repeated house generation from a single chat message.
- Provide a confirmation message when the house is successfully built.
- Show a useful error message if construction fails.
- REQUIRED OUTPUT
Generate the complete, working mod project, including:
- All Java source files.
- Correct "fabric.mod.json".
- Correct Gradle build configuration.
- Required dependencies.
- Any additional resources.
- A clear project folder structure.
- Instructions for compiling the mod.
- Instructions for installing the compiled JAR in Mojo Launcher.
- Instructions for testing the mod in Minecraft 1.20.1.
If you can compile files, compile the project and provide the finished ".jar" file.
If you cannot compile files, provide all source files and clearly explain how to compile them.
Do not provide incomplete pseudocode or pretend that an uncompiled project is a working JAR.
FINAL GOAL:
When I enter my Minecraft world, open chat, type "KP", and press Enter, a beautiful, fully furnished, realistic two-floor modern house should appear nearby. I should be able to enter the house, open its doors, walk between rooms, climb the stairs, explore the bedrooms, use the balcony, and enjoy the interior.
Prioritize a beautiful exterior, a detailed interior, functional movement, and reliable Minecraft 1.20.1 Fabric compatibility.
Creating the Fabric 1.20.1 project with a server-side KP chat trigger, a terrain-aware house builder, and Mojo Launcher setup instructions.
Created the Fabric 1.20.1 project with a case-insensitive exact KP chat trigger, a separate house builder, terrain and clearance checks, and block placement spread across server ticks. The layout includes two floors, furnished rooms, working doors, stairs, a balcony, a porch, landscaping, and a flat roof.
Multiplayer: install the mod on the server. It adds no permission check, so anyone who can send chat can request a build. In single-player, the integrated server loads the mod.
Build and install: I haven’t produced or verified a JAR here. In Kodari, click Compile in the top bar (phone: ⋮ → Compile Project), then click Compile in the window and download the resulting JAR. In Mojo Launcher, use a Minecraft 1.20.1 Fabric instance with Fabric API installed, and put the mod JAR in that instance’s mods folder.
The project’s README includes the folder structure and setup steps.
package dev.kpmodernhouse;
import dev.kpmodernhouse.build.ModernHouseBuilder;
import dev.kpmodernhouse.chat.KPChatListener;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
public final class KPModernHouseMod implements ModInitializer {
private static final ModernHouseBuilder HOUSE_BUILDER = new ModernHouseBuilder();
@Override
public void onInitialize() {
KPChatListener.register(HOUSE_BUILDER);
ServerTickEvents.END_SERVER_TICK.register(HOUSE_BUILDER::tick);
}
}