提取镐
extractor-pickaxe 是一款适用于 PaperMC 的 Minecraft 插件,允许你制作强大的镐子,能够挖掘刷怪笼方块,即使在受 WorldGuard 保护的区域内也是如此。
⚠️ 本项目是基于 PaperMC 开发的,在其他服务器实现上可能无法正常运行。
<br/>
<i>如果你需要帮助,请加入 Discord 服务器。</i>
功能
- 创建具有持久化数据的自定义提取镐。
- 设置并递减每个提取镐的使用次数。
- 将普通物品转换为提取器。
- 安全的使用系统,防止修改非提取器物品。
- 完全兼容 PaperMC 和 Bukkit API。
展示
命令
| 名称 |
权限 |
描述 |
| /extractor get |
extractorpickaxe.command.use |
获取一把下界合金挖掘镐 |
| /extractor convert |
extractorpickaxe.command.use |
将你手中的镐转化为提取器 |
| /extractor set-uses |
extractorpickaxe.command.use |
设置你手中所持提取镐的使用次数 |
安装
- 下载插件 JAR 文件。
- 将其放入 PaperMC 服务器的
plugins 文件夹中。
- 重启服务器以加载插件。
- 即可使用。
开发者须知
如果你是开发者,想了解该插件的工作原理概览:
该插件利用 Bukkit 的 PersistentDataContainer(持久化数据容器),在镐子(ItemStack)内部存储一种数据类型(字节)。
当玩家破坏一个刷怪笼时,插件会检查镐子是否包含特定的数据。
如果包含,插件便会执行相应操作。简单直接。
Extractor Pickaxe
extractor-pickaxe is a Minecraft plugin for PaperMC that lets you create powerful pickaxes capable of mining spawner blocks, even in protected WorldGuard regions.
⚠️ This project is implemented with PaperMC in mind and may not work properly on other server implementations.
<br/>
<i>If you need help, join the discord server.</i>
Features
- Create custom extractor pickaxes with persistent data.
- Set and decrement the number of uses per extractor.
- Convert regular items into extractors.
- Safe usage system that prevents modifying non-extractor items.
- Fully compatible with PaperMC and Bukkit API.
Showcase
Commands
| Name |
Permission |
Description |
| /extractor get |
extractorpickaxe.command.use |
Get a netherite mining pickaxe |
| /extractor convert |
extractorpickaxe.command.use |
Turn the pick in your hand into an extractor |
| /extractor set-uses |
extractorpickaxe.command.use |
Set the number of uses for the extractor pick you have in your hand |
Installation
- Download the plugin JAR.
- Place it in the
plugins folder of your PaperMC server.
- Restart the server to load the plugin.
- And it's ready to use.
For Developers
If you're a developer and want a quick overview of how the plugin works:
The plugin stores a type of data (byte) inside a pickaxe (ItemStack) using Bukkit's PersistentDataContainer.
When a player breaks a spawner, the plugin checks if the pickaxe contains that specific data.
If it does, the plugin handles the action accordingly. Simple and straightforward.
评论 0
登录后参与评分
还没有评论,来抢沙发吧