
Что это
A mod to integrate FTBQuests with CraftTweaker.
- Тип: мод
- Загрузчик: forge
- Версии Minecraft: 1.12.2
- Скачиваний на Modrinth: 1 015
Подробно
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; });
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.
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Mace Music
Plays Chaos Construct by AZALI or songs that the user imports, plays if the user is holding a mace. 05.12.2026
Better Programmer Glass
Makes the old glass and stained glass texture cleaner while keeping the older style. For use with programmer art style resourcepacks 05.12.2026
Climbable Chains
Lets you climb chain blocks across multiple versions! 05.12.2026
Sulfur Cave Labyrinth
An underground puzzle structure for Sulfur Caves 05.12.2026
Piekarnia Modpack
A balanced survival-focused modpack that adds depth and immersion without the overwhelm of kitchen-sink packs. Perfect for players who want… 05.12.2026
Mad Pixels 16x
The 16x version of Mad Pixels. Make your Minecraft world simpler and more cheerful with the Mad Pixels resource pack! 05.12.2026