Download Create: Unlock Schematics — Minecraft Mods — MetaMods

Create: Unlock Schematics

Active

Downloads

0

Last update

2 years ago

Versions

1.18.2 — 1.20.1
Client and server
Forge
Utils

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.

Project members
mortuusars

mortuusars

Developer

Created: 27 May 2023

ID: 6883