Quests Tweaker

Quick rating

Quests Tweaker

No reviews yet

A mod to integrate FTBQuests with CraftTweaker.

API/Library
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Client and Server

Must be installed on both the client and the server.

About

Project Details

Type
Mod
License
MIT License
Latest Version
Quest Tweaker 1.3.1
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

About

Description

QuestsTweaker

A mod to integrate FTBQuests with CraftTweaker.

Features

  • Add/set progress for an existing quest from crafttweaker.
  • New 'Function' task type that runs a crafttweaker function to check progress.
  • New 'Function' reward type that runs a crafttweaker funtion on completion.

CraftTweaker API

See wiki for more documentation.

mods.questtweaker.QuestManager

Add/set progress for any existing and available task from crafttweaker:
When the task is unavailable (for example has dependencies uncompleted), this function does nothing.

QuestManager.addTaskProgress(IPlayer player, string/int id, long progress);
QuestManager.setTaskProgress(IPlayer player, string/int id, long progress);
import mods.questtweaker.QuestManager;
// Add progress
// IPlayer player, string/int id, long progress
QuestManager.addTaskProgress(event.player,"4c4bd563",1 as long);
// Or use hex int
QuestManager.addTaskProgress(event.player,0x4c4bd563,1 as long);
// Set progress
// IPlayer player, string/int id, long progress
QuestManager.setTaskProgress(event.player,"4c4bd563",1 as long);

Example when player pickups an item, set the task progress to stack size:

import mods.questtweaker.QuestManager;
events.onPlayerPickupItem(function(event as crafttweaker.event.PlayerPickupItemEvent){
    QuestManager.setTaskProgress(event.player,"52725826",event.item.item.amount as long);
});

mods.questtweaker.FunctionManager

Add a new function to use with this mod's 'Function' tasks and rewards:

FunctionManager.addFunction(string functionID, function(IPlayer) -> long);

The function must return an long.
Example 1: Player's current altitude

import mods.queststweaker.FunctionManager;
import crafttweaker.player.IPlayer;
// string functionID, function(IPlayer) -> long
FunctionManager.addFunction("height",function(player as IPlayer){
    return player.y as long;
});

Example 2: On a Rail on_a_rail.zs

FTBQuests Integration

Function Task

Executes a function peridocally, and uses its return value as the progress.
Parameters:

  • Function ID: the function ID registered in scripts.
  • Value: The value needed to complete the task.
  • Interval: The interval to run the function. Set to 0 for manual submission.

Function Reward

Executes a function when collected.
Parameters:

  • Function ID: the function ID registered in scripts.

Dummy Task

Does nothing on its own. Intended to use with the QuestManager above.
Parameters:

  • Value: The value needed to complete the task.

QuestsTweaker

A mod to integrate FTBQuests with CraftTweaker.

Features

  • Add/set progress for an existing quest from crafttweaker.
  • New 'Function' task type that runs a crafttweaker function to check progress.
  • New 'Function' reward type that runs a crafttweaker funtion on completion.

CraftTweaker API

mods.questtweaker.QuestManager

Add/set progress for any existing and available task from crafttweaker:
When the task is unavailable (for example has dependencies uncompleted), this function does nothing.
QuestManager.addTaskProgress(IPlayer player, string/int id, long progress); QuestManager.setTaskProgress(IPlayer player, string/int id, long progress);

import mods.questtweaker.QuestManager;
// Add progress
// IPlayer player, string/int id, long progress
QuestManager.addTaskProgress(event.player,"4c4bd563",1 as long);
// Or use hex int
QuestManager.addTaskProgress(event.player,0x4c4bd563,1 as long);
// Set progress
// IPlayer player, string/int id, long progress
QuestManager.setTaskProgress(event.player,"4c4bd563",1 as long);

Example when player pickups an item, set the task progress to stack size:

import mods.questtweaker.QuestManager;
events.onPlayerPickupItem(function(event as crafttweaker.event.PlayerPickupItemEvent){
    QuestManager.setTaskProgress(event.player,"52725826",event.item.item.amount as long);
});

mods.questtweaker.FunctionManager

Add a new function to use with this mod's 'Function' tasks and rewards:
FunctionManager.addFunction(string functionID, function(IPlayer) -> long);
The function must return an long.
Example 1: Player's current altitude

import mods.queststweaker.FunctionManager;
import crafttweaker.player.IPlayer;
// string functionID, function(IPlayer) -> long
FunctionManager.addFunction("height",function(player as IPlayer){
    return player.y as long;
});

Example 2: On a Rail on_a_rail.zs

FTBQuests Integration

Function Task

Executes a function peridocally, and uses its return value as the progress.
Parameters:

  • Function ID: the function ID registered in scripts.
  • Value: The value needed to complete the task.
  • Interval: The interval to run the function. Set to 0 for manual submission.

Function Reward

Executes a function when collected.
Parameters:

  • Function ID: the function ID registered in scripts.

Dummy Task

Does nothing on its own. Intended to use with the QuestManager above.
Parameters:

  • Value: The value needed to complete the task.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~8,000
Total Downloads
CurseForge
~7,000
Modrinth
<1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works