描述
你是否讨厌楼梯和原木?自从 1.3.1 版本发布以来,由于使用原木进行建造变得令人烦躁不已,你的头发是不是掉得更多了?MagicTouch 是一款简单的插件,让你能够使用魔法工具通过单击即可旋转和翻转这些令人烦恼的方块。
工作原理
- 手中持有魔法工具(默认:工作台)
- 左击一个方块 -> 每次点击顺时针旋转 90 度
- 按住 Shift 左击一个方块 -> 如果可以的话,将其上下翻转(例如楼梯)
可点击的方块
目前,以下方块可以翻转/旋转:
- 原木(左击循环切换上下方向 -> 东西方向 -> 南北方向 -> 上下方向...)
- 楼梯(左击顺时针旋转 90 度,Shift-左击将楼梯上下翻转,反之亦然)
- 活塞(左击循环切换所有 6 个朝向。这是实验性功能,可能无法与延伸活塞完美配合!)
- 箱子、熔炉、发射器(左击顺时针旋转 90 度)
- 台阶(左击翻转台阶)
安装插件
只需将插件放入 /plugins 文件夹,启动服务器,如有需要修改 config.yml 文件然后重启即可。就是这么简单!
配置
配置非常直观。你可以启用/禁用不同方块的交互处理,将魔法工具更改为其他物品,并启用/禁用 WorldGuard 和 LogBlock 集成。
general:
magicaltool: 58
use_worldguard: true
use_logblock: true
debug: false
blocks:
logs: true
stairs: true
pistons: false
chests: true
slabs: true
diodes: false
请注意,如果你没有安装 WorldGuard 或 LogBlock,相应的配置参数应设置为 "false"。
chests = 箱子、末影箱、发射器、熔炉。
WorldGuard 和 LogBlock 集成
如果已配置,该插件将会接入 WorldGuard 和 LogBlock API,提供新功能:
- 如果启用了 WorldGuard 集成,插件会检查你是否真的可以在该区域进行建造,并在你无法建造时通知你
- 如果启用了 LogBlock 集成,LogBlock 会记录你的方块旋转操作。目前,每当玩家旋转方块时,它会报告“破坏方块”,随后是“未指定操作”,因为 LogBlock 中没有适合直接修改方块数据的动作
已知问题/漏洞
- 旋转延伸活塞的功能尚未正常工作
- 红石中继器/比较器(Diodes)尚未正常工作(有时单次点击旋转 90 度,有时旋转 180 度)
后续计划?
源代码
@GitHub
Description
Do stairs and logs annoy you? Do you have much less hair after 1.3.1 came out, since building with logs is now just so irritating? MagicTouch is a simple plugin which enables you to rotate and flip those annoying blocks with a single click of a magical tool.
How it works
- hold a magical tool (default: workbench) in your hand
- left-click a block -> it rotates 90 degrees clockwise with each click
- shift-left click a block -> if it can, it flips upside down (like stairs, for example)
Clickable blocks
At the moment, these blocks can be flipped/rotated:
- logs (left-clicking cycles through up/down -> east/west -> north/south -> up/down...)
- stairs (left-clicking rotates 90 degrees clockwise, shift-leftclick flips stairs upside down and vice versa)
- pistons (left-clicking cycles through all 6 orientations. This is experimental and may not work perfectly with extended pistons!)
- chests, furnaces, dispensers (left-clicking rotates 90 degrees clockwise)
- slabs (left-clicking flips the slab)
Installing the plugin
Just throw the plugin into the /plugins folder, start your server, modify the config.yml file if needed and restart. That's it!
Configuration
Configuration is pretty much obvious. You can enable/disable handling of different block types, change your magical tool into something else and enable/disable WorldGuard and LogBlock integration.
general:
magicaltool: 58
use_worldguard: true
use_logblock: true
debug: false
blocks:
logs: true
stairs: true
pistons: false
chests: true
slabs: true
diodes: false
Note that if you don't have WorldGuard or LogBlock, the corresponding config parameters should be set to "false".
chests = chests, enderchests, dispensers, furnaces.
WorldGuard and LogBlock integration
If configured, the plugin will hook itself into WorldGuard and LogBlock APIs, providing new functionality:
- if WorldGuard integration is enabled, the plugin checks whether you can actually build on the area, and informs you if you cannot
- if LogBlock integration is enabled, LogBlock registers your block rotations. Currently, it reports "block breaking", followed by an "unspecified action" whenever a player rotates a block, since there is no suitable action in LogBlock for modifying block's data directly
Known problems/bugs
- Rotating extended pistons doesn't work yet properly
- Diodes not yet working properly (sometimes they turn 90 degrees, sometimes 180 degrees with a single click)
What next?
Source code
@GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