@@ -6,8 +6,7 @@
|
||||
|
||||
[](https://github.com/ForestOfLight/Construct/releases)
|
||||
[](https://www.curseforge.com/minecraft-bedrock/addons/construct)
|
||||
[-brightgreen)](https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-Changelogs)
|
||||
[](https://app.codacy.com/gh/ForestOfLight/Construct/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
||||
[-brightgreen)](https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-Changelogs)
|
||||
[](https://discord.gg/9KGche8fxm)
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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()
|
||||
.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) {
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user