From c5eb454f20361c30a627726aca114a8f78cc55ca Mon Sep 17 00:00:00 2001 From: ForestOfLight Date: Thu, 7 May 2026 16:21:41 -0700 Subject: [PATCH 1/4] bump version to 1.0.9 & MC 26.20 --- packs/BP/manifest.json | 10 +++++----- packs/RP/manifest.json | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packs/BP/manifest.json b/packs/BP/manifest.json index 55e6366..b15bf3f 100644 --- a/packs/BP/manifest.json +++ b/packs/BP/manifest.json @@ -1,11 +1,11 @@ { "format_version": 2, "header": { - "name": "Construct [BP] v1.0.8", + "name": "Construct [BP] v1.0.9", "description": "Survival building addon by §aForestOfLight§r.", "uuid": "8c0c0153-d8b9-482a-889f-aef922b8fe58", - "min_engine_version": [1, 26, 10], - "version": [1, 0, 8] + "min_engine_version": [1, 26, 20], + "version": [1, 0, 9] }, "modules": [ { @@ -26,7 +26,7 @@ "dependencies": [ { "module_name": "@minecraft/server", - "version": "2.7.0-beta" + "version": "2.8.0-beta" }, { "module_name": "@minecraft/server-ui", @@ -34,7 +34,7 @@ }, { "uuid": "375ec465-3dc1-429f-8b4c-a337889e1ed4", // Construct RP - "version": [1, 0, 8] + "version": [1, 0, 9] } ], "metadata": { diff --git a/packs/RP/manifest.json b/packs/RP/manifest.json index 9d58d5c..46b0b82 100644 --- a/packs/RP/manifest.json +++ b/packs/RP/manifest.json @@ -1,11 +1,11 @@ { "format_version": 2, "header": { - "name": "Construct [RP] v1.0.8", + "name": "Construct [RP] v1.0.9", "description": "Survival building addon by §aForestOfLight§r.", "uuid": "375ec465-3dc1-429f-8b4c-a337889e1ed4", - "version": [1, 0, 8], - "min_engine_version": [1,26,10] + "version": [1, 0, 9], + "min_engine_version": [1, 26, 20] }, "modules": [ { @@ -17,7 +17,7 @@ "dependencies": [ { "uuid": "8c0c0153-d8b9-482a-889f-aef922b8fe58", // Construct BP - "version": [1, 0, 8] + "version": [1, 0, 9] } ], "capabilities": [ From 0401e4b591d8bad82629c2708fb32f9d18c9320b Mon Sep 17 00:00:00 2001 From: ForestOfLight Date: Thu, 7 May 2026 16:22:44 -0700 Subject: [PATCH 2/4] pack structures now get picked up automatically --- .../classes/Structure/StructureCollection.js | 18 +++++++++++++++--- packs/RP/texts/en_US.lang | 4 ++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/packs/BP/scripts/classes/Structure/StructureCollection.js b/packs/BP/scripts/classes/Structure/StructureCollection.js index 52a05c0..1f4c9dc 100644 --- a/packs/BP/scripts/classes/Structure/StructureCollection.js +++ b/packs/BP/scripts/classes/Structure/StructureCollection.js @@ -81,9 +81,21 @@ class StructureCollection { } getWorldStructureIds() { - return world.structureManager.getWorldStructureIds() - .filter(id => id.startsWith('mystructure:')) - .map(id => id.replace('mystructure:', '')); + const structureManager = world.structureManager; + const packIds = [...new Set(structureManager.getPackStructureIds() + .map(id => id.replace('mystructure:', ''))) + ]; + const packIdSet = new Set(packIds); + let worldStructureIds = []; + try { + worldStructureIds = structureManager.getWorldStructureIds() + .filter(id => id.startsWith('mystructure:')) + .map(id => id.replace('mystructure:', '')) + .filter(id => !packIdSet.has(id)); + } catch (error) { + console.warn('Failed to fetch world structure IDs. They will be ignored. Error:', error); + } + return [...packIds, ...worldStructureIds]; } rename(instanceName, newName) { diff --git a/packs/RP/texts/en_US.lang b/packs/RP/texts/en_US.lang index e487fa4..c75cf37 100644 --- a/packs/RP/texts/en_US.lang +++ b/packs/RP/texts/en_US.lang @@ -78,9 +78,9 @@ construct.mainmenu.selectstructure.other=Other construct.mainmenu.selectstructure.other.prompt=Enter the Structure ID: construct.mainmenu.selectstructure.other.placeholder=example_structure ## The placeholder text in the textbox where the user enters the structure name. construct.mainmenu.howto.add.header=§aHow to Add Structures: -construct.mainmenu.howto.add.structureblock=§7- Save a structure using a §fstructure block§7 or the §f/structure§7 command. +construct.mainmenu.howto.add.structureblock=§7Save a structure using a §fstructure block§7 or the §f/structure§7 command. This structure will only be available in the world you saved it in. construct.mainmenu.howto.add.or=§7§lOR§r -construct.mainmenu.howto.add.mcstructure=§7- Add a §f.mcstructure§7 file to this pack's §fstructures folder§7. When selecting your structure, select the §fOther§7 option and then use the filename (without '.mcstructure') as the §fStructure ID§7. After its first use, it will be added to the list of structures. +construct.mainmenu.howto.add.mcstructure=§7To transfer structures §fbetween worlds§7: \n 1. Move Construct's behavior pack to your §fcom.mojang > development_behavior_packs§7. \n 2. Add a §f.mcstructure§7 file to the Construct behavior pack's §fstructures§7 folder. \n 3. Restart your world. \nYour structure should now be in the structures list. If it is not, select the §fOther§7 option and then use the filename (without '.mcstructure') as the §fStructure ID§7. After its first use, it will be added to the list of structures. construct.mainmenu.howto.remove.header=§cHow to Remove Structures: construct.mainmenu.howto.remove.body=§7- Use the §f/structure delete§7 command to remove a structure from the world. From d3d34777d9279e21ea9d2810f5f8e9e311f70342 Mon Sep 17 00:00:00 2001 From: ForestOfLight Date: Thu, 7 May 2026 16:29:07 -0700 Subject: [PATCH 3/4] bump MC version to 26.20 in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f9ab9e..bb148a5 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![GitHub Downloads](https://img.shields.io/github/downloads/ForestOfLight/Construct/total?label=Github%20downloads&logo=github)](https://github.com/ForestOfLight/Construct/releases) [![Curseforge Downloads](https://cf.way2muchnoise.eu/full_1283139_downloads.svg)](https://www.curseforge.com/minecraft-bedrock/addons/construct) -[![Minecraft - Version](https://img.shields.io/badge/Minecraft-v26.0_(Bedrock)-brightgreen)](https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-Changelogs) +[![Minecraft - Version](https://img.shields.io/badge/Minecraft-v26.20_(Bedrock)-brightgreen)](https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-Changelogs) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/c091aa1237d546c4b448a25fbc847f9a)](https://app.codacy.com/gh/ForestOfLight/Construct/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Discord](https://badgen.net/discord/members/9KGche8fxm?icon=discord&label=Discord&list=what)](https://discord.gg/9KGche8fxm) From 6fac0d953ff4087daa8560d4f2ee5c54edccb653 Mon Sep 17 00:00:00 2001 From: ForestOfLight Date: Thu, 7 May 2026 16:29:26 -0700 Subject: [PATCH 4/4] remove codacy --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index bb148a5..d185826 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ [![GitHub Downloads](https://img.shields.io/github/downloads/ForestOfLight/Construct/total?label=Github%20downloads&logo=github)](https://github.com/ForestOfLight/Construct/releases) [![Curseforge Downloads](https://cf.way2muchnoise.eu/full_1283139_downloads.svg)](https://www.curseforge.com/minecraft-bedrock/addons/construct) [![Minecraft - Version](https://img.shields.io/badge/Minecraft-v26.20_(Bedrock)-brightgreen)](https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-Changelogs) -[![Codacy Badge](https://app.codacy.com/project/badge/Grade/c091aa1237d546c4b448a25fbc847f9a)](https://app.codacy.com/gh/ForestOfLight/Construct/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Discord](https://badgen.net/discord/members/9KGche8fxm?icon=discord&label=Discord&list=what)](https://discord.gg/9KGche8fxm)