跳到正文

Crafting Patents

Server-side per-player crafting permissions: each player can only craft items from the mods they hold the patent for

收藏

介绍

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

# Mod Patents

**Per-player crafting “patents” for modded items.** Decide which mods each player is allowed to craft. Everything else is locked by default.

Built for Minecraft series and challenge servers where each player holds the patent for a set of mods and has to trade with the others.

**Server-side only.** Players don’t need to install anything.

## How it works
On first start the mod creates `config/modpatents.json`:

“`json
{
  “sempre_liberados”: [“minecraft”, “#c:ingots”],
  “bloqueados_para_todos”: [],
  “ignoram_bloqueio”: [“AdminName”],
  “crafter_bloqueia_itens_de_mod”: true,
  “mensagem_bloqueio”: “Você não tem permissão pra craftar itens de {mod}!”,
  “jogadores”: {
    “Steve”: [“create*”],
    “Alex”:  [“mekanism*”, “ae2”]
  }
}
“`

Each entry can be:
– `create`: every item from that mod
– `mekanism*`: every mod whose id starts with “mekanism”
– `create:wrench`: a single item (globs work too: `create:*_casing`)
– `#c:ingots`: every item in a tag

It also writes `config/modpatents_mods_disponiveis.txt` with every mod id in your pack, so filling the list is easy.

## What gets blocked
– 2×2 inventory crafting and the crafting table (recipe book included)
– Smithing table and stonecutter
– Vanilla Crafter (it has no player, so it only crafts items that are allowed for everyone)

The check uses the **item that comes out**, so KubeJS and compat recipes are covered too.

## Commands (op level 2)
`/patentes` works as an alias of `/patents`.

– `/patents recarregar`: reload the JSON
– `/patents lista`: show all rules
– `/patents liberar <player> <entry>`: grant access
– `/patents remover <player> <entry>`: revoke access
– `/patents testar <player>`: check whether a player can craft the item in your hand

## Known limitations
Crafting stations and autocrafting from other mods (AE2, Refined Storage, Create’s Mechanical Crafter…) are not covered yet. Use `bloqueados_para_todos` to close specific loopholes.

## Links
– Source code and issues: https://github.com/Rk7gamerYT/modpatents
– License: MIT

—

🇧🇷 **Português:** mod de servidor que bloqueia crafts de itens de mods por jogador. Cada jogador só crafta os mods liberados pra ele no `config/modpatents.json`, e o resto fica bloqueado. Ideal para séries em que cada pessoa é responsável por alguns mods.

常见问题

Crafting Patents 支持哪些 Minecraft 版本?

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

Crafting Patents 怎么安装?

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

评论

登录后评论和评分