#FTB Quests compat - Repeatable after cooldown?

22 messages · Page 1 of 1 (latest)

soft beacon
#

Is there a way I can use KubeJS to make a quest repeatable only after a certain amount of time?

It doesn't seem possible natively, but I'd love to be wrong. My vague idea is to create an item which, when right clicked, completes the quest. Set it to only be right-clickable every 20 minutes.

half aspenBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

plush lava
#

that's one way to do it

#

but you could also use ftb quests additions i think it's called

#

i think that has repeatable quests

#

and if not, what you could also do with that addon is have a quest unlock an invisible quest

#

and that invisible quest has a timer task of... idk 20 minutes

#

and when that invisible quest completes it resets the original quest

soft beacon
#

I think FTB Quests has native repeatable quests now, and the Repeatable Quest function in Quest Additions is deprecated. However, I really like your idea, I'm going to try that out.

soft beacon
#

It works! It didn't end up using KJS but here's what I did, in case anyone comes across this later:

  • Created the quest I wanted to repeat. In my case, trade in 2 Nether Wart for 1 basic Potion of choice. This quest is not repeatable.
  • Created a timer quest to control the reset of the Potion quest. Set this quest to be repeatable, with progression mode Linear (I am locking this ability behind another quest and didn't want the timer running until they complete the prerequisite). Is Secret, Is Invisible set to true.
  • Copied the ID of the Potion quest (right click > copy ID)
  • Set the reward of the Timer quest to be the following command: /ftbquests change_progress @s reset 491B5AE4AF9A4012 (the alphanumeric nonsense being the ID)
  • Set the reward to Auto-Claim (No Toast), Exclude from Claim All, Team Reward "false," Run as Player "true" (necessary for the @s to work).

Now once the prerequisite quest is completed, players will immediately be able to complete their Potion quest, and can do it again every 20 minutes thereafter.

The only hiccup is that I'd like the reset to be silent. ATM it plays "Progress has been changed!" in the text box.

plush lava
#

oh heck yeah

#

hm

#

you could run it as server

#

and then run the command on the player

soft beacon
#

That works! Although I can still see it in singleplayer. Is that because I have cheats enabled?

#
[18:54:06] [Render thread/INFO]: [CHAT] [Server: Progress has been changed!]```
plush lava
#

uhhh it’s i think

#

there‘s a gamerule for that

#

but either way yeah that’s because you have cheats enabled

#

non ops can’t see that

soft beacon
#

/gamerule sendCommandFeedback false

Works! Thanks again! 😄