关于
你是否曾好奇为什么 Minecraft 中的书架不能用来存放书籍?现在你可以了!
使用此插件,你将能够像打开箱子一样打开书架,并将书籍存放在其中。
截图

^表示书架正在被打开的粒子效果

^书架的内容,行数可以在配置中自定义
功能
1. 书架!
- 右键点击书架以打开类似箱子的库存界面
- 当玩家打开书架时,书架会发出粒子效果(可在配置中切换) [1.13 或更高版本]
- 自定义每个书架的行数(默认为配置中的 2 行)
- 当玩家在书架中放置或移除物品时,播放放置书籍的声音
- 限制可以放入书架的物品类型(默认配置中仅允许类书籍物品)
- 支持使用活塞和粘性活塞移动书架
- 支持命名书架!(类似于你命名一个箱子并将其放置后,其库存保留箱子的物品名称)
- 支持投掷器 (需要在配置中启用)
- 实验性 支持漏斗和漏斗矿车 (需要在配置中启用) (注意,如果你拥有太多书架,这将非常消耗资源)
- 支持在创造模式下 Shift+鼠标中键点击方块来复制带有物品的书架
2. 附魔台增强! [1.11 或更高版本]
- 用包含你选择的附魔书的书架包围附魔台,从而增强附魔台!
- 书籍越多,概率越高!
- 例如,如果所有书架的每个槽位都是锋利 V 的书籍,你将保证获得锋利附魔!
- 该功能始终可以在配置中切换
支持的插件
(在这些大多数插件中,书架被视为普通的箱子)
依赖项
安装
- 将 Bookshelf.jar 放入 plugins 文件夹以及所需的依赖项
- 启动服务器
- 编辑配置文件(如果需要)
- 重新启动服务器(如果在第 3 步中更改了配置文件中的内容)
开发版构建

Jenkins
展示服务器
想试试这个插件吗?
IP: mc.loohpjames.com

命令
/bookshelf reload - 重新加载插件
/bookshelf update - 检查更新
常见问题解答
漏斗和投掷器不工作!我该怎么办?
你必须在配置文件中启用 "EnableHopperSupport" 和/或 "EnableDropperSupport"!
(注意,如果你拥有太多书架,这将非常消耗资源)
附魔台增强不工作,没有报错,而且我已经在配置中启用了它,这是为什么?
如果你运行的是 Minecraft 1.8 - 1.10.2 版本,很遗憾,这些版本不支持附魔台增强功能。
如果你运行的是 Minecraft 1.11 或更高版本,请仔细检查你的设置和权限,或者联系我!
Shift + 拾取带 NBT 数据的功能不工作,我已经给自己权限了,出了什么问题?
目前,该功能仅在 Minecraft 1.15+ 中经过测试。如果在其他版本中不起作用,这是正常的,并且正在修复中。感谢你的耐心!
附魔台增强是如何计算的?
查看维基页面:
API
Bookshelf 确实为开发者提供了一个 API,用于自定义或使用其功能。
- 当漏斗或漏斗矿车与书架交换物品时,会触发 InventoryMoveItemEvent,只需像监听其他 Bukkit 事件一样监听它即可。
- 当玩家打开或关闭书架时,会触发 PlayerOpenBookshelfEvent 或 PlayerCloseBookshelfEvent。如果玩家没有权限访问该书架(包括来自其他插件的保护),它将作为 cancelled(在最低优先级之后)触发。
更多信息请通过上述链接查看。
权限
bookshelf.use - 允许玩家使用书架 [默认:false]
bookshelf.reload - 重新加载插件 [默认:op]
bookshelf.copynbt - 允许你在创造模式下按住 Shift 并点击鼠标中键来复制带有内部物品的书架 [默认:op]
bookshelf.update - 允许你接收更新消息 [默认:op]
默认配置
带描述的最新版配置
限制
- 书架不会通过红石比较器输出红石信号,我会尝试添加该功能 一旦我找到可行的方法 :/
- 书架的交易不会被如 CoreProtect 等区块日志记录器捕获,我将在未来尝试添加该功能或创建自己的日志系统。
数据使用
上的使用统计数据将对公众可见,您的服务器将包含在统计信息中。不会发送您服务器的任何私人信息。
版本检查也通过 进行,以便在新版本发布时通知您。不会发送您服务器的任何私人信息。
About
Ever wondered why bookshelves in Minecraft cannot be used to store books? Well, now you can!
With this plugin, you will be able to open bookshelves like chests and store books inside them.
Screenshots

