Path Exponential
一个适用于 NeoForge 1.21.1 的轻量级路径/道路模组。在道路或路径附近行走时你会获得加速效果;离开后则恢复常态。
我制作这个模组是为了在建造装饰性路径的同时保留速度加成。该模组不会仅在玩家直接站在路径方块上时才提供加速,而是检测玩家周围一定半径内是否有相互连接的路径方块。只要附近有相连的路径方块存在,你就会获得加速效果,即使你没有站在上面。
这意味着什么
- 你不必站在方块上。 这是一个围绕路径投射出的、宽度为几个方块的带状区域,因此轻微的偏移和小缝隙都会被容忍。稀疏的路径也能生效。
- 离开时的判定也很宽容。 在你踏上路径外后,加速效果会持续半秒,这样掠过区域边缘时不会出现加速效果的闪烁(忽开忽关)。
- 至少需要两个方块。 单独的一个路径方块是无效的。将第二个方块放置在检测半径内即可形成有效区域。它们不需要直接接触,所以分散放置的踏脚石也算。
- 等级很重要。 原版泥土路径为 1 级。本模组自带四个等级,通过原地升级路径而非制作不同的方块来提升等级。
- 右键点击路径即可升级。 小麦可将泥土路径升至 2 级,砖块可将其升至 3 级,混凝土粉末可将其升至 4 级。使用铲子可将其还原。具体物品对应何种操作可在配置文件中设置。
- 升级永远不会改变方块的外观。 路径始终是路径。什么算作路径由整合包决定,而非本模组,因此你可以将配置文件指向任意你想要的方块。
- 所有内容均可配置。 包括等级数量、每个等级提供的效果、哪些方块算作路径、哪些方块会抑制效果区域、以及哪些物品用于升级。
- 道路可能变得危险。 敌对生物也会获得加速效果(倍数降低),因此有照明的道路既快又安全,而无照明的道路则是僵尸的高速公路。村民和少数其他实体出于便利性考虑被排除在外。
升级路径
使用已配置的升级物品右键点击任意路径方块,使其等级提升一级。默认值如下:
| 物品 |
从...升级至 |
至 |
| 小麦 |
1 (原版泥土路径) |
2 |
| 砖块 |
2 |
3 |
| 任意混凝土粉末 |
3 |
4 |
升级物品仅对其配置的等级起作用,因此小麦对砖路无效。
设置 upgradeItemAlwaysWorks = true 后,任何升级物品都会使任意路径提升一级。
配置文件
| 键 |
默认值 |
描述 |
enabled |
true |
效果区域的总开关。 |
pathLevels |
["1|1.10", "2|1.18", "3|1.28", "4|1.40"] |
等级阶梯,每项为 level|speedMultiplier(等级|速度倍率)格式。添加更多条目可增加更多等级,最多支持 16 级。 |
blocksAcross |
2.0 |
投射带的宽度,以方块为单位。增加此值可获得更大的效果范围。 |
detectionRadius |
6.0 |
仍能形成路段的最大标记点间距。 |
markerRadius |
0 (自动) |
单个路径方块独立作用的范围,不同于两个方块之间的带域。0 跟随 blocksAcross/2 的值。支持小数。若感觉斜对角站在路径旁会导致效果消失,请将其设为 1.8 ——这能覆盖整个对角线方向的方块。但会增加区块读取开销。 |
blocksInRadiusToBePath |
2 |
在 detectionRadius 范围内必须有多少个路径方块才能形成效果区域。这是半径内的计数,而非相邻性测试。设为 1 时单个方块即为有效路径。 |
gradientFactor |
4.0 |
两个等级之间混合的距离。0 表示硬边界。 |
verticalTolerance |
2 |
脚部位置与标记点之间的最大 Y 轴差值。 |
fieldGraceTicks |
10 |
离开路径后保持速度的时间,单位为刻(20 = 1 秒)。防止你在掠过区域边缘时加速效果闪烁。设为 0 会在你离开的瞬间停止加速,这是 1.0 版本的行为方式。 |
recheckTicks |
4 |
每个玩家的检测运行频率(每秒 5 次)。 |
applyToMobs |
true |
非玩家实体是否享受该效果。 |
mobBonusScale |
0.5 |
生物获得的加成比例。 |
mobRecheckTicks |
15 |
生物的重新检测间隔比玩家更长。 |
mountRiddenBonus |
0.10 |
符合条件的坐骑在路径上额外获得的速度加成(+10%),叠加在等级加成之上。哪些坐骑符合条件由 path_mountable 实体类型标签决定。 |
blocks.extraPathBlocks |
[] |
额外的路径标记。格式为 "blockId|level",或使用 "#tag|level" 指定整个方块标签。 |
blocks.extraNegateBlocks |
[] |
额外的抑制效果区域的方块。格式为 "blockId" 或 "#tag"。 |
upgrades.pathUpgrades |
["minecraft:wheat|1", "minecraft:brick|2", "#c:concrete_powders|3"] |
格式为 "itemId|fromLevel",或 "#tag|fromLevel"。 |
upgrades.upgradeItemAlwaysWorks |
false |
设为 true 后,任何升级物品都能使任意路径提升一级。 |
upgrades.consumeUpgradeItem |
true |
升级是否会消耗一个物品。 |
upgrades.shovelResetsPath |
true |
使用铲子右键点击本模组的路径可将其重置为泥土路径。 |
Path Exponential
A lightweight path/road mod for NeoForge 1.21.1. Walk near a road or path and you're faster; leave and you're not.
I made this so I could build decorative paths while still having a speed boost. Instead of only boosting your speed when
you're standing directly on top of a path block, the mod checks whether nearby path blocks connect to each other within
a small radius. As long as there are connecting path blocks around you, you get the speed boost. Even if you're not
standing on one.
What that means
- You don't have to stand on the blocks. The field is a band a couple of blocks wide projected
around the path, so drift and small gaps are forgiven. Sparse paths still work.
- Leaving is forgiving too. The speed holds for half a second after you step off, so brushing the
edge of the field doesn't flicker the boost on and off.
- It takes more than one block. A single path block on its own is inert. Put a second one within
the detection radius and a field forms. They don't have to touch, so scattered stepping stones count.
- Tiers matter. Vanilla dirt paths are level 1. Four tiers ship, and you climb them by upgrading a
path in place rather than by crafting a different block.
- Upgrade a path by right-clicking it. Wheat takes a dirt path to level 2, brick takes that to
level 3, concrete powder takes it to 4. A shovel puts it back. Which item does what is config.
- An upgrade never changes how the block looks. A path is a path. What counts as a path is the
modpack's decision, not this mod's, so point the config at whatever blocks you like.
- Everything is configurable. How many tiers there are, what each grants, which blocks count as
paths, which blocks kill the field, and which items upgrade what.
- Roads can become dangerous. Hostile mobs get the bonus too (scaled down), so a lit road is
fast and an unlit one is a highway for zombies. Villagers and a few others are excluded for QoL.
Upgrading a path
Right-click any path block with a configured upgrade item and it becomes one level higher. Defaults:
| Item |
Takes a path from |
To |
| Wheat |
1 (vanilla dirt path) |
2 |
| Brick |
2 |
3 |
| Any concrete powder |
3 |
4 |
An upgrade item only works on the level it is configured for, so wheat does nothing to a brick road.
Set upgradeItemAlwaysWorks = true and any upgrade item raises any path by one.
Config
| Key |
Default |
Description |
enabled |
true |
Master switch for the field. |
pathLevels |
["1|1.10", "2|1.18", "3|1.28", "4|1.40"] |
The tier ladder, one level|speedMultiplier entry each. Add entries for more tiers, up to 16. |
blocksAcross |
2.0 |
Width of the projected band, in blocks. Increase for a larger effect radius. |
detectionRadius |
6.0 |
Max marker-to-marker distance that still forms a segment. |
markerRadius |
0 (auto) |
How far a single path block reaches on its own, separate from the band between two blocks. 0 follows blocksAcross/2. Takes fractions. Raise to 1.8 if standing diagonally beside a path feels like it drops out — that covers a whole block diagonally. Costs more block reads. |
blocksInRadiusToBePath |
2 |
How many path blocks have to be within detectionRadius before a field forms at all. A count inside the radius, not an adjacency test. Set to 1 and a single block is a path. |
gradientFactor |
4.0 |
Distance over which two tiers blend. 0 = hard boundary. |
verticalTolerance |
2 |
Max Y difference between feet and marker. |
fieldGraceTicks |
10 |
How long the speed is kept after stepping off the path, in ticks (20 = 1 second). Stops the boost stuttering on and off when you clip the edge of the field. 0 drops it the instant you leave, which is how 1.0 behaved. |
recheckTicks |
4 |
How often the check runs per player (5×/sec). |
applyToMobs |
true |
Whether non-player entities get the field. |
mobBonusScale |
0.5 |
Fraction of the bonus mobs receive. |
mobRecheckTicks |
15 |
Longer recheck for mobs than players. |
mountRiddenBonus |
0.10 |
Extra speed for an eligible ridden mount on the path (+10%), on top of the tier. Which mounts qualify is the path_mountable entity-type tag. |
blocks.extraPathBlocks |
[] |
Extra path markers. "blockId|level", or "#tag|level" for a whole block tag. |
blocks.extraNegateBlocks |
[] |
Extra blocks that suppress the field. "blockId" or "#tag". |
upgrades.pathUpgrades |
["minecraft:wheat|1", "minecraft:brick|2", "#c:concrete_powders|3"] |
"itemId|fromLevel", or "#tag|fromLevel". |
upgrades.upgradeItemAlwaysWorks |
false |
true lets any upgrade item raise any path by one level. |
upgrades.consumeUpgradeItem |
true |
Whether upgrading uses up one of the item. |
upgrades.shovelResetsPath |
true |
Right-click one of the mod's paths with a shovel to put it back to dirt path. |
评论 0
登录后参与评分
还没有评论,来抢沙发吧