Conduit Machines
是否曾想过让某些资源更具可农场性,或者让导管(Conduits)更加实用?Conduit Machines 正是为此而生,不仅如此!
功能特性:
- 使用自定义催化剂、燃料和转换规则定义机器。
- 通过自定义图形用户界面(GUI)与机器进行交互。
- 在方块转换时执行命令。
- 根据海晶石类型配置可放置的模式。
玩家界面

每个放置的导管都有一个小型界面,玩家可以与之交互。鹦鹉螺壳和海之书是 UI 元素,分别用于显示机器状态和机器信息。
第一行的空槽位用于放入催化剂,即定义使用哪种机器的物品。
第二行用于放入燃料。当导管未通电时,机器有 0 个开放的燃料槽;完全通电时有 2 个。
最后一行用于升级。
升级
下界之星增加转换速度
深海之心提供更多燃料槽
下界合金锭和下界合金块增加作用半径
命令
/conduitmachines ...
- create <id>
- addconversion <id> <from> <to>
- 为 ID 为 <id> 的机器添加新的转换规则,将 <from> 转换为 <to>
- 除了 <to>,你还可以使用:table <tableName>。稍后会有更多说明。
- 还包含“Comment” <chance> 和 [commands] ... 参数
- Comment 是可选的,但也必须包含 <chance>。它必须用“引号”括起来。<chance 决定执行命令的概率,你可以指定任意数量的命令。每个命令都必须放在单独的 [方括号] 中。
- 示例:/conduitmachines addconversion 1 DIRT GRASS_BLOCK "10% chance to summon a sheep" 0.1 [setblock ~ ~1 ~ air] [summon sheep ~ ~1 ~]
- addfuel <id> <material> <conv> <speed>
- 为 ID 为 <id> 的机器添加新的燃料规则,<material> 可以在 <speed> 刻的时间间隔内完成 <conv> 次转换。
- createtable <tableName> <material> <chance> ...
- 创建一个名为 <tableName> 的表,其中列出了转换可以从中抽取的可能转换列表。每个条目都有 <material> 和 <chance> 权重,决定了它在表格所有候选项中的相对稀有度。
- info <id> <-- 所有玩家均可使用
- 列出所有机器,或提供指定机器的信息。从第二种选项中,玩家可以打开 GUI 查看催化剂,但只有操作员才能从菜单中移除催化剂。
可能性:
虽然可能性确实是无限的,但这里有一个我能想到的有限列表:
- 使不可再生资源变得可再生!
- 破坏/放置基岩!
- 迪斯科地板!
- 矿石生成器!
- 可燃料化的刷怪笼!*
- 生物群系涂漆!*
- 以及更多,更多!
*使用命令功能。如果你有其他插件,选项会更多。
机器和转换数据存储在插件文件夹中,包括所有机器数据。
玩得开心!
剧透
我是为了自己的 Minecraft 服务器并根据我的规格和需求创建了这个模组。我不太可能再进行太多开发。
此外,它主要是由 AI 编码的,但我进行了严格的测试并进行了迭代。AI 只是为了加快速度并确保语法正确。~~~~
Conduit Machines
Ever wanted to make a resource more farmable, or conduits more useful? Well, Conduit Machines helps with just that, and more!
Features:
- Define machines with custom catalysts, fuels, and conversion rules.
- Interact with machines using a custom gui.
- Run commands on block conversion.
- Configurable placement patterns based on prismarine type.
Player Interface

Each conduit placed has a small interface that players can interact with. The Nautilus Shell and Knowledge Book are UI elements that show Machine status and Machine Info respectfully.
The empty slot on the top row is where players put the catalyst, or the item that defines which machine to use.
The next row is for fuel. A machine has 0 open fuel slots when the conduit is unpowered, and 2 when fully powered.
The final row is for upgrades.
Upgrades
Nether stars increase conversion speed
Heart of the Seas give more fuel slots
Netherite ingots and blocks increase the radius of effect
Commands
/conduitmachines ...
- create <id>
- Creates a new machine using the held item as a catalyst
- addconversion <id> <from> <to>
- Adds a new conversion rule to the machine of <id> that converts <from> into <to>
- Instead of <to> you can also do: table <tableName>. More on that later.
- Also has arguments for "Comment" <chance> and [commands] ...
- Comment is optional, but also must have <chance>. It must be in "quotes". <chance determines the chance to run the commands, and you can have as many commands as you want. Each must be in seperate [square] [brackets].
- Example: /conduitmachines addconversion 1 DIRT GRASS_BLOCK "10% chance to summon a sheep" 0.1 [setblock ~ ~1 ~ air] [summon sheep ~ ~1 ~]
- addfuel <id> <material> <conv> <speed>
- Adds a new fuel rule for <material> to the machine of <id> that can do <conv> conversions at <speed> tick intervals.
- createtable <tableName> <material> <chance> ...
- creates a table with the name <tableName> which is a list of possible conversions a conversion can pull from. Each entry has a <material> and a <chance> weight that determines its relative rarity among all total canidates for the table.
- info <id> <-- available to all players
- Either lists all machines, or gives info on the specified machine. From that second option, players can open a gui to view the catalyst, but only operators can remove the catalyst from the menu.
Possibilities:
While the possibilites are truly endless, here is a finite list of what I can think of:
- Making non-renewable resources renewable!
- Breaking/placing bedrock!
- Disco floors!
- Ore generators!
- Fuelable mob spawners!*
- Biome painting!*
- And much, much more!
*Using the commands feature. Even more options if you have other plugins.
Machines and conversions are stored in the plugin folder, along with all machine data.
Have fun!
Spoiler
I created this for my own Minecraft Server to my specifications and needs. It is unlikely I will have much further development.
Also, it was very much coded with AI, but I did rigorous testing and iterated it. The AI was just to speed things up and make everything okay syntax-wise.~~~~
评论 0
登录后参与评分
还没有评论,来抢沙发吧