跳到正文

GetSpawners

作者:SwordfishBE

Move mob spawners in survival with Silk Touch. Give yourself any type of spawner with just one command.

收藏

截图

介绍

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

GetSpawners - The Mob Spawner Mining Mod

GetSpawners

Ever wanted to move a mob spawner? With GetSpawners, you can now pick up and move monster spawners.
When a player mines a spawner with a Silk Touch pickaxe, the spawner drops as an item and keeps its mob type.

With this mod, you can give yourself a spawner containing any mob that has a spawn egg in Minecraft using a simple command.


✨ Features

  • Mine and move spawners.
  • Spawner item keeps its mob type.
  • /gs give gives working spawners with a selected type.
  • /gs set retunes the spawner stack in your active slot to a selected type.
  • /gs types lists all available types.
  • Optional LuckPerms integration (config toggle).
  • Optional Mod Menu + Cloth Config integration for an in-game config screen on the client.

⚙️ Configuration

Config path:

  • config/getspawners.json

Options:

  • useLuckPerms (default: false)
  • noSilkTouchSpawners (default: false)
  • allowEveryoneGiveCommand (default: false)
  • allowEveryoneTypesCommand (default: false)
  • allowEveryoneSetCommand (default: false)

If you install Mod Menu and Cloth Config API on the client, GetSpawners exposes a full config screen in-game.

Behavior:

  • useLuckPerms=false: Everyone can mine/place spawners with Silk Touch.
  • noSilkTouchSpawners=false: Without Silk Touch, spawners break with normal vanilla behavior (destroyed + XP).
  • noSilkTouchSpawners=true: Bypass the Silk Touch requirement for everyone.
  • allowEveryoneGiveCommand=true: Everyone can use /gs give when LuckPerms is disabled or unavailable.
  • allowEveryoneTypesCommand=true: Everyone can use /gs types when LuckPerms is disabled or unavailable.
  • allowEveryoneSetCommand=true: Everyone can use /gs set when LuckPerms is disabled or unavailable.
  • useLuckPerms=true: Permission nodes are checked with LuckPerms.
  • getspawners.nosilk controls the Silk Touch bypass.
  • getspawners.give controls /gs give.
  • getspawners.types controls /gs types.
  • getspawners.set controls /gs set.
  • If LuckPerms is not installed, GetSpawners automatically falls back to the non-LuckPerms config behavior and logs a warning.
Example config:
{
  // When true, GetSpawners checks LuckPerms permission nodes if LuckPerms is installed.
  // If false, GetSpawners uses the config-based behavior instead.
  "useLuckPerms": false,

  // When true, everyone can bypass the Silk Touch requirement and still collect spawners.
  // When false, mining a spawner without Silk Touch uses normal vanilla behavior.
  "noSilkTouchSpawners": false,

  // When true and LuckPerms is disabled or unavailable, everyone can use /gs give.
  // When false, /gs give stays OP-only in config mode.
  "allowEveryoneGiveCommand": false,

  // When true and LuckPerms is disabled or unavailable, everyone can use /gs types.
  // When false, /gs types stays OP-only in config mode.
  "allowEveryoneTypesCommand": false,

  // When true and LuckPerms is disabled or unavailable, everyone can use /gs set.
  // When false, /gs set stays OP-only in config mode.
  "allowEveryoneSetCommand": false
}

🎮 Commands

Main command aliases:

  • /getspawners
  • /gs

Subcommands:

  • /gs give <player> <type> [amount]
  • /gs set <type>
  • /gs types
  • /gs reload

Notes:

  • amount defaults to 1
  • max amount is 64
  • type includes all mobs with a spawn egg

🔨 Server-side

This mod runs fully server-side. Clients do not need to install the mod.
Also works in single-player (without LuckPerms support).
Without active LuckPerms permission checks, /gs give, /gs types, and /gs set are OP-only unless their config toggles are enabled.


🔄 LuckPerms permissions

| Node | Description |
|—|—|
| getspawners.give | Access to /gs give |
| getspawners.mine | Mine and place spawners |
| getspawners.nosilk | Bypass Silk Touch requirement |
| getspawners.set | Access to /gs set |
| getspawners.types | Access to /gs types |
| getspawners.reload | Access to /gs reload |


🌍 LuckPerms quick start

If useLuckPerms is enabled, assign nodes like this:

/lp user <player> permission set getspawners.mine true
/lp user <player> permission set getspawners.types true
/lp user <player> permission set getspawners.give true
/lp user <player> permission set getspawners.set true
/lp user <player> permission set getspawners.nosilk true
/lp user <player> permission set getspawners.reload true

LuckPerms docs:


🏜️ Test Server

Feel free to join my Minecraft server to test my mods: play.swordfishbe.eu

常见问题

GetSpawners 支持哪些 Minecraft 版本?

GetSpawners 支持 Minecraft Java 版 1.21.11–26.3,共 6 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

GetSpawners 怎么安装?

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

评论

登录后评论和评分

SwordfishBE 的其他作品

查看全部 →