annawllws

Can you create me a mod for a Minecraft To Do List?

Kodari AI
KodariOct 17 at 6:10 pm 1
QuestList
A Minecraft Fabric mod that adds an in-game To Do List interface. Players can open a GUI with a keybind to add, edit, complete, and remove tasks. Tasks persist across sessions via JSON storage. The mod features a clean, intuitive UI with checkboxes, priority levels, and timestamps. It integrates with the Fabric API for client-side rendering and keybinding, providing a lightweight organizational tool for players to track goals, builds, and objectives without leaving the game.
  1. Add a Fabric 26.2 client mod with a keybind to open a to-do list.

  2. Build the list screen with owo-ui and persist tasks locally.

  3. Add the required mod metadata and dependency manifest.

Created a client-side To Do List mod for Minecraft 26.2. Press P to open the owo-ui list; add tasks, mark them complete, remove them, or clear completed tasks. Tasks are saved in config/todolist.txt.

Added the Fabric project setup and owo-lib manifest.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
9 320
src/client/java/com/kodari/todolist/client/ToDoListClient.java
package com.kodari.todolist.client;

import com.mojang.blaze3d.platform.InputConstants;
import com.kodari.todolist.client.ui.ToDoScreen;
import com.kodari.todolist.data.ToDoStore;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.minecraft.client.KeyMapping;
import net.minecraft.client.Minecraft;

import java.nio.file.Path;

public class ToDoListClient implements ClientModInitializer {
    private static final KeyMapping OPEN_LIST = KeyMappingHelper.registerKeyMapping(
            new KeyMapping("key.todolist.open", InputConstants.Type.KEYSYM, InputConstants.KEY_P, KeyMapping.Category.MISC)
    );

    private ToDoStore store;

    @Override
    public void onInitializeClient() {
        Path savePath = Minecraft.getInstance().gameDirectory.toPath()
                .resolve("config")
                .resolve("todolist.txt");
        this.store = ToDoStore.load(savePath);

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            if (OPEN_LIST.consumeClick()) {
                client.gui.setScreen(new ToDoScreen(this.store));
            }
        });
    }
}