← Назад к ресурсам

Create: Unlock Schematics

Allows unlocking schematic with a command.

Modrinth utility

Описание

### This mod is very simple and has a very specific use: it allows modpack makers to hide schematics from the Schematic Table. Locked schematics should be placed in locked folder inside the schematics folder. The path would look like this: `/schematics/locked/.nbt`. Then, to unlock the schematic you would use the command this mod adds: #### /schematic unlock [.nbt] - Schematic name can be with _.nbt_ extensions or without. - If schematic with same name already exists in the schematics folder, it will not be replaced. Player will receive a message that schematic is already unlocked. - Due to the reason above - your locked schematics should have somewhat unique name, to avoid conflicts with user-created schematics. - Command requires elevated permission level: cheats enabled, op, server owner, etc... _Knowledgeable folks may have already guessed how this works. Yes, it just copies the file from one folder to another._ --- ### Example: Unlocks the schematic on quest completion: ```javascript onEvent('ftbquests.completed', event => { event.server.runCommandSilent(`execute at ${event.player.id} as ${event.player.id} run schematic unlock pillar`) }) ``` --- **Create** is not required as a dependency. But, obviously, mod is pointless without it. Feel free to suggest a feature, if you need it for your modpack. --- [](https://discord.gg/FzHKGDW2et) --- #### Enjoying the mod? Your support would be greatly appreciated! [](https://www.paypal.com/donate/?hosted_button_id=4VPMCBCLZVUEA)[](https://www.buymeacoffee.com/mortuusars)