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.

Quest Event Bridge Mod

Features:

  • SubscribeEvent to KubeJS Bridge: Captures game SubscribeEvent triggers and stores their values inside player persistentData so KubeJS scripts can read them through player.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 /qeb commands 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 persistentData so 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:

  1. Install this library mod alongside KubeJS and FTB Quests in your modpack so scripts and quests can read captured event data.
  2. Create a custom task in FTB Quests with its own task ID, such as a goal to trade 10 times with a Librarian.
  3. Write a KubeJS script that reads the player’s persistentData (via player.nbt) and links the recorded trade count and villager profession to your custom FTB Quests task ID.
  4. Trade with villagers in-game; each completed onTrade event writes the villager’s profession and updated trade count into the player’s persistentData automatically so the custom quest tracks progress.
  5. Run /qeb trades in chat to preview a player’s saved trade counts and confirm that trades are recording properly.
  6. Run /qeb set_trades to manually assign a specific trade count and villager profession during modpack testing, or run /qeb reset_trades to clear stored trade data and test the quest from scratch.

Requirements:

Quest Event Bridge Mod Download Links

For Minecraft 1.21.1, 1.21

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

Have you ever created your own Minecraft mod or modpack, even a simple one?

15 responses · See the full results →