^The particle effect indicating that a bookshelf is being opened

^The bookshelf contents, the number of rows can be customized
Features
1. The bookshelves!
- Right-click bookshelves to open a chest-like inventory
- Bookshelves emit particles when a player is opening it (togglable in config) [1.13 or above]
- Customize the number of rows each bookshelf has (default to 2 rows in config)
- Plays a book placing sound when a player place or remove an item in a bookshelf
- Limit the type of item that can be placed into bookshelves (Default to only books-like items in config)
- Supports moving bookshelves with pistons and sticky pistons
- Supports named bookshelves! (Similar to when you name a chest and place it down, the inventory retains the chest's item name)
- Support Droppers (Need to be enabled in config)
- Experimental support Hoppers and Hoppers Minecarts (Need to be enabled in config) (Note that it is quite resource intensive if you have too many bookshelves)
- Supports creative shift-middle-click block to copy bookshelf with items inside
2. Enchantment Table Boosting! [1.11 or above]
- Boost Enchantment Tables with surrounding it with bookshelves containing enchantment books with the enchantment of your choice!
- More books, higher chance!
- For example, if every slot of all bookshelf is Sharpness 5 books you will be guaranteed a sharpness enchantment!
- The feature can be toggled in the config as always
Supported Plugins
(Bookshelves are seen just like chests in most of these plugins)
Dependencies
Installation
- Put Bookshelf.jar into the plugins folder along with the required dependencies
- Start the server
- Edit the config (if you need to)
- Restart the server (if you changed something in the config in step 3)
Development Builds

Jenkins
Showcase Server
Want to give the plugin a try?
IP: mc.loohpjames.com

Commands
/bookshelf reload - Reloads the plugin
/bookshelf update - Check for updates
Q&A
Hoppers and Droppers do not work! What do I do?
You have to enable "EnableHopperSupport" and/or "EnableDropperSupport" in the config!
(Note that it is quite resource intensive if you have too many bookshelves)
Enchantment Table Boosting does not work, and there are no errors, and I've already enabled it in the config, why is that?
If you are running Minecraft version 1.8 - 1.10.2, unfortunately, enchantment table boosting feature is unsupported on these versions.
If you are running Minecraft version 1.11 or above, double check your settings and permissions or contact me!
The shift + pick block with NBT function does not work, I already gave myself permission, what's wrong?
Currently, the feature is only tested in Minecraft 1.15+. If it doesn't work in another version, it is normal and is being worked on. Thank you for being patient!
How is the Enchantment Table Boosting calculated?
Check out the wiki page:
API
Bookshelf does provide an API for developers to customize or use its functions
- When hoppers or hopper minecarts exchange items with bookshelves InventoryMoveItemEventwill fire, just listen to it just like any other bukkit events
- When a player opens or closes a bookshelf, PlayerOpenBookshelfEvent or PlayerCloseBookshelfEvent will fire. If a player does not have permission to access that bookshelf (includes protection from other plugins, it will fire as cancelled (After priority LOWEST)
More info through the link above
Permissions
bookshelf.use - Allow players to use a bookshelf [default: false]
bookshelf.reload - Reload the plugin [default: op]
bookshelf.copynbt - Allows you to shift-middle-click to copy bookshelf with items inside in creative [default: op]
bookshelf.update - Allow you to receive update messages [default: op]
Default Config
Latest Config with Descriptions
Limitations
- Bookshelves do not output a redstone signal via a redstone comparator, I will attempt to add that once I find a method that works :/
- Bookshelves transactions are not picked up by block loggers such as coreprotect, I will try to add that or create my own logging system in the future.
Data usage
Usage statistics at will be visible to the public with your server included in the statistics. No private information of your server is sent.
Update checking is also done via to notify you whenever a new version is released. No private information of your server is sent.
评论 0
登录后参与评分
还没有评论,来抢沙发吧