@ore-ui-types/enums
v1.3.0
Published
Enums for Minecraft Bedrock Edition's Ore UI scripting environment.
Maintainers
Readme
Ore UI Types - Enums
Enums for Minecraft Bedrock Edition's Ore UI scripting environment.
This is meant to be used with the ore-ui-types package.
Unlike the ore-ui-types package, this package is not purely type declaration files, to make use of the enums, you will need do the following:
- Install the package using
npm install @ore-ui-types/enums. - Copy the
index.jsfile fromnode_modules/@ore-ui-types/enums/index.jstogui/dist/hbui/@ore-ui-types/enums(in the Ore UI files, the file should be calledenums(with no file extension)) (or if you are using it in a plugin for 8Crafter's Ore UI Customizer (v1.10.0+), it will already be there, so you can skip this step).- Note: If the script or HTML file importing this package is not in
gui/dist/hbui/, then you will need to copy this file to be at./@ore-ui-types/enumsrelative to the script or HTML file. (ex. If your file is atgui/dist/myScript.js, then you will need to copy the file togui/dist/@ore-ui-types/enums.). If you don't want to copy the file to a specific location you can configure yourtsconfig.jsonto map/hbui/@ore-ui-types/enumsto the types for the package, to do that just add the following to yourtsconfig.json'scompilerOptions(make surebaseUrlis set to./in yourtsconfig.json'scompilerOptions) (once you do it you will import the package through/hbui/@ore-ui-types/enumsinstead of@ore-ui-types/enums):{ "compilerOptions": { "paths": { "/hbui/@ore-ui-types/enums": ["./node_modules/@ore-ui-types/enums/index.d.ts"] } } }
- Note: If the script or HTML file importing this package is not in
