QuestAPI

Library that allow developers to create easily quests and dialogs
Back to Files

QuestAPI v1.2.0-1.19

File namequestapi-1.2.0-1.19.jar
Uploader
zanckor02zanckor02
Uploaded
Mar 16, 2023
Downloads
23
Size
547.2 KB
Mod Loaders
Forge
File ID
4440969
Type
R
Release
Supported game versions
  • 1.19

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:questapi-828496:4440969")

Learn more about Curse Maven

What's new

New HashMap on LocateHashMap for dialogPerEntityType & dialogPerCompoundTag

Created codec folders for filemanager classes

Created methods registerDatapack for dialogs, quests, npc (entity type and compound tag)

Created classes LoadDialogList & LoadTagDialogList for loading npc dialogs from datapack and resources

Changes on screens

Renamed classes on dialogoption folder

Command quest reward (Support for @p)

Multistage quests via quest reward

Changes on AbstractQuest:

- Added completeQuest method per quest type instead of having a single class CompleteQuest

- Added enhancedCompleteQuest method if your QuestType needs extra code, like remove items on complete quest

Datapack support:

- 4 new classes for JSON Listener with datapacks

Added packet OpenVanillaEntityScreen to change between dialog screen and entity default screen (if it has)

If npc has dialog screen and his own screen, player can open default screen directly with interact + shift

Added methods to MCUtil: - hasQuest (Checks if player has active or completed X quest)

Added methods to MCUtilClient for render text

Added reloadQuests command for reload resources folder (dev run + debug mode)

Added new events on ServerEvent:

- loadDialogPerEntityType: Checks if there's any json in npc-entity_type_list that fetchs with interacted entity and display his dialogs

- loadDialogPerCompoundTag: Checks if interacted entity has fetched tags with any json in npc-compound_tag_list and display his dialogs

Added new paths to QuestApiMain Added enums for Logic_Gates (Used on CompoundTagList)

Fixed quest log, data keep even if quest was deleted/completed

 

Fixed some minor bugs

This mod has no additional files