Pathinator

Pathinator 允许你使用当前站立的方块轻松创建自定义路径。
例如,如果你站在 OAK_PLANKS 的方块上并发出指令创建一条 50 格长的路径,Pathinator 会将你面朝方向上的所有方块替换为 OAK_PLANKS,直至 50 格距离。如果你还指定了 with lights(带灯光),Pathinator 会在路径侧面每隔 N* 个方块添加一个光源(默认配置为 TORCH)。
注意:版本 1.4.0 增加了对工具附魔 SILK_TOUCH、FORTUNE 和 UNBREAKING 的支持。之前的版本会将方块作为应用了 SILK_TOUCH 附魔的效果添加到物品栏中,并且在造成损坏时始终忽略 UNBREAKING 附魔。
用法
基础
path:basic <distance> [with lights] (别名为 pb),其中 <distance> 是要放置的方块数量,[with lights] 是一个可选布尔值 true|false,用于决定是否每隔 N* 个方块放置一个光源。
例如:path:basic 25 true 创建一条 25 格长且带有光源的路径,或者 path:basic 25,其中 [with lights] 默认为 false,即不放置光源。
轨道
path:tracks <distance> [with power] [with lights] (别名为 pt),其中 <distance> 是要放置的方块数量,[with power] 是一个可选布尔值 true|false,用于决定是否每隔 N* 个方块放置一根充能铁轨。[with lights] 是另一个可选布尔值,用于决定是否每隔 N* 个方块放置一个光源。
* N 可在 /plugins/Pathinator/config.yml 中配置
自定义
path:custom <distance> <width> <height> [path material] [clearance material] (别名为 pc),其中 <distance>、<width> 和 <height> 是必填项,[path material] 和 [clearance material] 是可选的。如果未指定 [path material],Pathinator 将检测玩家当前站立的方块图案作为路径材质。例如:如果你创建一个宽 3 格的路径,Pathinator 会检测玩家脚下的方块以及左右各一个方块的材质,并在整个请求的距离内保持该图案不变。
此外,你可以指定用于填充路径上方“空气”空间的材料(间隙材料)。这让你能够轻松地用任何材料创建三维结构!
跟随
path:follow <start|stop> [radius] [path material] (别名为 pf),其中 [radius] 是 0 到 5 之间的数字,[path material] 是任意固体方块。注意你必须运行 path:follow stop 来告诉 Pathinator 停止在你行走的地方创建路径。
例如,path:follow start 将以默认半径开始跟随,并使用你当前站立的方块。path:follow start 2 minecraft:oak_planks 将创建一条由 OAK_PLANKS 组成的宽阔路径。
跟随命令目前仅在创造模式下有效。
挖掘
path:dig <up|down|ahead|vup|vdown> [distance] (别名为 pd),其中 <distance> 是你前方要挖掘的距离。path:dig 不会放置任何方块,它只移除方块(在生存模式下还会将其添加到你的物品栏中)。
up|down 将以默认间隙高度(在 config.yml 中设置)向上或向下挖掘阶梯状图案。
vup|vdown(垂直向上 | 垂直向下)将从玩家站立位置前方的一个方块开始垂直向上或向下挖掘。
例如,path:dig down 20 将挖掘一条延伸 20 格的阶梯状图案,从玩家前方的方块开始。(向前 1 格,向下 1 格)
path:dig vup 20 将从玩家前方的方块开始垂直向上挖掘 20 格。
示例
/path:basic

/path:tracks

/path:custom

/path:follow

生存模式与创造模式
在 生存 模式中,你的物品栏中必须有足够的材料来放置请求距离内的方块。此外,以下选项可配置:
- 工具损耗:你物品栏中的每个相关工具每替换一个方块就会受到 1 点伤害(包括通过山体挖掘时的上方间隙空间)。例如,如果你有一把铲子和一把镐子,并创建了一条 10 格长的路径,穿过 6 格泥土和 4 格石头,你的铲子将受到 6 点伤害,镐子将受到 4 点伤害。如果你有多个同类型的工具,Pathinator 将从剩余耐久度最低的工具中扣除伤害。
- 需要工具:为了清除(挖掘)方块,你的物品栏中必须持有合适的工具。(例如:用铲子清除泥土,用镐子清除石头等...)
- 保留材料:任何被清除(挖掘)的材料都将添加到玩家的物品栏中。
在 创造 模式中,你可以放置任意数量的任意类型方块,没有物品栏限制或工具损耗。
配置
服务器加载后,编辑 /plugins/Pathinator/config.yml 以调整默认值。
clearance:
height: 3
material: AIR
lighting:
interval: 12
stack: [TORCH]
survival:
enabled: true|false
requireTool: true|false
toolDamage: true|false
keepMaterial: true|false
tracks:
powerInterval: 34
未来更新
添加选项以使用铁轨创建路径 path:tracks ... (v1.1.0)
添加选项以自定义路径的各个方面(高度、宽度、材质等) path:custom ... (v1.2.0)
- 添加选项以跟随自然地形,而不是将所有路径放置在相同的 Y 值上。
- 添加与 LuckPerms 集成的权限管理
支持
如果您遇到任何问题或有任何疑问,请在 GitHub 上提交 issue。
Pathinator

