diff --git a/plugins/ConvertObj/README.md b/plugins/ConvertObj/README.md index e9ef3f0c3..744d03605 100644 --- a/plugins/ConvertObj/README.md +++ b/plugins/ConvertObj/README.md @@ -3,6 +3,7 @@ Convert OBJ is a compiler plugin for [Dash](https://github.com/bridge-core/dash-compiler) that converts OBJ files into the JSON format Minecraft understands. ## Installation + After installing the plugin from bridge.'s extension store, edit your project config to include the "convertObj" compiler plugin: ``` @@ -22,4 +23,4 @@ After installing the plugin from bridge.'s extension store, edit your project co To add a new OBJ file to your project, simply add the file to your `RP/models/` folder. Place a corresponding texture with the same file name within the `RP/textures/obj/` folder (e.g. `my_model.obj` -> `my_model.png`). -You can now reference your new model as `:my_model` within your project. +You can now reference your new model as `geometry..my_model` within your project. diff --git a/plugins/ConvertObj/manifest.json b/plugins/ConvertObj/manifest.json index b0f254443..4abf5c94b 100644 --- a/plugins/ConvertObj/manifest.json +++ b/plugins/ConvertObj/manifest.json @@ -2,7 +2,7 @@ "author": "solvedDev", "icon": "mdi-vector-polygon", "name": "Convert OBJ", - "version": "1.0.1", + "version": "1.0.2", "id": "f76c1da1-1ee4-4a32-8deb-30e2d3fbc885", "description": "Convert .obj files to Minecraft models", "api_version": 2, diff --git a/plugins/ConvertObj/plugin.js b/plugins/ConvertObj/plugin.js index 64ae4ee65..5cdcbc67b 100644 --- a/plugins/ConvertObj/plugin.js +++ b/plugins/ConvertObj/plugin.js @@ -162,7 +162,7 @@ export default ({ options, projectConfig, fileSystem }) => { async transform(filePath, fileContent) { if (filePath.endsWith('.obj')) { const fileName = filePath.split('/').pop().replace('.obj', '') - const modelId = `${namespace}:${fileName}` + const modelId = `geometry.${namespace}.${fileName}` const texturePath = projectConfig.resolvePackPath( 'resourcePack',