#FTB struggles with intergration

32 messages · Page 1 of 1 (latest)

full raven
#

im new to both kube and FTB quests and am trying to use kube make a daily quest i found a bit of old documentaion for intergratiation which said to use this script for doing a time quest. onEvent('ftbquests.custom_task.75381f79', event => {
log.info('Custom task!')
event.checkTimer = 20
event.check = (task, player) => {
if (player.world.daytime && player.world.raining) {
task.progress++
}
}
})

but i recived an error after applying

young escarpBOT
#

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

proper sparrowBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

This example will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
flat belfry
#

onEvent is old syntax, 1.19+ is different

full raven
#

so its just event?

hushed dock
#

no

flat belfry
#

Read the wiki

hushed dock
#

it doesn't seem like it's documented there

#

but it sure is in the source

flat belfry
#

The mod is not documented there, proper KubeJS syntax is

#

I'd be happy to make a page for it on the wiki

hushed dock
#

yeah that is true

flat belfry
#

I just wish they had proper docs, smh

full raven
#

so it would change from onEvent('ftbquests.custom_task.75381f79', event =>

#

to ServerEvents.ftbquests.custom_task.75381f79 (event => ?

#

wait no

flat belfry
#

Yeah no

#

I think it's:

FTBEvents.custom_task('taskid', e =>{
```I haven't touched the mod in months, so idk
proper sparrowBOT
#

ProbeJS is an addon mod for KubeJS that generates typings files for VSCode, allowing VSCode to offer autocompletions for a ton of things!

Mod by @verbal aurora

full raven
#

i might just give up on the quests idea for now i think i broke minecraft

flat belfry
#

I'll get that wiki page up soon and then it shouldn't be a problem for ya

full raven
#

thanks for all the quick help on servers like this i usually have to wait days for a response

flat belfry
#

Np, those guys probably don't know the value of community

#

I assume they use moderators for support

#

This is the proper syntax:

FTBQuestsEvents.customTask('id', e => {})
full raven
#

well ill check the wiki latter but i need to get off and work on other projects

full raven
#

what is the name of the wiki page if its up now?

flat belfry
#

I'll link it

high pumice
#

I tried to do the same and FTBQuestsEvents is undefined, I generated using probeJS