0
📎 1 file 1,240 chars
📄
pasted-code-1787703278047.txt
txt 1 lines
▶
make me a minecraft plugin that uses api.donutsmp.net that auto does bone block orders (you can select any block) check the cheapest bone order like the most paying one and if its in thoudands lets say it was 1.2K per bone make it add 100 so 1.3K and if in 100s make it add 20 so like 340 make it 360 for me and if in 10s make it add 5 and make it so when order is full it claims it auto and takes it out and if inventory is full it goes to A NORMAL CHEST or a DOUBLE CHEST and puts the rest of the bone block orders in the chest and theres another feature like when u order the bones (u can disable both of them) like theres 2 options so 1 ordering and 2 ah auto sell and ah auto sell crafts 4 stacks of bone blocks (it goes in chest and grabs 4 stacks) and crafts it all into bone meal using inventory craft thing and then it looks on /ah bonemeal and sees the cheapest one (MAKE IT SO IT ONLY SEES THE CHEAPEST ONE IN 1K OR ABOVE) and it sells all the bonemeal auto so it does /ah sell (200 less then the cheapest price 1K+ ONLY) and it checks the auction every 10 seconds to see the cheapest price make it auto grab the bonemeal from inventory into hotbar make it so u open ui with k and u can start auto order with I and auto ah with j
Kodari AI
KodariAug 26 at 12:22 am 2
BoneBlockAutoTrader
A Minecraft Fabric mod that automates bone block trading via api.donutsmp.net. Features auto-ordering with price adjustments based on order size, auto-claiming completed orders into inventory or chests, and an auto-auction system that crafts bone meal from bone blocks and sells at competitive prices. Configurable hotkeys (K for UI, I for ordering, J for auction selling) with toggleable features.
  1. Create a Fabric 1.21.11 client mod scaffold with the required split source sets and metadata.

  2. Add DonutSMP API integration, configurable order pricing, and automated order claiming/storage.

  3. Add optional auto-sell workflow for bone meal plus hotkeys K, I, and J.

  4. Add an in-game configuration screen and required assets/resources.

Created the Fabric 1.21.11 client mod scaffold.

  • K opens the automation configuration screen.

  • I toggles automated orders.

  • J toggles automated auction selling.

  • Configurable item IDs, API key, API URL, listing path, commands, pricing thresholds, polling interval, and automation options.

  • Cheapest-price detection supports values such as 340, 1.2K, and 1M.

  • Order markup rules:

    • +100 for prices ≥ 1,000

    • +20 for prices ≥ 100

    • +5 for prices ≥ 10

    • +1 otherwise

  • Includes order claiming, crafting-table automation, bone-meal hotbar preparation, and JSON configuration persistence.

  • Uses the required Fabric 1.21.11 split source sets and Yarn mappings.

The DonutSMP API endpoint and command syntax are configurable because an exact API response schema and server command format were not provided. The default listing path and commands should be adjusted from the K configuration screen.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
12 663
src/client/java/com/kodari/donutautomation/DonutAutomationClient.java
package com.kodari.donutautomation;

import com.kodari.donutautomation.client.AutomationConfigScreen;
import com.kodari.donutautomation.client.AutomationManager;
import com.kodari.donutautomation.config.AutomationConfig;
import com.kodari.donutautomation.config.ConfigManager;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;

public final class DonutAutomationClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        AutomationConfig config = ConfigManager.load();
        AutomationManager automation = new AutomationManager(config);
        KeyBinding.Category category = KeyBinding.Category.create(
                Identifier.of(DonutAutomation.MOD_ID, "controls"));

        KeyBinding openConfig = KeyBindingHelper.registerKeyBinding(new KeyBinding(
                "key.donutautomation.open_config", GLFW.GLFW_KEY_K, category));
        KeyBinding toggleOrders = KeyBindingHelper.registerKeyBinding(new KeyBinding(
                "key.donutautomation.toggle_orders", GLFW.GLFW_KEY_I, category));
        KeyBinding toggleSelling = KeyBindingHelper.registerKeyBinding(new KeyBinding(
                "key.donutautomation.toggle_selling", GLFW.GLFW_KEY_J, category));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (openConfig.wasPressed()) {
                client.setScreen(new AutomationConfigScreen(null, config));
            }
            while (toggleOrders.wasPressed()) {
                automation.toggleOrders(client);
            }
            while (toggleSelling.wasPressed()) {
                automation.toggleSelling(client);
            }
            automation.tick(client);
        });
    }
}