promotional bannermobile promotional banner

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
- 2x2 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 Team

profile avatar
  • 1
    Followers
  • 1
    Projects
  • 40
    Downloads