Create: Unlock Schematics
Main Function
This mod serves a highly specialized purpose - it provides modpack creators with the ability to hide schematics from players in the Schematic Table interface until a certain point.
How the Locking System Works
To organize hidden schematics, they need to be placed in a special "locked" folder within the main schematics directory. The full file path should look like this: <instance>/schematics/locked/<schematic name>.nbt.
Unlocking Process
To make a schematic available for use, a special command added by this mod is applied:
/schematic unlock [.nbt]
Important Features
- The schematic name can be specified both with the .nbt extension and without it
- If a file with the same name already exists in the main schematics folder, it will not be overwritten - the player will receive a notification that the schematic is already unlocked
- For this reason, it's recommended to give locked schematics unique names to avoid conflicts with user creations
- Command execution requires elevated permissions: enabled cheats, operator status, server owner, etc.
Experienced users might have already guessed the working principle - the mod simply copies files from one folder to another.
Usage Example
Unlocking a schematic after completing a quest:
onEvent('ftbquests.completed', event => {
event.server.runCommandSilent(execute at ${event.player.id} as ${event.player.id} run schematic unlock pillar)
})
Compatibility
Create mod is not a required dependency. However, it's obvious that without it, the functionality loses practical meaning.