Develop a mod that allows a pleyer to set villager trade prices through a user-friendly GUI interface during trades. Include features such as customizable item prices, and items
Build the mod skeleton and register a trade-editor key while a villager trade screen is open.
Add an owo-ui editor for existing offers: adjust cost items/quantities and the result item.
Apply edits server-side to the villager’s real trade offers and include the required mod metadata/dependency.
Created the Villager Trade Editor mod. While a villager trade screen is open, press F6 to edit existing offers or add a new trade. The owo-ui editor lets you set item IDs and quantities for the first payment, optional second payment, and villager’s result. Changes are validated and applied server-side; edited offers retain their existing usage limits and trade settings.
nie działa
Poprawiłem wybór handlarza: edytor pobiera teraz villagera przypisanego do otwartego okna wymiany, zamiast wybierać najbliższego. Wcześniej mógł wysyłać zmiany dla innego villagera, przez co serwer je odrzucał. czek Poczekaj wait I have accidental Polish “czek” weird. Need just final polished, include build not verified. Could mention build not run. The request simply says doesn’t work. We can say if nadal… prompt exact error. But no promise compile. Final: “Zmiana w … Build not run”. “Jeśli nadal…” ask build log. Fine.
no minecraft loads normaly but i can not use it, i can change the conrols but it is working end nothing happen if i press f6 when i'm trading
The client-side trade menu uses a proxy merchant, so the Villager check was blocking F6 every time.
Open the editor from the active trade screen, then let the server validate the real villager when saving.
The keybind was registered, but the client was checking for a real Villager in the trade menu. On the client, that menu uses a proxy merchant, so the check always failed and F6 did nothing.
I changed it to open the editor from the active trade screen; the server now validates the real villager when you save. Try your configured key again while the villager trade screen is open.
it still isn't working
Detect the active
MerchantMenufrom the player, rather than requiring a specific screen class.Only consume the keypress when a merchant menu is active, and keep the current screen as the return target.
I changed the trigger to check the player’s active MerchantMenu instead of requiring a particular screen class. It only consumes the keypress while a merchant menu is open and returns to the previous screen afterward.
Compile the updated project and replace the older mod jar before testing the key shown in Controls.
you updted the mod?
Yes—the project source was updated to detect the active merchant menu. You’ll need to compile the updated project and replace the old mod file in Minecraft with the new jar before the change takes effect.
can i download it?
Yes. Compile the project, then download the updated jar:
Click Compile in the top bar (on a phone, tap ⋮ → Compile Project).
Click Compile in the window that opens.
When it succeeds, click Download for that build or Download VillagerTradeEditor.jar in the chat.
how do i do it?
On desktop, click Compile in the top bar. On a phone, tap ⋮ in the top-right, then Compile Project.
In the window that opens, click Compile.
When the build succeeds, click Download next to that build—or the Download VillagerTradeEditor.jar button in the chat.
now use the mod?
To use it:
Install the newly downloaded jar in your Minecraft
modsfolder and start the game with Fabric 26.3.Open a trade with a villager.
If F6 doesn’t work, go to Options → Controls → Key Binds, find Villager Trade Editor, and assign it an unused key.
While the trade screen is open, press that key. Edit the item IDs and quantities, then use the editor’s save/apply button.
Make sure you removed or replaced the older jar before launching.
on 26.3 fabric 0.19.5
Yes—the mod targets Minecraft 26.3 with Fabric Loader 0.19.5. Launch that Fabric profile, make sure the updated mod jar and its dependencies are in that instance’s mods folder, then check Options → Controls → Key Binds for the editor’s assigned key.
how do i use it step by step
Install the updated mod in the
modsfolder for your Minecraft 26.3 Fabric instance. Remove any older Villager Trade Editor jar first.Make sure owo-lib is installed too if it isn’t included with your download.
Start Minecraft with Fabric Loader 0.19.5.
Open Options → Controls → Key Binds, find Villager Trade Editor, and assign an unused key.
Open a trade with a villager and press that key while the trading screen is open.
In the editor, enter item IDs and quantities for the first payment, optional second payment, and result. Use the editor’s Save/Apply button.
In multiplayer, the server also needs the mod installed. If the editor still doesn’t open after these steps, the keypress handler needs fixing—changing the controls alone won’t resolve that.
package com.kodari.villagertradeeditor;
import net.fabricmc.api.ModInitializer;
public final class VillagerTradeEditor implements ModInitializer {
public static final String MOD_ID = "villagertradeeditor";
@Override
public void onInitialize() {
TradeEditPayload.register();
}
}