由 Reddit (r/minecraftsuggestions) 用户 u/SuperMario69Kraft 提出的原始概念 -
. 由 BeansNToast 制作。
冲击力有多大? 原版红石只能告诉你某事发生了。Redstone Dynamometer 能告诉你有多猛烈。
建造用于测试伤害的假人,为你的陷阱打分。爆炸小游戏能区分充能苦力怕和鞭炮。一个评价你坠机程度的鞘翅着陆垫。一个按掉落高度分类战利品的刷怪塔。一个方块读取所有数据,并以模拟红石信号作答。
三种感知,一个仪表:
- 坠落冲击。 任何落在顶部的物体都会被读取:玩家、生物、盔甲架、下落沙子。每两个方块的坠落距离对应一级信号强度,30 个方块的坠落会让指针达到最大值 15。它读取的是原始坠落距离,因此你可以用粘液块、干草或地毯覆盖传感器,而测量结果依然准确。它甚至能穿透一整层覆盖方块进行读取,所以你的压力地板可以看起来像普通地板。
- 爆炸。 附近的任何爆炸都会记录其真实威力:苦力怕为 6,TNT 为 8,充能苦力怕为 12,凋灵生成器为 14。该方块本身是黑曜石级耐久,永远不会被破坏,将其放置在陨石坑旁即可读取造成该坑洞的爆炸威力。
- 投射物。 射击任意面,撞击速度即转化为信号:满弓射出为 6,弩箭为 7,三叉戟为 8,雪球为 3。飞得越猛,读数越高。
每次读数都是一个清晰的脉冲,向四周发出弱信号,向下通过地面发出强信号,比较器在整个脉冲期间保持测得的数值。与原版语义兼容:如果你了解压力板和目标方块,你就已经知道如何连接这个装置。
上述数字均为默认值。脉冲长度、各感知的开关以及三个曲线因子都保存在一个小配置文件中。
按照原始建议中的绘制方式制作,包括作者自己的修订版:三个黑曜石位于铁和红石之上,角落有粘液缓冲垫,核心是一块回声碎片,因为力量感知是景界(sculk)技术的近亲。
提供两个下载文件,分别对应每个版本线:一个 1.21.11 jar 包和一个 26.1.x jar 包。需要 Fabric API。
数值说明
三种感知
每次检测都会产生一个红石脉冲(默认持续 10 刻)。输出形状类似压力板:向所有六个邻居发送弱信号,向下方方块发送强信号,比较器在脉冲持续时间内读取测量值。如同原版目标方块一样,在脉冲期间第二次命中会更新强度但不会延长窗口期。
坠落冲击
任何落在顶部的物体:玩家、生物、盔甲架、下落沙子、铁砧。传感器读取的是原始坠落距离,而非坠落伤害,因此伤害修正不会扭曲读数——并且它能穿透放置在其上方的一层覆盖方块(地毯、台阶或完整方块),正如原始建议所要求的那样。用粘液或干草覆盖它:读数相同。
signal = clamp(floor(fallDistance / 2), 1, 15)
| 坠落距离 |
信号强度 |
| 0-3 个方块 |
1 |
| 6 个方块 |
3 |
| 10 个方块 |
5 |
| 20 个方块 |
10 |
| 30+ 个方块 |
15 |
爆炸
距离传感器 power x 2 个方块内的任何爆炸都会进行读数。信号编码的是爆炸的威力,与距离无关:
signal = clamp(round(explosionPower x 2), 1, 15)
| 来源 |
威力 |
信号强度 |
| 恶魂火球 / 凋灵头颅 |
1 |
2 |
| 苦力怕 |
3 |
6 |
| TNT |
4 |
8 |
| 床 / 重生锚(错误维度) |
5 |
10 |
| 充能苦力怕 / 末影水晶 |
6 |
12 |
| 凋灵生成器 |
7 |
14 |
仪表本身总是能幸存于爆炸之中。
投射物
击中任意面的投射物会产生基于速度的力估计:
- 箭矢和弩箭:
signal = clamp(ceil(impactSpeed x 2), 1, 15) —— 使用与原版箭矢相同的“速度乘以基础伤害”公式。满弓射出为 6,弩箭为 7。(读取动能:力量附魔不会改变读数。)
- 三叉戟:固定为 8,即其原版撞击伤害。
- 其他一切(雪球、鸡蛋、珍珠、火球、风弹):
clamp(ceil(impactSpeed x 2), 1, 15);雪球读数约为 3。爆炸的火球也会产生单独的爆炸读数。
配置文件
config/dynamometer.json(首次运行时生成):
| 键名 |
默认值 |
含义 |
pulse_ticks |
10 |
输出脉冲的游戏刻数 |
fall_enabled / explosion_enabled / projectile_enabled |
true |
各感知开关 |
fall_divisor |
2.0 |
坠落曲线:floor(fallDistance / divisor) |
explosion_factor |
2.0 |
爆炸曲线:round(power x factor) |
explosion_range_multiplier |
2.0 |
读数范围:power x multiplier 个方块 |
projectile_velocity_factor |
2.0 |
投射物曲线:ceil(speed x factor) |
log_detections |
false |
INFO 级别记录每次读数(用于机械调试) |
Original concept by u/SuperMario69Kraft on Reddit (r/minecraftsuggestions) -
. Built by BeansNToast.
How hard did it hit? Vanilla redstone can tell you THAT something
happened. The Redstone Dynamometer tells you how hard.
Build damage-test dummies that score your traps. Explosion minigames that
know a charged creeper from a firecracker. An elytra landing pad that rates
your crash. A mob grinder that sorts drops by drop height. One block reads
all of it and answers in analog redstone.
Three senses, one gauge:
- Fall impact. Anything that lands on top gets read, players, mobs,
anvils, falling sand. Two blocks of fall per signal level, 30 blocks pegs
the needle at 15. And it reads RAW fall distance, so you can cover the
sensor with slime, hay or carpet and the measurement stays honest. It
even reads through one full cover block, so your pressure floor can look
like a normal floor.
- Explosions. Any blast nearby registers its true power: creeper 6,
TNT 8, charged creeper 12, wither spawn 14. The block itself is
obsidian-grade and never breaks, park it next to the crater and read the
blast that made it.
- Projectiles. Shoot any face and the impact speed becomes signal: full
bow shot 6, crossbow bolt 7, trident 8, snowball 3. The harder it flies,
the higher it reads.
Every reading is a clean pulse, weak power on all sides, strong power down
through the floor, and a comparator holds the measured value for the whole
pulse. Vanilla-friendly semantics: if you know pressure plates and target
blocks, you already know how to wire this.
The numbers above are the defaults. Pulse length, per-sense toggles and all
three curve factors live in one small config file.
Crafted the way the original suggestion drew it, right down to the author's
own revision: three obsidian over iron and redstone, slime cushions on the
corners, and an echo shard at the heart, because force sensing is cousin to
sculk tech.
Two downloads, one per version line: a 1.21.11 jar and a 26.1.x jar.
Fabric API required.
The numbers
Three senses
Each detection emits a redstone pulse (default 10 ticks). Output is
pressure-plate-shaped: weak power to all six neighbors, strong power into
the block below, and a comparator reads the measured value for the pulse
duration. Like the vanilla target block, a second hit during a pulse
updates the strength but does not extend the window.
Fall impact
Anything landing on top: players, mobs, armor stands, falling sand,
anvils. The sensor reads RAW fall distance, not fall damage, so damage
modifiers cannot skew it - and it reads through ONE cover block (carpet,
slab, or a full block) sitting on the sensor, exactly as the original
suggestion asks. Cover it in slime or hay: same reading.
signal = clamp(floor(fallDistance / 2), 1, 15)
| Fall distance |
Signal |
| 0-3 blocks |
1 |
| 6 blocks |
3 |
| 10 blocks |
5 |
| 20 blocks |
10 |
| 30+ blocks |
15 |
Explosion
Any blast within power x 2 blocks of the sensor takes a reading. The
signal encodes the explosion's POWER, independent of distance:
signal = clamp(round(explosionPower x 2), 1, 15)
| Source |
Power |
Signal |
| Ghast fireball / wither skull |
1 |
2 |
| Creeper |
3 |
6 |
| TNT |
4 |
8 |
| Bed / respawn anchor (wrong dimension) |
5 |
10 |
| Charged creeper / end crystal |
6 |
12 |
| Wither spawn |
7 |
14 |
The dynamometer itself always survives the blast.
Projectile
A projectile striking any face produces a velocity-based force estimate:
- Arrows and bolts:
signal = clamp(ceil(impactSpeed x 2), 1, 15) - the
same speed-times-base-damage formula vanilla arrows use. Full-charge bow
is 6, crossbow bolt is 7. (Reads kinetic energy: Power enchantments do
not change the reading.)
- Trident: flat 8, its vanilla impact damage.
- Everything else (snowballs, eggs, pearls, fireballs, wind charges):
clamp(ceil(impactSpeed x 2), 1, 15); a snowball reads about 3. A
fireball that explodes also produces a separate explosion reading.
Config
config/dynamometer.json (generated on first run):
| Key |
Default |
Meaning |
pulse_ticks |
10 |
output pulse length in game ticks |
fall_enabled / explosion_enabled / projectile_enabled |
true |
per-sense toggles |
fall_divisor |
2.0 |
fall curve: floor(fallDistance / divisor) |
explosion_factor |
2.0 |
explosion curve: round(power x factor) |
explosion_range_multiplier |
2.0 |
reading range: power x multiplier blocks |
projectile_velocity_factor |
2.0 |
projectile curve: ceil(speed x factor) |
log_detections |
false |
INFO-log every reading (contraption debugging) |
评论 0
登录后参与评分
还没有评论,来抢沙发吧