#How to import Create-mod scripts into new kubejs

11 messages · Page 1 of 1 (latest)

opal galleon
#

This is the script i used for some items they no longer work, i checked the documentation but everything is labelled as "legacy"

hazy micaBOT
#

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

mortal stumpBOT
#

Paste version of script.js from @opal galleon

stark pagoda
#

the new event for registering recipes is called ```js
ServerEvents.recipes(event => {//...

#

for item tags

ServerEvents.tags("item", event => {//...
#

You should consider using probejs to get auto-completions, syntax highlighing and other good stuff in your code editor(only in visual studio code)

opal galleon
stark pagoda
#

the create part should be up to date

#

you are missing the correct format of the event, because the one you are using uses old kubejs event listening