#Are there no JS classes in KubeJS?

4 messages · Page 1 of 1 (latest)

glacial summit
leaden oakBOT
#

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

wraith tiger
#

if u dont notice, kubejs uses an interpreter to transform js code to java code, u can not use proper definitions that is not be able in the kubejs code(events, functions, properties,...), so u can use functions that return the proper objects of the thing that u want to do, for example create a function that generate with the params/args and returns a js object/json object for a loot table

glacial summit
#

thanks for clarifying that