Block-Limit
当玩家尝试在配置的限制之上放置方块时,放置操作将被取消,并将该物品返还给玩家。
功能
- 限制每个区块中特定方块的数量
- 支持原版和模组方块
- 仅限服务端
- 可配置的限制数量
- 可选的管理员报告
- 当放置被阻止时返回方块物品
- 支持在线管理员通知
配置
配置文件位于此处:
world/serverconfig/blocklimiter-server.toml
示例配置:
[general]
regulated_blocks = [
"minecraft:hopper|32|true",
"minecraft:chest|64|false",
"create:andesite_casing|16|true"
]
admin_names = ["AdminNick1", "AdminNick2"]
ignore_creative_players = true
如何添加方块
每条方块规则使用以下格式:
"block_id|max_per_chunk|send_report"
示例:
"minecraft:hopper|32|true"
这意味着:
- minecraft:hopper — 方块 ID
- 32 — 单个区块内允许的最大数量
- true — 超过限制时向管理员发送报告
要添加模组方块,请使用其注册表 ID:
"create:andesite_casing|16|true"
配置选项
regulated_blocks
由模组控制的方块列表。
格式:
"modid:block_name|limit|report"
示例:
"minecraft:hopper|32|true"
"minecraft:chest|64|false"
"thermal:machine_furnace|8|true"
admin_names
将接收报告的管理员昵称列表。
示例:
admin_names = ["AdminNick1", "AdminNick2"]
只有在此列表中且在线的管理员才会收到消息。
ignore_creative_players
控制是否忽略创造模式玩家。
ignore_creative_players = true
如果为 true,创造模式玩家可以绕过限制。
如果为 false,创造模式玩家也会受到限制。
Block-Limit
When a player tries to place a block above the configured limit, the placement is cancelled and the item is returned to the player.
Features
Limit specific blocks per chunk
Supports vanilla and modded blocks
Server-side only
Configurable limits
Optional admin reports
Returns the block item when placement is blocked
Supports online admin notifications
Configuration
The config file is located here:
world/serverconfig/blocklimiter-server.toml
Example config:
[general]
regulated_blocks = [
"minecraft:hopper|32|true",
"minecraft:chest|64|false",
"create:andesite_casing|16|true"
]
admin_names = ["AdminNick1", "AdminNick2"]
ignore_creative_players = true
How to Add Blocks
Each block rule uses this format:
"block_id|max_per_chunk|send_report"
Example:
"minecraft:hopper|32|true"
This means:
minecraft:hopper — block ID
32 — maximum amount of this block allowed in one chunk
true — send a report to admins when the limit is exceeded
To add a modded block, use its registry ID:
"create:andesite_casing|16|true"
Config Options
regulated_blocks
List of blocks controlled by the mod.
Format:
"modid:block_name|limit|report"
Examples:
"minecraft:hopper|32|true"
"minecraft:chest|64|false"
"thermal:machine_furnace|8|true"
admin_names
List of admin nicknames who will receive reports.
Example:
admin_names = ["AdminNick1", "AdminNick2"]
Only online admins from this list will receive messages.
ignore_creative_players
Controls whether creative mode players are ignored.
ignore_creative_players = true
If true, creative players can bypass limits.
If false, creative players are also limited.
评论 0
登录后参与评分
还没有评论,来抢沙发吧