This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/resources/asajs.config.js

32 lines
663 B
JavaScript

/**
* Configuration object for the AsaJS build process.
* @type {import('asajs/config.d.ts').Config}
*/
export const config = {
packinfo: {
name: "AsaJS",
description: "Create your Minecraft JSON-UI resource packs using JavaScript.",
version: [1, 0, 0],
},
compiler: {
enabled: true,
autoImport: true,
autoEnable: true,
importToPreview: false,
},
binding_functions: {
custom_abs: function (number) {
const randomAbs = RandomBindingString(16)
return {
generate_bindings: [
{
source_property_name: `[ abs(${number}) ]`,
target_property_name: randomAbs,
},
],
return_value: randomAbs,
}
},
},
}