Skip to content
ZombieHDGamingPublic

About

A new and innovative questing plugin for Minecraft.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Journeys

A flexible questing plugin for Paper built around branching quest graphs, an in-game editor, and an open API for new objective, condition and reward types.

Status: early foundation (0.1.0-SNAPSHOT). The core model, engine, storage, editor and FancyNPCs hook work end to end; expect breaking changes before 1.0.

Features

  • Branching quests. A quest is a graph of stages. Each stage has objectives (all, any, or in sequence) and transitions that lead to other stages, to completion, or to failure, chosen automatically by conditions or picked by the player from clickable chat or a menu.
  • Quest board. /journeys board lets players browse quests by category, see what is available, on cooldown or locked (with a ✔/✖ checklist of requirements), and accept quests with a click. NPCs can open a category's board.
  • Progression gating. Lock quests behind permissions, earlier quests, a number of completed quests, a stage reached, or the branch a player chose in an earlier quest. Locked quests can be shown with their requirements or kept secret.
  • In-game editor. /journeys editor edits everything: text, settings, stages, objectives, transitions, conditions and rewards. It works from each type's declared parameters, so types added by other plugins appear in it automatically.
  • Plain YAML files. One file per quest in plugins/Journeys/quests/. The editor writes the same files, so quests can be hand-edited, diffed and kept in version control. See docs/quest-format.md.
  • Adventure everywhere. Every message, quest name and label is MiniMessage; messages.yml controls all player-facing text.
  • Solo or party progress. Progress belongs to a holder: a player, or a party supplied by a party plugin through the API.
  • SQLite, MySQL or MariaDB storage with versioned schema migrations, async IO and batched autosaves.
  • Anti-farming. Player-placed blocks are tracked in chunk data, so break, place and collect objectives cannot be farmed by placing and breaking the same block or dropping and picking up items. Other plugins can use the same tracker through JourneysApi#placedBlocks().
  • Boss bar and tracking. Players track a quest from their quest log; quests can show a configurable boss bar with the current objective and stage progress.
  • PlaceholderAPI. Placeholders work in quest text, messages and rewards, a placeholder condition gates quests on any placeholder, and %journeys_...% placeholders expose quest state to scoreboards and other plugins.
  • FancyNPCs hook. talk_to_npc objectives and NPC quest givers.

Requirements

  • Paper 26.3 or newer
  • Java 25

Commands and permissions

Command Permission Default
/journeys (/quests), /journeys log journeys.command.log everyone
/journeys board [category] journeys.command.board everyone
/journeys track <quest>, /journeys untrack journeys.command.track everyone
/journeys abandon <quest> journeys.command.abandon everyone
/journeys choose <quest> <option> journeys.command.choose everyone (used by clickable choices)
/journeys start <quest> [player] journeys.command.start op
/journeys editor [quest] journeys.editor op
/journeys list journeys.command.list op
/journeys reload journeys.command.reload op

journeys.admin grants all of the above and lets admins abandon quests marked as not abandonable. Quests with the permission setting enabled also require journeys.quest.<id> (ops have it by default).

Project layout

Module Purpose
journeys-api Public API: quest model, type SPI, events, services. Other plugins compile against this.
journeys-core The plugin: engine, storage, YAML, GUI and editor, commands.
journeys-integration-fancynpcs FancyNPCs hook, shaded into the plugin jar and loaded only when FancyNPCs is installed.
journeys-integration-placeholderapi PlaceholderAPI hook, shaded in the same way.

Database drivers and HikariCP are not shaded; Paper downloads them at startup through JourneysLoader.

Building

./gradlew build                     # plugin jar: journeys-core/build/libs/Journeys-<version>.jar
./gradlew :journeys-core:runServer  # starts a local Paper test server with the plugin

Gradle provisions JDK 25 automatically if it is not installed.

Extending Journeys

Depend on journeys-api (compileOnly) and add Journeys as a dependency in your plugin descriptor. Then register types during enable:

public final class CatchFishObjective implements ObjectiveType, Listener {

    static final Parameter<List<Material>> FISH = Parameter.optional("fish", Component.text("Fish (empty = any)"),
            ParameterTypes.listOf(ParameterTypes.ITEM), null);

    private final ObjectiveTracker tracker;

    public CatchFishObjective(ObjectiveTracker tracker) {
        this.tracker = tracker;
    }

    @Override public Key key() { return Key.key("myplugin", "catch_fish"); }
    @Override public Component displayName() { return Component.text("Catch fish"); }
    @Override public Key icon() { return Key.key("minecraft:cod"); }
    @Override public List<Parameter<?>> parameters() { return List.of(FISH); }

    @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
    public void onFish(PlayerFishEvent event) {
        if (event.getCaught() instanceof Item item) {
            Material type = item.getItemStack().getType();
            tracker.progress(event.getPlayer(), this, params -> {
                List<Material> allowed = params.getOrNull(FISH);
                return allowed == null || allowed.contains(type);
            }, 1);
        }
    }
}

// in onEnable
JourneysApi journeys = Journeys.get();
journeys.objectiveTypes().register(new CatchFishObjective(journeys.objectiveTracker()));

Types that implement Listener are registered with Bukkit automatically. Conditions (ConditionType) and rewards (RewardType) work the same way. Quest lifecycle events (QuestStartEvent, QuestStageChangeEvent, ObjectiveProgressEvent, QuestEndEvent) are regular Bukkit events, and parties plug in through PartyProvider.

License

MIT, see LICENSE.

About

A new and innovative questing plugin for Minecraft.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages