WirelessRedstoneTrigger
一个简单的 Folia/Paper 插件,用于通过右键点击附魔木棍来实现最基础的无线红石激活器/触发器。
最初是为了配合 PearlStasisFix 使用,以便能够远程激活停滞室(stasis chambers),因为:
- 钓鱼竿的远程激活在 Folia 上不起作用
- 即使它起作用了,设置起来也很麻烦
当然,你也可以用它来实现各种各样的想法,比如用家里的遥控器控制灯光(这只是冰山一角)。
警告:由 AI 编写(因为我不知道如何使用 Java)
我是一个随机的开发者,你真的不应该信任你在互联网上找到的随机东西。请查看源代码,它只有几百行长。(点击侧边的 GitHub “查看源码”链接)。如果你愿意,也可以使用 mvn clean package 自行编译项目(需要安装 Java JDK 21+ 和 Maven)。
版本说明
目前尚无可用的配置选项。
要获得完整的功能集,请使用最新版本(2.0)。
如果只需要远程控制和触发功能,而不需要发射器支持以及工具提示中显示的坐标,
合成配方
无线红石触发器(接收端):
无线红石遥控器(激活端):
使用方法
- 将无线红石触发器方块放置在任何接收红石信号的方块旁边。
- 手持遥控器右键点击触发器方块。
- 每次你右键点击遥控器时,触发器方块都会提供红石信号。
它还会更新触发器方块的状态,这意味着它也可以触发侦测器(observer block)。
- 你还可以将绑定的遥控器放入发射器(注意不是投掷器)中,并用红石给发射器供电——它会发射信号而不是弹出木棍。
遥控器的绑定坐标会显示在其工具提示(描述文本)中,这对于玩家在 PvP 后找回你的物品并找到激活器位置非常有用!
为了抵消这一点,你可以对遥控器应用“消失诅咒”,使其在你死亡时消失。
Geyser 警告
在 Geyser/基岩版上,除非使用 Geyser Recipe Fix,否则无法在铁砧上为木棍附魔“消失诅咒”。
(小提示:为了支持 Folia 和 26.1+ 版本,我在 制作了一个补丁)
详细信息
- 在铁砧上重命名遥控器或触发器会保留其品牌颜色。
- 破坏已放置的触发器方块会掉落正确命名的触发器物品(靶块没有方块实体,因此这是由插件跟踪而不是存储在方块本身上的)。
- “绑定”的光晕效果使用
enchantment_glint_override 而不是隐藏的锋利附魔,因此基岩版/Geyser 玩家仍然能看到光晕,而不会出现虚假的锋利 I 显示。(这是 1.0 版本中的一个 bug)
- 游戏内反馈(绑定、信号传输、世界未加载)通过动作栏显示,而不是聊天窗口。(这在 1.0 版本中也是如此,我觉得这样很烦人)
WirelessRedstoneTrigger
A simple Folia/Paper plugin for the simplest wireless redstone activator/trigger by right clicking an enchanted stick.
Originally made to be used with PearlStasisFix to enable stasis chambers to
be remotely activated, since:
- Fishing rod remote activation doesn't work on Folia
- Even if it did, it's a pain to setup
But ofcourse it can be used for a lot of different ideas, like lights activation using a remote in your home (and that's only scraping the surface).
WARNING: Made with AI (cuz idk how to use Java)
I am a random dev, and you should really not trust random stuff you find on the Internet. Take a look at the source code which is only a few hundred lines long. (click on the GitHub "view source" link on the side). And if you prefer, compile the project yourself with mvn clean package (requires Java JDK 21+ and Maven installed).
Versions
For now, no configuration is available.
To get the full feature set, use the latest version (2.0).
To get only the remote and trigger, without dispenser support, coordinates shown in tooltip,
Recipes
Wireless Redstone Trigger (receiver):
|
Redstone |
|
| Redstone |
Target |
Redstone |
|
Redstone |
|
Wireless Redstone Remote (activator):
|
Ender Pearl |
|
|
Stick |
|
|
Redstone |
|
Usage
- Place the Wireless Redstone Trigger block next to any block that receives redstone.
- Right-click the Trigger block with the Remote
- Every time you right-click the Remote, the Trigger block will provide a redstone signal.
It will also update the trigger block which means it can trigger an observer block aswell.
- You can also put a linked Remote in a Dispenser (not a Dropper) and power the dispenser
with redstone - it will fire the signal instead of ejecting the stick.
The Remote's linked coordinates are shown in its tooltip (lore), useful for the player getting your items back after some PvP to find the activator's location!
To counter that, you can apply Curse of Vanishing to the remote to make it dissapear on your death.
Geyser warning
On Geyser/Bedrock, enchanting the stick with Curse of Vanishing in the anvil is impossible, unless you use Geyser Recipe Fix
(small tip: for Folia support and 26.1+ support, I have made a patch at )
Details
- Renaming a Remote or Trigger at an anvil keeps its branded color.
- Breaking a placed Trigger block drops the correctly named Trigger item back (TARGET blocks have
no block entity, so this is tracked by the plugin rather than stored on the block itself).
- The "linked" glint uses
enchantment_glint_override instead of a hidden Unaking enchbreant, so
Bedrock/Geyser players still see the glint without a fake Unbreaking 1 showing up. (this was a bug in version 1.0)
- In-world feedback (linking, signal transmitted, unloaded world) is shown via the action bar
instead of chat. (this was also the case back in 1.0, and I found it annoying)
评论 0
登录后参与评分
还没有评论,来抢沙发吧