Merge pull request #25 from ForestOfLight/dev

v1.0.9
This commit is contained in:
Forest
2026-05-07 16:31:04 -07:00
committed by GitHub
Unverified
5 changed files with 27 additions and 16 deletions
+1 -2
View File
@@ -6,8 +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)
[![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)
[![Minecraft - Version](https://img.shields.io/badge/Minecraft-v26.20_(Bedrock)-brightgreen)](https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-Changelogs)
[![Discord](https://badgen.net/discord/members/9KGche8fxm?icon=discord&label=Discord&list=what)](https://discord.gg/9KGche8fxm)
</div>
+5 -5
View File
@@ -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": {
@@ -81,9 +81,21 @@ class StructureCollection {
}
getWorldStructureIds() {
return world.structureManager.getWorldStructureIds()
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:', ''));
.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) {
+4 -4
View File
@@ -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": [
+2 -2
View File
@@ -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.