跳到正文

Restrict Sophisticated Backpacks

A server-side addon that restricts access to Sophisticated Backpacks until it has been explicitly unlocked using a scoreboard value.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

# Restrict Sophisticated Backpacks

A server-side addon that restricts access to [Sophisticated Backpacks](https://www.curseforge.com/minecraft/mc-mods/sophisticated-backpacks) until it has been explicitly unlocked using a scoreboard value.

## What It Does

This mod blocks Sophisticated Backpacks interactions until it is unlocked.

It covers:
– opening a placed backpack by right-clicking it
– opening a backpack item by right-clicking it in-hand
– opening a backpack through the Sophisticated Backpacks hotkey

You unlock the ability to interact with Sophisticated Backpacks when the player’s scoreboard value for `sophisticated_backpack_unlocked` is greater than `0`.

## How It Works

The mod uses a server-side scoreboard objective named:

`sophisticated_backpack_unlocked`

If the score is:
– `0` or missing: backpack use is blocked
– `1` or higher: backpack use is allowed

The objective is created automatically when the server starts.

## Installation

This mod is intended for server-side only installation but can be installed on clients as well. Clients do not need this mod installed for the restriction to work.

## Scoreboard Usage

Unlock the ability to interact with backpacks:

“`mcfunction
/scoreboard players set <player> sophisticated_backpack_unlocked 1
“`

Lock the ability to interact with backpacks:

“`mcfunction
/scoreboard players set <player> sophisticated_backpack_unlocked 0
“`

## Performance

This mod has minimal performance impact.

It does not tick players, scan inventories continuously or run world searches. It only performs lightweight checks when a player tries to interact with a Sophisticated Backpack or when the backpack container opens.

## Notes

– The restriction is enforced server-side, so players cannot bypass it by rebinding keys or using the backpack hotkey.
– Shift-right-click pickup of a placed backpack with an empty main hand is still allowed.

常见问题

Restrict Sophisticated Backpacks 支持哪些 Minecraft 版本?

Restrict Sophisticated Backpacks 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Restrict Sophisticated Backpacks 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

StarGazerDreamBlazer 的其他作品

查看全部 →