Pathinator allows you to easily create custom paths using the block you're standing on.
For example, if you are standing on a block of OAK_PLANKS and you issue a command to create a path of 50 blocks, Pathinator will replace all the blocks in the direction you are facing with OAK_PLANKS out to a distance of 50 blocks. If you also specified with lights Pathinator will add a light (configurable, defaults to TORCH) every N* blocks to the side of the path.
NOTE: version 1.4.0 adds support for SILK_TOUCH, FORTUNE, and UNBREAKING enchantments on tools. Prior versions added blocks to inventory as if SILK_TOUCH was applied to all tools, and UNBREAKING was always ignored when applying damage.
Usage
Basic
path:basic <distance> [with lights] (aliased as pb) where <distance> is the number of blocks to place, and [with lights] is an optional boolean true|false whether to place a light every N* number of blocks.
For example: path:basic 25 true to create a path 25 blocks long with lights, or path:basic 25 where [with lights] defaults to false for no lights.
Tracks
path:tracks <distance> [with power] [with lights] (aliased as pt) where <distance> is the number of blocks to place, and [with power] is an optional boolean true|false whether to place a powered rail every N* number of blocks. [with lights] is another optional boolean whether to place a light every N* number of blocks.
* N is configurable in /plugins/Pathinator/config.yml
Custom
path:custom <distance> <width> <height> [path material] [clearance material] (aliased as pc) where <distance> <width> and <height> are required and [path material] and [clearance material] are optional. If no [path material] is specified Pathinator will detect the pattern of blocks the player is currently standing on for the path. For example: if you create a path 3 blocks wide Pathinator will detect the block under the player and one block to the left and right and keep that same pattern for the entire distance requested.
Additionally, you can specify what material to use to fill the 'air' space above the path (clearance material). This allows you to easily create 3 dimensional structures out of any material!
Follow
path:follow <start|stop> [radius] [path material] (aliased as pf) where [radius] is a number between 0 and 5, and [path material] is any solid block. NOTE you must run path:follow stop to tell Pathinator to stop creating a path wherever you walk.
For example, path:follow start will start following using the default radius and whatever block you are currently standing on. path:follow start 2 minecraft:oak_planks will create a wide path with OAK_PLANKS.
The follow command only works in Creative mode at this time.
Dig
path:dig <up|down|ahead|vup|vdown> [distance] (aliased as pd) where <distance> is the number of blocks away from you to dig. path:dig does not place any blocks, it only removes them (and adds to your inventory when in survival).
up|down will dig a stair step pattern either up or down with the default clearance height (set in config.yml).
vup|vdown (vertical up | vertical down) will dig straight up or down starting from one block in front of where the player is standing.
For example, path:dig down 20 will dig a stair step pattern extending 20 blocks, starting from the block in front of the player. (1 block forward, and 1 block down)
path:dig vup 20 will dig straight up for 20 blocks starting from the block in front of the player.
Examples
/path:basic

/path:tracks

/path:custom

/path:follow

Survival vs Creative
In Survival mode, you must have enough material in your inventory to place blocks for the distance requested. Additionally, the following options can be configured:
- Tool Damage: each relevant tool in your inventory will take 1 damage for each block you replace (including the clearance space above if carving through a mountain). For example, if you have a shovel and a pickaxe and you create a path 10 blocks long through 6 blocks of dirt and 4 blocks of stone, your shovel will take 6 damage and your pickaxe will take 4 damage. If you have more than one tool of the same type, Pathinator will take the damage from the tool with the least remaining durability.
- Require Tool: in order to clear (mine) blocks you must have an appropriate tool in your inventory. (e.g. a shovel to clear dirt, a pickaxe to clear stone, etc...)
- Keep Material: any material cleared (mined) will be added to the player's inventory.
In Creative mode, you can place as many blocks of any type as you want, with no inventory restrictions or damage to tools.
Configuration
Once loaded on the server, edit /plugins/Pathinator/config.yml to adjust the default values.
clearance:
height: 3
material: AIR
lighting:
interval: 12
stack: [TORCH]
survival:
enabled: true|false
requireTool: true|false
toolDamage: true|false
keepMaterial: true|false
tracks:
powerInterval: 34
Future Updates
Add option to create a path with rail tracks path:tracks ... (v1.1.0)
Add option to customize aspects of the path (height, width, material, etc...) path:custom ... (v1.2.0)
- Add option to follow the natural terrain instead of laying it all on the same Y value.
- Add permissions management with LuckPerms
Support
If you encounter any issues or have any questions, please open an issue on GitHub.
评论 0
登录后参与评分
还没有评论,来抢沙发吧