Quest Event Bridge Mod (1.21.1) – Track Villager Trades For KubeJS
Quest Event Bridge Mod connects Minecraft gameplay events to KubeJS and FTB Quests by saving player actions into persistentData. This library mod captures villager trades through onTrade events and records both the villager profession and trade count directly on each player. Modpack setups then read that stored data with KubeJS scripts and link it to custom FTB Quests task IDs, such as requiring ten trades with a Librarian. It also adds three in-game commands so you can check, edit, or clear stored player trade records while testing your pack.
![]()
Features:
- SubscribeEvent to KubeJS Bridge: Captures game
SubscribeEventtriggers and stores their values inside playerpersistentDataso KubeJS scripts can read them throughplayer.nbt. - Villager Trade Tracking: Listens for
onTrade(TradeWithVillagerEvent) whenever a player finishes a villager trade and saves both the villager profession and total trade count to that player’s data. - FTB Quests Custom Task Hooks: Lets KubeJS scripts read stored trade counts and connect them to custom FTB Quests task IDs, making goals like trading ten times with a Librarian track automatically.
- Built-In Trade Data Commands: Adds three
/qebcommands in-game so you can preview, manually set, or reset saved villager trade values without editing world files by hand. - Works as a focused library mod built for modpacks that rely on custom quest progression through KubeJS and FTB Quests.
- Stores trade counts by villager profession directly inside each player’s
persistentDataso progress persists across sessions.
Commands:
/qeb trades: Previews the saved villager trade data stored for a player./qeb reset_trades: Deletes a player’s stored villager trade data created by this mod./qeb set_trades: Manually sets a trade count and villager profession in a player’s saved data.
How to Use:
- Install this library mod alongside KubeJS and FTB Quests in your modpack so scripts and quests can read captured event data.
- Create a custom task in FTB Quests with its own task ID, such as a goal to trade 10 times with a Librarian.
- Write a KubeJS script that reads the player’s
persistentData(viaplayer.nbt) and links the recorded trade count and villager profession to your custom FTB Quests task ID. - Trade with villagers in-game; each completed
onTradeevent writes the villager’s profession and updated trade count into the player’spersistentDataautomatically so the custom quest tracks progress. - Run
/qeb tradesin chat to preview a player’s saved trade counts and confirm that trades are recording properly. - Run
/qeb set_tradesto manually assign a specific trade count and villager profession during modpack testing, or run/qeb reset_tradesto clear stored trade data and test the quest from scratch.
How to Install:
New to Minecraft? Follow our step-by-step guide to install Mods on your PC.View Guide
Requirements:
Quest Event Bridge Mod Download Links
For Minecraft 1.21.1, 1.21
Have you ever created your own Minecraft mod or modpack, even a simple one?
22 responses · See the full results →
0



















This post has no comments yet. Be the first — your comment will appear here.